vgscan.1m (2010 09)

v
vgscan(1M) vgscan(1M)
EXAMPLES
1. Append entries for volume groups missing from the
/etc/lvmtab or /etc/lvmtab_p
file. For
deactivated volume groups, use legacy DSFs, and for activated volume groups, use the DSFs that were
used to activate them. Report all physical volume legacy DSFs belonging to unconfigured volume
groups. Do not modify existing volume group entries in
/etc/lvmtab or /etc/lvmtab_p. Run
vgscan without any options:
vgscan
2. Recreate the
/etc/lvmtab or /etc/lvmtab_p
file for volume groups activated since the last boot.
For deactivated volume groups, use legacy DSFs, and for activated volume groups, use the DSFs that
were used to activate them. Report all physical volume legacy DSFs belonging to unconfigured volume
groups.
mv /etc/lvmtab /etc/lvmtab.BCK
or
mv /etc/lvmtab_p /etc/lvmtab_p.BCK
vgscan
3. Recreate the
/etc/lvmtab or /etc/lvmtab_p
file for volume groups activated since the last boot.
For deactivated volume groups, use persistent DSFs, and for activated volume groups, use the DSFs
that were used to activate them. Report all physical volume persistent DSFs belonging to
unconfigured volume groups.
mv /etc/lvmtab /etc/lvmtab.BCK
or
mv /etc/lvmtab_p /etc/lvmtab_p.BCK
vgscan -N
4. Recreate the /etc/lvmtab or /etc/lvmtab_p
file for volume groups activated since the last boot.
For activated and deactivated volume groups, use both persistent and legacy DSFs. Report all physi-
cal volume persistent and legacy DSFs belonging to unconfigured volume groups.
mv /etc/lvmtab /etc/lvmtab.BCK
or
mv /etc/lvmtab_p /etc/lvmtab_p.BCK
vgscan -B
5. Recreate the /etc/lvmtab or /etc/lvmtab_p
file for activated volume groups, using the DSFs
that were used to activate them. For deactivated volume groups, no entries are added to
/etc/lvmtab,or/etc/lvmtab_p
and no physical volume DSFs are reported.
mv /etc/lvmtab /etc/lvmtab.BCK
or
mv /etc/lvmtab_p /etc/lvmtab_p.BCK
vgscan -k
6. For the volume group /dev/vg01, overwrite the existing physical volume DSFs in /etc/lvmtab or
/etc/lvmtab_p with the physical volume persistent DSFs found belonging to /dev/vg01 during a
hardware probing of all devices.
vgscan -N -f /dev/vg01
7. For the volume group /dev/vg01, overwrite the existing physical volume DSFs in /etc/lvmtab or
/etc/lvmtab_p with the physical volume cluster DSFs found belonging to /dev/vg01 during a
hardware probing of all devices.
vgscan -C -f /dev/vg01
8. For the volume group /dev/vg01, overwrite the existing physical volume DSFs in /etc/lvmtab or
/etc/lvmtab_p with the physical volume DSFs used in kernel memory. The volume group
/dev/vg01 must be activated, or this command will fail.
vgscan -k -f /dev/vg01
9. Recreate the /etc/lvmtab or /etc/lvmtab_p file with the volume groups
/dev/vg00, /dev/vg01, and /dev/vg02. The volume group entries will be added to
/etc/lvmtab or /etc/lvmtab_p in that order. For deactivated volume groups, use legacy DSFs,
and for activated volume groups, use the DSFs that were used to activate them. Do not add any other
volume groups.
HP-UX 11i Version 3: September 2010 3 Hewlett-Packard Company 3