Thursday, February 25, 2010

LVM on Linux for new LUN

1. Reboot the server to activate the new LUN

#init 6

Create partition to new LUN Device.
Convert with LVM System ID

#fdisk /dev/emcpowerXX
#fdisk /dev/emcpowerYY

***Let kernel know about new Partitions
#partprobe

***Create Physical Volume for VG
#pvcreate /dev/emcpowerX1
#pvcreate /dev/emcpowerY1

***Extend the VG
#vgextend vg01 /dev/emcpowerX1 (50 GB new LUN)
#vgextend vg02 /dev/emcpowerY1 (50 GB new LUN)

***Extend the LV
#lvextend -L +50GB /dev/vg01/u02lv vg01
#lvextend -L +50GB /dev/vg02/u04lv vg02

***updating the OS with new disk space
#resize2fs /dev/vg01/u02lv
#resize2fs /dev/vg02/u04lv

Verification Process

df -hT
fdisk -l

No comments:

Post a Comment

Comment Form Message