Encrypted Volume and File System v2.0 Administrator Guide HP-UX 11i v3
4. Do not create an EMD area for the EVS volume. The backup volume inherits a copy of the
EMD from the original volume. However, because the backup volume inherits its EMD, the
dirty bit is set even though the backup volume has not been enabled. You must reset the dirty
bit in the EMD of the backup volume using the evfsvol check –r command.
The syntax is as follows:
evfsvol check -r evfs_volume_path
Where evfs_volume_path is the absolute pathname for the EVS volume device file.
For example:
# evfsvol check -r /dev/evfs/vg01/lvol5backup
Encrypted volume "/dev/evfs/vg01/lvol5backup" has not been properly shut down.
Resetting dirty bit...
Encrypted volume "/dev/evfs/vg01/lvol5backup" has been successfully recovered
5. Enable the EVFS backup volume using the evfsvol enable command. You must be the
volume owner or authorized user for the original EVS volume to complete this step, and EVFS
prompts you for a passphrase if one is not stored. For example:
# evfsvol enable –k mykey /dev/evfs/vg01/lvol5backup
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 EVS
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 EVS 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 EVS 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
82 Backing up and restoring data on EVS volumes