Growing a VxVM volume.

# check DG
vxprint -htg

# available free space in DG
vxdg -g free
# last but one column: value / 1024 / 1024 / 2 = free space in GB

# configure new LUNs (if cluster: on all nodes)
cfgadm -al
devfsadm

# check DGs
vxdisk -o alldgs list
# or (where XX=LUN)
vxdisk -o alldgs list | grep dXX

# if status is on “error” and/or type is set to other than “auto:sliced” and/or LUNs already belong to another unknown DG:
/etc/vx/bin/vxdiskunsetup
format -e

# label with EFI and than back to SMI, then on all nodes:
vxdctl enable
# status should be “online invalid” now

# from this point on use active node only (for this DG)
# activate LUN in VXVM
/etc/vx/bin/vxdisksetup -i

# check EMC location
luxadm display /dev/rdsk/s2

# add LUN to DG and name it (where DISKNAME: -, i.e. 2751-41)
vxdg -g adddisk =

# optional: occasionaly check DG
vxprint -htg

# create new subdisks
# where SDNAME=DISKNAME+CONSECUTIVE_NUMBER
vxmake -g sd disk= offset=XXX len=YYY
# => offset as shown in 4th column: “vxdg -g free”
# => len in “m” or “g” or no unit at all, which is than to be definded as in 5th column of “vxdg -g free”

# add new subdisks to plex (PLEXNAME s. “vxprint -htg “)
# ATTENTION: check location of EMCs and do not mix EMCs within one plex!!!!
vxsd -g assoc
# check “vxprint -htg “: plexes are now larger than volume:
# 6th column in row “pl” and 6th column in row “v”

# now enlarge volume to same size as plex (XXX=6th column in row “pl”)
vxassist -g growto VOLNAME XXX

# check FS type:
mount -p

# enlarge UFS FS:
growfs -M

# enlarge VXFS:
fsadm -F vxfs -b -r
=> where NEW_SIZE should be the same value as used while anlarging the volume

# done

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s