WARNING : Rereading the partition table failed with error 22: Invalid argument. The kernel still uses the old table. The new table will be used at the next restart or after you run partprobe(8) or kpartx(8) Syncing disks. [root@LPARLINUX01 ~]# partprobe [root@LPARLINUX01 ~]# ls -l /dev/mapper/mpathg* lrwxrwxrwx. 1 root root 8 Nov 18 12:09 /dev/mapper/mpathg -> ../dm-11 lrwxrwxrwx. 1 root root 8 Nov 18 12:09 /dev/mapper/mpathg1 -> ../dm-20 [root@LPARLINUX01 ~]# 

3. Create a physical volume on the partition, as shown in Example 5-8. 

[root@LPARLINUX01 ~]# pvs PV VG Fmt Attr PSize PFree /dev/mapper/mpathd3 rootvg lvm2 a-- 49.49g 37.49g /dev/mapper/mpathh1 Datavg lvm2 a-- 100.00g 50.00g [root@LPARLINUX01 ~]# pvcreate /dev/mapper/mpathg1 Physical volume "/dev/mapper/mpathg1" successfully created. [root@LPARLINUX01 ~]# pvs PV VG Fmt Attr PSize PFree /dev/mapper/mpathd3 rootvg lvm2 a-- 49.49g 37.49g /dev/mapper/mpathg1 lvm2 --- 100.00g 100.00g /dev/mapper/mpathh1 Datavg lvm2 a-- 100.00g 50.00g [root@LPARLINUX01 ~]# 

4. Create a VG on the partition, as shown in Example 5-9. 

[root@LPARLINUX01 ~]# vgs VG #PV #LV #SN Attr VSize VFree Datavg 1 1 0 wz--n- 100.00g 50.00g rootvg 1 4 0 wz--n- 49.49g 37.49g [root@LPARLINUX01 ~]# vgcreate filesvg /dev/mapper/mpathg1 Volume group "filesvg" successfully created [root@LPARLINUX01 ~]# vgs VG #PV #LV #SN Attr VSize VFree Datavg 1 1 0 wz--n- 100.00g 50.00g filesvg 1 0 0 wz--n- 100.00g 100.00g rootvg 1 4 0 wz--n- 49.49g 37.49g [root@LPARLINUX01 ~]# 

5. Create a logical volume on the partition, as shown in Example 5-10. 

[root@LPARLINUX01 ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert datalv Datavg -wi-ao---- 50.00g home rootvg -wi-ao---- 2.00g root rootvg -wi-ao---- 4.00g swap rootvg -wi-ao---- 2.00g var rootvg -wi-ao---- 4.00g [root@LPARLINUX01 ~]# lvcreate -L 80G -n fileslv filesvg 

