HP-UX 11i v3 LVM New Features in HP-UX 11i v3 (September 2009)

21
`
;
n");
Provide a PV which belong to a VG\n");
fore rs) { my
@pair = ();
e);
$pvdisplay_hash{$PVDISPLAY_KEY}\n";
t and checks if disk is under HP-UX LVM control
The ced to list additional
deta
The
-d
byte blocks from the
table physical volume, and displays the
number of bad blocks that were relocated. These details are displayed in addition to other information.
to the end of the user data in 1024 byte
-l
Checks whether physical volume refers to a disk device under HP Logical Volume Manager (LVM) control.
with many disks, use this
M disk, displays the start and end of the user data in 1
is supported starting with the March 2008 release of HP-UX
ember 2008 release of HP-UX 11i v3, this option is enhanced to
display whether the p otable or not.
Starting with the September 2007 release of HP-UX 11i v3, the
pvdisplay command also displays the
proactive polling status of the physical volume. For more information, see the pvdisplay(1M) manual page.
Examples
# pvdisplay -d /dev/dsk/c22t6d2
--- Physical volumes ---
PV Name /dev/dsk/c22t6d2
VG Name /dev/vgname
PV Status available
my $pvdisplay_out =
`
pvdisplay -F $PV_NAME 2> /dev/null
if($? != 0) {
print("The PV $PV_NAME does not belong to any VG\
print("
exit (1);
}
my @pvdisplay_pairs = split (' :', $pvdisplay_out);
ach my $key_value (@pvdisplay_pai
@pair = split('=',$key_valu
$pvdisplay_hash{$pair[0] } = $pair[1];
}
print "
# get_pvinfo /dev/dsk/c11t0d5 vg_name
/dev/vgtest
pvdisplay – Displays user data offse
pvdisplay command displays information about physical volumes in LVM. It is enhan
ils for a physical volume and to report if the disk is owned by LVM.
pvdisplay command has the following new options:
For each physical volume, displays the offset to the start of the user data in 1024
beginning of the physical volume, specifies if pv_path is a boo
Starting with the March 2008 release of HP-UX 11i v3, the offset
blocks is also displayed.
You can use this option on any disk in the system. For example, on a system
option to determine which disks are marked for LVM usage and which are not.
-u
If physical volume is an LV
kilobyte blocks. This option
11i v3. In the Sept
hysical volume is bo