Sunday, September 9, 2012

Capacity Request for LVM (Hp ux and Redhat)

Types:

Linux Normal::

1. discover new disk by scanning hbas (vendor specific scripts ) or echo "- - -"
2. then use fdisk
3.pvcreate /dev/rdsk/C0t1d23
4.mknod
5.vgcreate
6.lvcreate
   b.) makefs
7.mount

##################for existing lv ##########
vgextend
lvextend
extend2fs  or resize2fs depending on the version which supports

Linux Cluster::

For Cluster follow the same procedure ..

we have to restart cluster service in other node
service cmcld stop/start

Hp-Ux Normal:

1.) take ioscan out put to one file & then do insf -c disk to discover the disk
2.) take ioscan out put and compare to find new disks
3.) pvcreate /dev/rdsk/cxtydz
4.)vgcreate
5.)lvcreate
6.)makefs
7.)mount


##################for existing lv ##########
vgextend
lvextend
fsadm or extendfs depending on the version which supports

Hp-Ux Cluster:

Follow the above steps .  . if extended vg then we have to do vgexport in preview mode and  in other node we to export the vg and we have to import again with new map file.

Node 1: (active)
vgexport -p -v -s -m old.dsk old.map /dev/testvg
scp old.map node2:/

Node 2:
vgexport /dev/testvg
vgimport -m old.map -s /dev/testvg



Hp-Ux BCV / GBCV :

We have to mask the corresponding BCV / GBCV luns

Common Problems::

1.) File system is 100% utilized..
 a) then we have to extend small amount
 b) Free up some space to write
2.) Number of free PE s completed
3.) Need to defragment the file system