Physical Volume Operation
Physical Volumes:
How Do I ....
Start smit/smitty at the top level menu for physical devices
smit lvm
List Physical Volumes attached to system:
lspv [ -L ] [ -l | -p | -M ] [ -n DescriptorPhysicalVolume] [-vVolumeGroupID] PhysicalVolume
Add a Physical Volume:
run lspv and make note current list of disks
Connect disk
Reboot or run cfgmgr
Run lspv and make sure you see the new disk and it has a PVID (center 16 digit nunber)
Run lsdev -Cc disk and make sure the new disk is "Available" (second column)
If disk does not have PVID
run chdev -l hdisk# -a pv=yes
Verify PVID on new disk
Remove a disk from system:
If disk is not part of any Volume Group
rmdev -l hdisk# -d
Physically remove disk from system
If disk is part of a volume group (NOTE: backup or move any data first)
Unmount any filesystem and close any open raw Logical Volumes
Run reducevg vgname hdisk#
Run rmdev -l hdisk# -d
Listing Physical Attributes:
Run lspv hdisk# (general attributes i.e size, free, used, volumegroup)
Run lspv -l hdisk# (lvnames, LP-PP, distribution & mount points)
Run lspv -p hdisk# (physical partition rang and location, free, lvnames, type and mount points)
Run lsdev -Cc disk (all disks status, conection and type)
Run lsdev -Cl hdisk# (same as above but for hdisk# only)
Move all data from one disk to another (failing disk to a replacement)
migratpv sourcehdisk# desthdisk#
Usage: migratepv [-i] [-l LVname] SourcePV DestinationPV...