Encrypted Volume and File System v2.0 Administrator Guide HP-UX 11i v3

3. Use the evfsvol enable command to enable the encrypted volume:
evfsvol enable [-p] [-k keyname] evfs_volume_path
See “Step 1: Configuring an EVS volume” (page 43) or evfsvol(1m) for more information.
4. If the EVS volume had a file system, use the mount command to mount the file system to a
mount point. Add an entry to the /etc/fstab file.
See “Step 2: Creating and mounting a file system on an EVS volume” (page 48) for more
information.
Resizing EVS volumes and file systems
If you resize EVS volumes and file systems created on EVS volumes, HP recommends that you
create a backup copy of the data before resizing an EVS volume or file system above an EVS
volume. In addition, you must:
Allow 1 MB on the EVS volume for the encryption metadata (EMD). Subtract 1 MB from the
size of the underlying LVM, VxVM, or physical volume when calculating the number of bytes
available for the file system. The size of the EMD depends on the configured maximum number
of user records, as specified by the emd_envelopes attribute in the /etc/evfs/evfs.conf
file. The actual size of the EMD might be less than 1 MB, but HP recommends that you allow
1 MB for the EMD.
CAUTION: If you do not allocate sufficient space for the EVFS EMD when reducing the size
of a file system and underlying volume, the file system is rendered unusable.
Resize an EVS volume by resizing the underlying LVM or VxVM volume. Use the appropriate
LVM or VxVM command and specify the LVM or VxVM device file. For example:
# lvextend -L 112 /dev/vg01/lvol5
If you have a file system on the EVS volume, you must resize the file system as a separate
operation using the extendfs or fsadm utilities.
CAUTION: Do not use the vxresize -F fstype command to resize the VxVM and the
file system in one operation. The vxresize command does not allocate space on the VxVM
volume for the EMD.
LVM Example: Increasing volume and file system sizes
In the following sessions, the VxFS file system size is 65016 Kbytes, created on a 64-Mbyte
(65536-Kbyte) LVM volume (520 Kbytes is used for the EMD). The user increases the size of the
LVM volume to 112 Mbytes and wants to increase the corresponding file system size.
Correct
The user increases the LVM volume size to 112 Mbytes (114688 Kbytes). When calculating the
number of Kbytes available for the file system, the user reserves 1 Mbyte for the EVFS EMD: (112
–1) * 1024 = 113664 Kbytes. The existing file system size is 65016 Kbytes, so the user increases
the file system size by 48648 Kbytes (113664 – 65016 = 48648).
# lvdisplay /dev/vg01/lvol5
--- Logical volumes ---
LV Name /dev/vg01/lvol5
VG Name /dev/vg01
LV Permission read/write
:
:
LV Size (Mbytes) 64
:
Resizing EVS volumes and file systems 73