Administrator's Guide
Resizing EVFS Volumes and File Systems
If you resize EVFS volumes and file systems created on EVFS volumes, HP recommends that
you create a backup copy of the data before resizing an EVFS volume or file system above an
EVFS volume. In addition, you must:
• Allow 1 MB on the EVFS 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 EVFS 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 EVFS 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
:
:
# bdf /test5
Filesystem kbytes used avail %used Mounted on
/dev/evfs/vg01/lvol5
65016 1125 59905 2% /test5
# umount /test5
# lvextend -L 112 /dev/vg01/lvol5
Logical volume "/dev/vg01/lvol5" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in
/etc/lvmconf/vg01.conf
Resizing EVFS Volumes and File Systems 97