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

# evfsvol check -r /dev/evfs/vx/dsk/testdg/backupvol
Encrypted volume "/dev/evfs/vx/dsk/testdg/backupvol" has not been properly shut down.
Resetting dirty bit...
Encrypted volume "/dev/evfs/vx/dsk/testdg/backupvol" has been successfully recovered
7. Enable the encryption and decryption access to the backup volume using the evfsvol
enable command. For example:
# evfsvol enable k mykey /dev/evfs/vx/dsk/testdg/backupvol
8. 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 will be used as the backup target device:
# evfsvol display /dev/evfs/vx/dsk/testdg/vol06
9. Create encrypted backup media by using a block-device utility, such as dd, to copy the entire
volume to a second EVS volume that is also enabled.
For example:
# dd bs=64k if=/dev/evfs/vx/dsk/testdg/backupvol of=/dev/evfs/vx/dsk/testdg/vol06
10. Begin the procedure to bring the backup volume and plex back to their original state. 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.
11. Unmap the backup EVS volume using the evfsadm unmap command. For example:
# evfsadm unmap /dev/evfs/vx/dsk/testdg/backupvol
12. Stop the backup VxVM volume using the vxvol stop command. For example:
# vxvol -g testdg stop backupvol
13. Dissociate the plex from the backup VxVM volume using the vxplex dis command. For
example:
# vxplex -g testdg -v backupvol dis vol05-02
14. Attach the plex back to the original VxVM volume using the vxplex att command. For
example:
# vxplex -g testdg -v vol05 att vol05-02
15. 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 EVS volume /dev/evfs/vx/dsk/testdg/vol06. The dd 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
# evfsvol display /dev/evfs/vx/dsk/testdg/vol06 (the target volume must be enabled)
# dd bs=64k if=/dev/evfs/vx/dsk/testdg/backupvol of=/dev/evfs/vx/dsk/testdg/vol06
# evfsvol disable -k mykey /dev/evfs/vx/dsk/testdg/backupvol
# evfsadm unmap /dev/evfs/vx/dsk/testdg/backupvol
# vxvol -g testdg stop backupvol
# vxplex -g testdg -v backupvol dis vol05-02
# vxplex -g testdg -v vol05 att vol05-02
# vxassist -g testdg remove volume backupvol
90 Backing up and restoring data on EVS volumes