Thursday, December 30, 2010

File System can not be resize when using the vxresize command

#/etc/vx/bin/vxresize -F vxfs -g sf6ux002-coedg vol_oracle +5g
VxVM vxresize ERROR V-5-1-4283  resizing volume other than FSGEN or RAID5 can result in loss of data. Use -f option to force resize this volume.

To increase the size of the  File System:
First is to increase the volume by using the vxassist command.
Second increase the File System by using the fsadm command.

Example:
#vxprint -htg <diskgroup> <volume>
#vxprint -htg sf6ux002-coedg vol_oracle
snip

v  vol_oracle   -            ENABLED  ACTIVE   14680064 SELECT    vol_oracle-02 gen
pl vol_oracle-02 vol_oracle  ENABLED  ACTIVE   14681600 STRIPE    2/64     RW
sd c3t88d180s2-04 vol_oracle-02 c3t88d180s2 14696960 7340800 0/0  EMC_CLARiiON0_226 ENA
sd c3t88d182s2-04 vol_oracle-02 c3t88d182s2 14696960 7340800 1/0  EMC_CLARiiON0_11 ENA



Run #vxdg -g <diskgroup> free command to verify there is space available
#vxdg -g sf6ux002-coedg free
DISK DEVICE TAG OFFSET LENGTH FLAGS
c3t88d180s2 EMC_CLARiiON0_226 EMC_CLARiiON0_226 23061760 1036800 -
c3t88d180s2 EMC_CLARiiON0_226 EMC_CLARiiON0_226 36170240 5766400 -
c3t88d182s2 EMC_CLARiiON0_11 EMC_CLARiiON0_11 23061760 1036800 -
c3t88d182s2 EMC_CLARiiON0_11 EMC_CLARiiON0_11 36170240 5766400 -
c3t88d183s2 EMC_CLARiiON0_227 EMC_CLARiiON0_227 25646080 524800 -
c3t88d183s2 EMC_CLARiiON0_227 EMC_CLARiiON0_227 30365440 11571200 -
c3t88d184s2 EMC_CLARiiON0_223 EMC_CLARiiON0_223 17267200 1280 -
c3t88d184s2 EMC_CLARiiON0_223 EMC_CLARiiON0_223 25647360 524800 -
c3t88d184s2 EMC_CLARiiON0_223 EMC_CLARiiON0_223 34561280 7375360 -


Increase the volume:
#vxassist -g <diskgroup> growby <volume> size
#vxassist -g sf6ux002-coedg  growby vol_oracle 5g

To view the new size of the volume:
# vxprint -htg <diskgroup> <volume>
# vxprint -htg sf6ux002-coedg vol_oracle
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
v vol_oracle - ENABLED ACTIVE 25165824 SELECT vol_oracle-02 gen
pl vol_oracle-02 vol_oracle ENABLED ACTIVE 25167360 STRIPE 2/64 RW
sd c3t88d180s2-04 vol_oracle-02 c3t88d180s2 14696960 7340800 0/0 EMC_CLARiiON0_226 ENA
sd c3t88d180s2-07 vol_oracle-02 c3t88d180s2 36170240 5242880 0/7340800 EMC_CLARiiON0_226 ENA
sd c3t88d182s2-04 vol_oracle-02 c3t88d182s2 14696960 7340800 1/0 EMC_CLARiiON0_11 ENA
sd c3t88d182s2-07 vol_oracle-02 c3t88d182s2 36170240 5242880 1/7340800 EMC_CLARiiON0_11 ENA
Increase the File System:
#/usr/lib/fs/vxfs/fsadm -b <volume-size>  -r  #/dev/vx/rdsk/dev/vx/dskdiskgroup/volume  /mount-point
#/usr/lib/fs/vxfs/fsadm -b 25165824 -r  /dev/vx/rdsk/dev/vx/dsk/sf6ux002-coedg/vol_oracle  /apps/oracle

No comments:

Post a Comment