Encrypted Volume and File System v2.2 Administrator Guide (777846-001, April 2014)

8. Check the file system on the character (raw) EVFS backup volume for consistency using the
fsck command. For example:
# fsck -F vxfs /dev/evfs/vx/rdsk/testdg/backupvol
9. Create a temporary directory to use as mount point for the EVFS backup volume. For example:
# mkdir /opt/evfs/backup_source
10. Mount the temporary directory on the EVFS backup volume. For example:
# mount -F vxfs /dev/evfs/vx/dsk/testdg/backupvol /opt/evfs/backup_source
11. 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/vx/dsk/
testdg/vol06 is a spare EVS volume that is used as the backup target device:
# evfsvol display /dev/evfs/vg01/lvol6
12. 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 EVS volume /dev/evfs/vx/dsk/testdg/vol06:
# cp -r /opt/evfs/backup_source /opt/evfs/backup_target
13. 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
14. Disable the EVFS backup volume. For example:
# evfsvol disable -k my_key /dev/evfs/vx/dsk/testdg/backupvol
The evfsvol utility prompts you for the passphrase if a stored passphrase does not exist.
15. Unmap the backup EVS volume using the evfsadm unmap command. For example:
# evfsadm unmap /dev/evfs/vx/dsk/testdg/backupvol
16. Stop the backup VxVM volume using the vxvol stop command. For example:
# vxvol -g testdg stop backupvol
17. Dissociate the plex from the backup VxVM volume using the vxplex dis command. For
example:
# vxplex -g testdg -v backupvol dis vol05-02
18. Attach the plex back to the original VxVM volume using the vxplex att command. For
example:
# vxplex -g testdg -v vol05 att vol05-02
19. Remove the temporary backup volume using the vxassist remove volume command.
For example:
# vxassist -g testdg remove volume backupvol
Example
In the following example, the volume vol05 in disk group testdg has two plexes, vol0501
and vol0502. The administrator dissociates plex vol0502 to use as the source for the backup,
and mounts the file system on the temporary mount point /opt/evfs/backup_source. The
target is the directory /opt/evfs/backup_target, which is mounted on the EVS volume /dev/
evfs/vx/dsk/testdg/vol06. The cp command receives cleartext from the source EVS volume,
and the target EVS volume encrypts the data.
# vxplex -g testdg dis -v vol05 vol05-02
# vxmake -g testdg -U gen vol backupvol plex=vol05-02
# vxvol -g testdg start backupvol
# evfsvol map /dev/vx/dsk/testdg/backupvol
# evfsvol check -r /dev/evfs/vx/dsk/testdg/backupvol
# evfsvol enable -k mykey /dev/evfs/vx/dsk/testdg/backupvol
# fsck -F vxfs /dev/evfs/vx/rdsk/testdg/backupvol
92 Backing up and restoring data on EVS volumes