7.Enable the EVFS backup volume using the evfsvol enable command. For example:

#evfsvol enable –k mykey /dev/evfs/vx/dsk/testdg/backupvol

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 EVFS 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 EVFS 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 EVFS 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, vol05–01and vol05–02. The administrator dissociates plex vol05–02to 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 EVFS volume /dev/evfs/vx/dsk/testdg/vol06. The cp command receives cleartext from the source EVFS volume, and the target EVFS volume encrypts the data.

118 Backing Up and Restoring Data on EVFS Volumes

Page 118
Image 118
HP UX Encrypted Volume and Filesystem (EVFS) manual # fsck -F vxfs /dev/evfs/vx/rdsk/testdg/backupvol