4.11.2022

easy HPUX expand examples

bdf /ora01 /grid

 

ioscan ; insf

(PRO TIP:  do NOT use insf -e unless you know what you are doing.  you could kill the oracle asm or any device special file ownership or permissions)

ioscan -funNH $(grep vmunix /var/adm/syslog/syslog.log | grep 64000 | tail -1 | awk '{print $6}')

 

pvcreate /dev/disk/disk112

vgextend vg01 /dev/disk/disk112

 

lvdisplay /dev/vg01/lvora01 | grep -i "LV size"

NEWSIZE=$(expr `lvdisplay /dev/vg01/lvora01 | grep -i "LV size" | awk '{print $4}'` + 20480)

lvextend -L ${NEWSIZE} /dev/vg01/lvora01

fsadm -F vxfs -b ${NEWSIZE}m /ora01

 

lvdisplay /dev/vg01/lvgrid | grep -i "LV size"

NEWSIZE=$(expr `lvdisplay /dev/vg01/lvgrid | grep -i "LV size" | awk '{print $4}'` + 20480)

lvextend -L ${NEWSIZE} /dev/vg01/lvgrid

fsadm -F vxfs -b ${NEWSIZE}m /grid

 

bdf /ora01 /grid

 

 

#SaveSoil – it's a generational responsibility, Let's make it happen

No comments: