These are procedures to ensure that the system's data and configuration
are recoverable in the event of a system failure.
- Load any patches for LVM.
- Regularly back up your entire system.
Without a valid backup, you run a real chance of losing some or all
of your data. Ensure that you back up ALL of your important data,
including the operating system directories such as:
/etc and so on.
In addition, regularly test that your backups are working by
restoring a test file randomly from your backups. It is risky
assume that your backup is working because it is not logging any
errors. Many backup utilities have the capability to do some
of validation of the backup media. For example,
fbackup has the
option that can allow you to check for discrepancies between
indices and what is actually on the tape. Refer to the
man page for more information.
Use COPYUTIL, if possible, too.
- Back up the important files separately.
Take an extra copy of the very important files, preferably to
another system as well as to another tape. This will speed up
recovery in the event of a system crash. The files that should
backed up are:
There are many other important files on your system that you may
wish to back up separately. The files listed above are required
ensure a smooth system recovery.
- Regularly print out the configuration of your system.
The configuration details stored on the system may not be
during a recovery. A printed copy is an invaluable reference.
recommend printing the configuration details once a week and
time a change is made. One thing to note is that some of the
commands outlined below create large amounts of output. An
alternative to printing them is to output the information to a
and then storing the file off to tape. This allows quick
of the information when needed. You could include this
configuration file with the backup in step 3.
The easiest way to save the configuration is to set up a cron
run regularly, so that even if you don't remember to do it, the
The output from the following commands is recommended:
/usr/sbin/lvdisplay -v /dev/vgXX/lvYY
(for every logical volume)
/usr/sbin/pvdisplay -v /dev/dsk/c#t#d0
(for every LVM disk)
As an alternative, an intelligent script can be written that
detect any changes in the configuration and only print out those
changes. An example script is included at the end of this
- Backup the LVM configuration after every change.
The vgcfgbackup command copies the LVM headers from the system
area of the disk to a disk file, which by default resides in the
Once this information is in a disk
can be stored to tape during backups of the file system.
This information in this file allows you to replace the LVM
on the disk in the event of the disk being replaced, or if your
configuration becomes corrupted.
It is very important that you make these configuration backups
whenever you make a change to any part of the LVM configuration.
This is another task that should be done on a regular basis,
you have made changes or not. It can be done with a cron job,
prior to the time of a normal backup. The command to use is:
(for every volume group)
- Update the boot structures after every change to the root volume
This task is only required if you are using LVM on your boot
Whenever you make changes to the root volume group, which is
named /dev/vg00, you MUST update the Boot Disk Reserved Area
on the boot disk. To do this issue the following command: