HP-UX HB v13.00 Ch-13 - LVM

HP-UX Handbook Rev 13.00 Page 75 (of 110)
Chapter 13 LVM
October 29, 2013
/dev/disk/disk4
/dev/vg02
/dev/dsk/c3t2d0s1
Note: If You have mixed mode activated (if legacy naming model is not deactivated),
then you are able to create volume gropus, or physical volumes, or logical volumes
using both naming models.
For operating with physical volumes, both types of DSFs can be used. If for example the
physical volume was created using the legacy DSF, then You can easily find the
persistent equivalent by the command “ioscan m dsf” and then use the persistent DSF
to remove the physical volume:
Example:
# ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk4 /dev/rdsk/c2t0d0
/dev/rdisk/disk5 /dev/rdsk/c2t1d0
/dev/rdisk/disk6 /dev/rdsk/c3t2d0
/dev/rdisk/disk6_p1 /dev/rdsk/c3t2d0s1
/dev/rdisk/disk6_p2 /dev/rdsk/c3t2d0s2
/dev/rdisk/disk6_p3 /dev/rdsk/c3t2d0s3
/dev/rdisk/disk7 /dev/rdsk/c0t0d0
# vgremove /dev/vg02
Volume group "/dev/vg02" has been successfully removed.
# pvremove /dev/rdisk/disk6_p1
The physical volume associated with "/dev/rdisk/disk6_p1" has been removed.
Nevertheless, HP recommends using persistent DSFs for LVM configurations, and
especially for new volume groups. Existing volume groups configured with legacy DSFs
should be migrated to use corresponding persistent DSFs.
New options have been added to vgimport (option N) and vgscan (options N B), to
specify the persistent naming model.
vgimport N - Configure the volume group using persistent DSFs. In the absence
of the N option, legacy DSFs are used. This option can only be ised together
with the scan option s.
vgscan N Recover /etc/lvmtab file using persistent DSFs, with the following
exception: Active volume groups configured with legacy DSFs. In this case,
vgscan populates the /etc/lvmtab file using the legacy DSFs.