Displays information about a physical volume within a volume group.
lspv [ -l | -p | -M ] [ -n DescriptorPhysicalVolume] [-vVolumeGroupID] PhysicalVolume
The lspv command displays information about the physical volume if the specific physical volume name is specified. If you do not add flags to the lspv command, the default is to print every known physical volume in the system along with its physical disk name, physical volume identifiers (PVIDs), and which volume group (if any) it belongs to.
Note: If the lspv command cannot find information for a field in the Device Configuration Database, it will insert a question mark (?) in the value field. As an example, if there is no information for the PP RANGE field, the following might be displayed:
PP RANGE: ?
The lspv command attempts to obtain as much information as possible from the description area when it is given a logical volume identifier.
When the PhysicalVolume parameter is used, the following characteristics of the specified physical volume are displayed:
|Physical volume||Name of the physical volume.|
|Volume group||Name of volume group. Volume group names must be unique systemwide names and can be from 1 to 15 characters long.|
|PV Identifier||The physical volume identifier for this physical disk.|
|VG Identifier||The volume group identifier of which this physical disk is a member.|
|PVstate||State of the physical volume. If the volume group that contains the physical volume is varied on with the varyonvg command, the state is active , missing , or removed . If the physical volume is varied off with the varyoffvg command, the state is varied off .|
|Allocatable||Allocation permission for this physical volume.|
|Logical volumes||Number of logical volumes using the physical volume.|
|Stale PPs||Number of physical partitions on the physical volume that are not current.|
|VG descriptors||Number of volume group descriptors on the physical volume.|
|PP size||Size of physical partitions on the volume.|
|Total PPs||Total number of physical partitions on the physical volume.|
|Free PPs||Number of free physical partitions on the physical volume.|
|Used PPs||Number of used physical partitions on the physical volume.|
|Free distribution||Number of free partitions available in each intra-physical volume section.|
|Used distribution||Number of used partitions in each intra-physical volume section.|
You can use a Web-based System Manager Volumes application (wsm lvm fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit lspv fast path to run this command.
|-l|| Lists the following fields for each logical volume on the physical volume:
|-M|| Lists the following fields for each logical volume on the physical volume:
|Accesses information from the variable descriptor area specified by the DescriptorPhysicalVolume variable. The information may not be current, since the information accessed with the -n flag has not been validated for the logical volumes. If you do not use the -n flag, the descriptor area from the physical volume that holds the validated information is accessed, and therefore the information displayed is current. The volume group need not be active when you use this flag.|
|-p|| Lists the following fields for each physical partition on the physical volume:
|-v VolumeGroupID||Accesses information based on the VolumeGroupID variable. This flag is needed only when the lspv command does not function due to incorrect information in the Device Configuration Database. The VolumeGroupID variable is the hexadecimal representation of the volume group identifier, which is generated by the mkvg command.|
lspv -p hdisk5
lspv -v 00014A782B12655F hdisk5The following is an example of the output:
lspv hdisk0 0000000012345678 rootvg hdisk1 10000BC876543258 vg00 hdisk2 ABCD000054C23486 None
|/usr/sbin||Contains the lspv command.|
The chpv command, lslv command, lsvg command, mklv command, varyonvg command.
Logical Volume Storage Overview in AIX Version 4.3 System Management Guide: Operating System and Devices explains the Logical Volume Manager, physical volumes, logical volumes, volume groups, organization, ensuring data integrity, and allocation characteristics.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
System Management Interface Tool (SMIT) Overview in AIX Version 4.3 System Management Guide: Operating System and Devices explains the structure, main menus, and tasks that are done with SMIT.