File System Size before FS Extension:
#bdf /test_mnt
Filesystem kbytes used
avail %used Mounted on
/dev/vx/dsk/testdg/testvol
4159488 17768 4109376 0% /test_mnt
Checking the Layout of the volume:
#vxprint -g testdg -htrL 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
SR NAME KSTATE
dm testdg01_4g apevmx11_0398 auto 32768
4160384 -
v
testvol - ENABLED ACTIVE
4159488 SELECT -
fsgen
pl testvol-01 testvol
ENABLED ACTIVE 4159488
CONCAT - RW
sd testdg01_4g-01 testvol-01 testdg01_4g
0 4159488 0
apevmx11_0398 ENA
The Above Volume is Simple Concatenated:
Extending the volume by: 4G
Initializing a disk:
# vxdisksetup -i apevmx11_070c
Adding the disk to the diskgroup:
# vxdg -g testdg adddisk
testdg02_4g=apevmx11_070c
Checking the free space available with the given
disk:
#vxassist -g
testdg maxgrow testvol alloc=testdg02_4g
Volume testvol
can be extended by 4156416 to: 8315904 (8121Mb)
The above output says that the volume could be max extended by 4156416s,
and after increase of this volume by 4156416s, the final size would be 8121Mb
or 8315904s
Resizing the Volume:
# /etc/vx/bin/vxresize -g testdg -F vxfs
testvol +4156416s alloc=testdg02_4g
Checking the Layout of the volume:
#vxprint -g testdg -htrL 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
SR NAME KSTATE
dm testdg01_4g apevmx11_0398 auto 32768
4160384 -
dm testdg02_4g apevmx11_070c auto 32768
4157312 -
v
testvol - ENABLED ACTIVE
8315904 SELECT -
fsgen
pl testvol-01 testvol
ENABLED ACTIVE 8315904
CONCAT - RW
sd testdg01_4g-01 testvol-01 testdg01_4g
0 4159488 0
apevmx11_0398 ENA
sd testdg02_4g-01 testvol-01 testdg02_4g
0 4156416 4159488
apevmx11_070c ENA
File System Size after FS Increase
#bdf /test_mnt
Filesystem kbytes used
avail %used Mounted on
/dev/vx/dsk/testdg/testvol
8315904 17896 8233192 0% /test_mnt
No comments:
Post a Comment