Tuesday, February 24, 2015

LVM striping

umount /opt/data11
umount /opt/data12
umount /opt/data13
umount /opt/data14
umount /opt/data15


lvremove SANvg11/DATA11
lvremove SANvg12/DATA12
lvremove SANvg13/DATA13
lvremove SANvg14/DATA14
lvremove SANvg15/DATA15


vgremove SANvg11
vgremove SANvg12
vgremove SANvg13
vgremove SANvg14
vgremove SANvg15


vgcreate -s 128M SANvg11 /dev/mapper/DATADISK85p1 /dev/mapper/DATADISK86p1 /dev/mapper/DATADISK87p1 /dev/mapper/DATADISK88p1

vgcreate -s 128M SANvg12 /dev/mapper/DATADISK89p1 /dev/mapper/DATADISK90p1 /dev/mapper/DATADISK91p1 /dev/mapper/DATADISK92p1

vgcreate -s 128M SANvg13 /dev/mapper/DATADISK93p1 /dev/mapper/DATADISK94p1 /dev/mapper/DATADISK95p1 /dev/mapper/DATADISK96p1

vgcreate -s 128M SANvg14 /dev/mapper/DATADISK97p1 /dev/mapper/DATADISK98p1 /dev/mapper/DATADISK99p1 /dev/mapper/DATADISK100p1

vgcreate -s 128M SANvg15 /dev/mapper/DATADISK101p1 /dev/mapper/DATADISK102p1 /dev/mapper/DATADISK103p1 /dev/mapper/DATADISK104p1



lvcreate -i4 -I128 -L402G -n DATA11 SANvg11 /dev/mapper/DATADISK85p1 /dev/mapper/DATADISK86p1 /dev/mapper/DATADISK87p1 /dev/mapper/DATADISK88p1

lvcreate -i4 -I128 -L402G -n DATA12 SANvg12 /dev/mapper/DATADISK89p1 /dev/mapper/DATADISK90p1 /dev/mapper/DATADISK91p1 /dev/mapper/DATADISK92p1

lvcreate -i4 -I128 -L402G -n DATA13 SANvg13 /dev/mapper/DATADISK93p1 /dev/mapper/DATADISK94p1 /dev/mapper/DATADISK95p1 /dev/mapper/DATADISK96p1

lvcreate -i4 -I128 -L402G -n DATA14 SANvg14 /dev/mapper/DATADISK97p1 /dev/mapper/DATADISK98p1 /dev/mapper/DATADISK99p1 /dev/mapper/DATADISK100p1

lvcreate -i4 -I128 -L402G -n DATA15 SANvg15 /dev/mapper/DATADISK101p1 /dev/mapper/DATADISK102p1 /dev/mapper/DATADISK103p1 /dev/mapper/DATADISK104p1


mkfs.ext3 /dev/SANvg11/DATA11

mkfs.ext3 /dev/SANvg12/DATA12

mkfs.ext3 /dev/SANvg13/DATA13

mkfs.ext3 /dev/SANvg14/DATA14

mkfs.ext3 /dev/SANvg15/DATA15



mount -a

chown litpmgr1:litpappg /opt/data12 /opt/data13 /opt/data14 /opt/data15 /opt/data11

ls -ld  /opt/data12 /opt/data13 /opt/data14 /opt/data15 /opt/data11

lvs -a -o +devices | grep SANvg

vgdisplay SANvg11 SANvg12 SANvg13 SANvg14 SANvg15

No comments:

Post a Comment