The Logical Volume Manager (LVM) is installed with the base operating system and needs no further configuration. However, disks must be configured and defined as a physical volume before the LVM can use them. If you want to set up raw logical volumes for use by an application, see Define a Raw Logical Volume for an Application.
This section provides instructions for the following configuration tasks:
You can configure a new disk in any of the following ways.
After a disk is configured, although it is generally available for use, the Logical Volume Manager requires that it is further identified as a physical volume.
Use the following method when you can shut down and power off the system before attaching the disk:
hdisk1 none none
or:
hdisk1 00005264d21adb2e noneThe first field identifies the system-assigned name of the disk. The second field displays the physical volume ID (PVID), if any. If the new disk does not appear in the lspv output, refer to theAIX 5L Version 5.2 Installation Guide and Reference.
At this point, the disk is usable by the system but it needs a PVID for use by the LVM. If the new disk does not have a PVID, then see Making an Available Disk a Physical Volume.
Use the following method when you cannot shut down your system and you know the following information about the new disk:
Do the following:
mkdev -c disk -s scsi -t 2200mb -p scsi3 \ -w 6,0 -a pv=yesThis example adds a 2.2 GB disk with a SCSI ID of 6 and logical unit number of 0 to the scsi3 SCSI bus. The -c flag defines the class of the device. The -s flag defines the subclass. The -t flag defines the type of device. The -p flag defines the parent device name that you want to assign. The -w flag designates the disk's location by SCSI ID and logical unit number. The -a flag specifies the device attribute-value pair, pv=yes, which makes the disk a physical volume and writes a boot record with a unique physical volume identifier onto the disk (if it does not already have one).
At this point, the disk is defined both as an available device and as a physical volume. You can type the lspv command on the command line to list the new disk entry. If the new disk does not appear in the lspv output, refer to the AIX 5L Version 5.2 Installation Guide and Reference.
Use the following method when you cannot shut down your system and you know only the location of the disk:
hdisk0 000005265ac63976 rootvg
hdisk1 none none
OR
hdisk1 00005264d21adb2e none
The first field identifies the system-assigned name of the disk. The second field displays the physical volume ID (PVID), if any. If the new disk does not appear in the lspv output, refer to the AIX 5L Version 5.2 Installation Guide and Reference.
At this point, the disk is usable by the system but it needs a PVID for use by the LVM. If the new disk does not have a PVID, then see Making an Available Disk a Physical Volume.
A disk must be configured as a physical volume before it can be assigned to volume groups and used by the LVM. Use the following instructions to configure a physical volume:
hdisk1 none none
Check the output for the following:
If the new disk has no PVID and is not in use, continue with the next step.
chdev -l hdisk3 -a pv=yesThe -l flag specifies the device name of the disk. The -a flag specifies the device attribute-value pair, pv=yes, which makes the disk a physical volume and writes a boot record with a unique physical volume identifier onto the disk (if it does not already have one).
At this point, the disk is defined as a physical volume. You can type the lspv command on the command line to list the new disk entry.