4.Use the same utility that you used to create the backup media to restore the media (or an equivalent utility). If you used a file-based utility to create the backup media, use a file-based utility to restore the data; if you used a block device utility to create the backup media, use a block device utility to restore the data. After you restore the data, the target volume now contains the data from the backup (source) EVFS volume, encrypted using the target volume's EVFS data key.

Example

In the following example, /dev/evfs/vg01/lvol5 is the original volume, with /opt/encrypted_data mounted on it. The /dev/evfs/vg01/lvol6 volume contains backup data, with /opt/evfs_backup mounted on it. The cp command receives cleartext from the backup EVFS volume and the original EVFS volume re-encrypts the data.

#fuser -cku /dev/evfs/vg01/lvol5

#fuser -cku /dev/evfs/vg01/lvol6

#evfsadm stat -a(verify that EVFS is enabled on the source and target volumes)

#cp -r /opt/backup_evfs /opt/encrypted_data

Restoring Backup Media 127

Page 127
Image 127
HP UX Encrypted Volume and Filesystem (EVFS) manual # cp -r /opt/backupevfs /opt/encrypteddata