Problem
How to make a full system backup for emergency recovery purposes of SCO OpenServer 5.0.7V running on VMware ESX/ESXi using the VMware Snapshot method.
The procedure below was originally written for ESX* 3.5 but is also applicable for later versions of ESX*
Please note that the following information was taken from the VMware VI help:
Understanding Snapshots:
-----------------------
Snapshots let you preserve the state of a virtual machine so you can
return to the same state repeatedly.A snapshot captures the entire state of a virtual machine at the time you take the snapshot. This includes:
* Memory State - Contents of the virtual machine's memory * Settings State - Virtual machine settings * Disk State - State of all the virtual machine's virtual disks
Snapshots operate on individual virtual machines.In a team of virtual machines, taking a snapshot preserves the state of only the active virtual machine.
When you revert to a snapshot, you return these items to the state they were in at the time you took that snapshot.
If you want the virtual machine to be suspended, powered on, or powered off when you start it, ensure it is in the state you want when you take that snapshot.
Snapshots let you revert repeatedly to the same state without creating multiple virtual machines.
With snapshots, you create backup and restore positions in a linear process.
You can also preserve a baseline before diverging a virtual machine in a process tree.
Snapshots can be used as restoration points during a linear or iterative process, such as installing update packages, or during a branching process, such as installing different versions of a program.
Taking snapshots ensures that each installation begins from an identical baseline.
Please Note: Snapshots of raw disks or RDM physical mode disks are not supported.
Solution
This TA is divided into two sections:
1) Creation Snapshot of OpenServer 5.0.7Vand2) Restoring the SnapshotNote Glossary:
--------------
VM = Virtual Machine
VI = VMware Virtual Infrastructure
VC = VMware Virtual CentreThis TA is divided into two sections:
1) Creation Snapshot of OpenServer 5.0.7Vand2) Restoring the Snapshot1) Creation of the Snapshot:
----------------------------
Once you have imported your SCO OpenServer5.0.7V and custom
configured it to your needs with users, printers and
application ...etc, you are now ready to perform a full system
backup using the VMware Snapshot method before going into production.You need to perform the following steps:
1- Make sure that your VMWare ESX/ESXi is not in Maintenance Mode.
2- As root, shutdown your SCO OpenServer 5.0.7V and power off the Osr507V VM.
Note: You can perform a Snapshot of the OSr5.0.7V
while it is running, but it is recommended
for this purpose to have it shutdown and
powered off its VM.3- From the VI/VC main window, highlight the OpenServer 5.0.7V VM.
4- Right mouse click on the Highlighted OSR507V VM and choose Snapshot --> Take Snapshot...
OR:From the VI/VC main window, at the top, select: Inventory --> Virtual Machine --> Snapshot --> Take Snapshot
"Take Virtual Machine Snapshot" window will pop up5- Under
Name: Give it a name like "507v-snapshot-date"
Description: (Optional) Give some information about
this snapshotThen click OK6- To check if the Snapshot was created.
From the VI/VC client, highlight the OpenServer 5.0.7V VM then right mouse click on the Highlighted OSR507V VM and choose Snapshot --> Snapshot Manager
"Snapshot for <OSR507V>" window will pop up and there you will see the original OSR507V install and the Snapshot.
You can also see on the ESX/ESXi server under /vmfs/volumes/<datastore>/<installed osr507V> directory a file called <install osr507V-Snapshot1.vmsn
Note: You can create multiple Snapshots, but remember not to over do them, as these Snapshot are created on the ESX/ESXi datastore and you might run out of storage space on the datastore.
2) Restoring the Snapshot:
--------------------------
Note: You can't use this method if the OSr5.0.7V VM
itself is damaged beyond repair. If your OSr507V VM
is damaged, then the associated Snapshots with it
will also be damaged. If you where in this position,
then you need to use the Appliance or Cloning method
for restore.In the case your SCO OpenServer 5.0.7V install is panicing or not functioning well due to a installed patch or corrupted file (s)..etc, you need to switch back to the snapshot (Restore the Snapshot).
Please perform the following steps:1- Make sure that the OSR507V VM is powered off.
2- From the VI/VC main window, highlight the OpenServer 5.0.7V VM.
3- Right mouse click on the Highlighted OSR507V VM and choose Snapshot --> Revert to Snapshot
If you have multiple Snapshots, then choose Snapshot --> Snapshot Manager
"Snapshot for <OSR507V>" window will pop up and there you will see the original OSR507V install and the multiple Snapshots.
Choose the Snapshot you want to fall back to and then click on "Go to" button.
OR:From the VI/VC main window, at the top, select: Inventory --> Virtual Machine --> Snapshot --> Snapshot Manager ....etc
VMware VI/VC client will then tell you that it reverted the OSE5.0.7V back to a state on the chosen snapshot.
4- Power on the OSR5.0.7 V VM and reboot OSr5.0.7V. You now have SCO OpenServer 5.0.7V in a state where the Snapshot was taken.
Please note that it is highly recommended to take live Snapshots of SCO OpenServer 5.0.7V (while is is booted and running) in cases where you are doing maintenance work on the OSR507V install such as installing Patches, editing system critical files...etc so that if anything goes wrong, you can revert back to the state before any maintenance work was carried out.
NOTE: If you also decided to Export your Appliance as an alternate means of
backup and you get:"Failed to export Virtual Appliance. An item with the same key has already been added".
It is recommended to remove any previously created Snapshots in the SnapShot Manager for this to work.