Administrator's Guide
6. Check the file system on the EVFS backup volume for consistency using the fsck command.
For example:
# fsck -F vxfs /dev/evfs/vg01/rlvol5backup
7. Create a temporary directory to use as mount point for the EVFS backup volume. For example:
# mkdir /opt/evfs/backup_source
8. Mount the temporary directory on the EVFS backup volume. For example:
# mount -F vxfs /dev/evfs/vg01/lvol5backup /opt/evfs/backup_source
9. EVFS encryption and decryption must be enabled on the target volume also. Use the evfsadm
stat -a or evfsvol display evfs_volume_path command to verify that EVFS is
enabled on the target volume. In this example, /dev/evfs/vg01/lvol6 is a spare EVFS
volume that will be used as the backup target device:
# evfsvol display /dev/evfs/vg01/lvol6
10. Use a file-based backup utility to back up data from temporary directory to a directory on
the target volume. In this example, the directory /opt/evfs/backup_target is mounted
on the spare EVFS volume /dev/evfs/vg01/lvol6:
# cp -r /opt/evfs/backup_source /opt/evfs/backup_target
11. Unmount the file system on the EVFS backup volume to begin the procedure to return the
backup volume to its original state. For example:
# umount /opt/evfs/backup_source
12. Disable the EVFS backup volume. For example:
# evfsvol disable -k mykey /dev/evfs/vg01/lvol5backup
The evfsvol utility prompts you for the passphrase if a stored passphrase does not exist.
13. Unmap the backup EVFS volume using the evfsadm unmap command. For example:
# evfsadm unmap /dev/evfs/vg01/lvol5backup
14. Merge the backup volume back with the original LVM volume using the lvmerge command
. For example:
# lvmerge /dev/vg01/lvol5backup /dev/vg01/lvol5
Example
In the following example, the administrator splits the mirror volume /dev/vg01/lvol5 and
creates the volume /dev/vg01/lvol5backup and mounts the file system on
/opt/evfs/backup_source. The target is the directory /opt/evfs/backup_target, which
is mounted on the EVFS volume/dev/evfs/vg01/lvol6. The cp command receives cleartext
from the source EVFS volume and the target EVFS volume encrypts the data.
# lvsplit –s backup /dev/vg01/lvol5 (LVM creates the /dev/vg01/lvol5backup volume)
# evfsvol map /dev/vg01/lvol5backup
# evfsvol check -r /dev/evfs/vg01/lvol5backup
# evfsvol enable -k mykey /dev/evfs/vg01/lvol5backup (evfsvol prompts for
a passphrase if there is no stored passphrase.)
# fsck -F vxfs /dev/evfs/vg01/lvol5backup
# mkdir /opt/evfs/backup_source
# mount -F vxfs /dev/evfs/vg01/lvol5/backup /opt/evfs/backup_source
# evfsvol display /dev/evfs/vg01/lvol6 (Verify that the target EVFS volume is enabled.)
# cp -r /opt/evfs/backup_source /opt/evfs/backup_target (/opt/evfs/backup_target is
mounted on /dev/evfs/vg01/lvol6)
# umount /opt/evfs/backup_source
# evfsvol disable -k mykey /dev/evfs/vg01/lvol5backup (evfsvol prompts for
a passphrase if there is no stored passphrase.)
# evfsadm unmap /dev/evfs/vg01/lvol5backup
# lvmerge /dev/vg01/lvol5backup /dev/vg01/lvol5
110 Backing Up and Restoring Data on EVFS Volumes