File System Size before FS Extension:
#bdf /test_mnt
Filesystem kbytes used
avail %used Mounted on
/dev/vx/dsk/testdg/testvol
8313856 17896 8231160 0% /test_mnt
Checking the Layout of the volume:
#vxprint -g testdg -htrL -v testvol
ST NAME STATE DM_CNT
SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE
PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE
STATE PRIMARY DATAVOLS
SRL
RL NAME
RVG KSTATE STATE
REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE
STATE
VT NAME RVG KSTATE STATE
NVOLUME
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
dm testdg01_4g apevmx11_0398 auto 32768
4160384 -
dm testdg02_4g apevmx11_070c auto 32768
4157312 -
v
testvol - ENABLED ACTIVE
8313856 SELECT testvol-01 fsgen
pl testvol-01 testvol
ENABLED ACTIVE 8313856
STRIPE 2/64
RW
sd testdg02_4g-01 testvol-01 testdg02_4g
0 4156928 0/0
apevmx11_070c ENA
sd testdg01_4g-01 testvol-01 testdg01_4g
0 4156928 1/0
apevmx11_0398 ENA
The Above Volume is two-way stripe Volume
Extending the volume by: 8G
Initializing a disk:
# vxdisksetup -i apevmx11_070d
# vxdisksetup -i apevmx11_070e
Adding the disk to the diskgroup:
# vxdg -g testdg adddisk
testdg03_4g=apevmx11_070d
# vxdg -g testdg adddisk
testdg04_4g=apevmx11_070e
Checking the free space available with the given
disk:
#vxassist -g testdg maxgrow testvol
layout=stripe ncol=2 alloc=testdg03_4g testdg04_4g
Volume testvol can be extended by 8313856 to:
16627712 (16238Mb)
The above output says that the volume could be max extended by 8313856s,
and after increase of this volume by 4156416s, the final size would be 16238Mb
or 16627712s
Resizing the Volume
# /etc/vx/bin/vxresize -g testdg -F vxfs
testvol +8313856s alloc=testdg03_4g testdg04_4g
Checking the Layout of the volume:
#vxprint -htg testdg -v testvol
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
v testvol - ENABLED ACTIVE
16627712 SELECT testvol-01
fsgen
pl testvol-01 testvol
ENABLED ACTIVE 16627712 STRIPE 2/64
RW
sd testdg02_4g-01 testvol-01 testdg02_4g
0 4156928 0/0
apevmx11_070c ENA
sd testdg03_4g-01 testvol-01 testdg03_4g
0 4156928 0/4156928 apevmx11_070d ENA
sd testdg01_4g-01 testvol-01 testdg01_4g
0 4156928 1/0
apevmx11_0398 ENA
sd testdg04_4g-01 testvol-01 testdg04_4g
0 4156928 1/4156928 apevmx11_070e ENA
File System Size after FS Increase
#bdf /test_mnt
Filesystem kbytes used
avail %used Mounted on
/dev/vx/dsk/testdg/testvol
16627712 18152 16479808 0% /test_mnt
No comments:
Post a Comment