Setup guide
Physical volume "/dev/sdb" successfully created
Physical volume "/dev/sdc" successfully created
Physical volume "/dev/sdd" successfully created
Physical volume "/dev/sde" successfully created
TIP You can use the command pvremove to delete any erroneously entered devices.
3 Verify that the physical volumes were initialized correctly. Type:
pvscan -v
A list of all of the physical volumes you created appears. Each volume should contain “lvm2”. The
following sample output is for the previous example of 4 LVM physical volumes created on devices
/dev/sdb through /dev/sde:
Wiping cache of LVM-capable devices
Wiping internal VG cache
Walking through all physical volumes
PV /dev/sdb lvm2 [2.03 TB / 2.03 TB free]
PV /dev/sdc lvm2 [2.03 TB / 2.03 TB free]
PV /dev/sdd lvm2 [2.03 TB / 2.03 TB free]
PV /dev/sde lvm2 [2.03 TB / 2.03 TB free]
Total: 4 [8.10 TB] / in use: 0 [0 ] / in no VG: 4 [8.10 TB]
4 Create the volume group “vg00” from the physical volumes you created in the preceding step, using
the following command:
vgcreate vg00 <list of volumes>
where <list of volumes> is the list of physical volumes you created in the preceding step. For
example:
■ For arrays with 450GB drives:
vgcreate vg00 /dev/sdb /dev/sdc /dev/sdd /dev/sde
■ For smaller capacity drives:
vgcreate vg00 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
TIP You can use the command vgremove to delete any erroneously entered volume.
5 Verify the volume was created and obtain the value of the “Free PE / Size” field. Type:
vgdisplay -v
In the output, find the line that contains the “Free PE / Size” field and write down the value of the “Free
PE”. For example, in the following example output the “Free PE” value is 2124556.
Free PE / Size 2124556 / 8.10 TB
6 Create a new logical volume on “vg00”, using the following command:
lvcreate -l <Free_PE_value> -i <#_of_physical_volumes> -I 32 -n lvol1
vg00
where <Free_PE_value> is the “Free PE” value you noted in the preceding step and
<#_of_physical_volumes> is the number of physical volumes. If we continue with the example
used in the previous steps, you would type:
lvcreate -l 2124556 -i 4 -I 32 -n lvol1 vg00
The output confirms the creation of the logical volume:
Assembling the Disk or LUN Devices into a Logical Volume | 39