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 -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
8313856 SELECT -
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
pl
testvol-02 testvol ENABLED
ACTIVE 8313856 STRIPE 2/64
RW
sd testdg02_4gm-01 testvol-02 testdg02_4gm
0 4156928 0/0
apevmx12_07b5 ENA
sd testdg01_4gm-01 testvol-02 testdg01_4gm
0 4156928 1/0
apevmx12_0398 ENA
The Above Volume is two-way mirror-stripe Volume
Extending the volume by: 8G
Initializing a disk:
# vxdisksetup -i apevmx11_070d
# vxdisksetup -i apevmx11_070e
# vxdisksetup -i apevmx12_07b6
# vxdisksetup -i apevmx12_07b7
Adding the disk to the diskgroup:
# vxdg -g testdg adddisk
testdg03_4g=apevmx11_070d
# vxdg -g testdg adddisk
testdg04_4g=apevmx11_070e
# vxdg -g testdg adddisk
testdg03_4gm=apevmx12_07b6
# vxdg -g testdg adddisk testdg04_4gm=apevmx12_07b7
Checking the free space available with the given
disk:
#vxassist -g testdg maxgrow testvol
layout=mirror-stripe ncol=2 alloc=testdg03_4g testdg04_4g testdg03_4gm
testdg04_4gm
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 testdg03_4gm testdg04_4gm
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 - 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
pl testvol-02 testvol
ENABLED ACTIVE 16627712 STRIPE 2/64
RW
sd testdg02_4gm-01 testvol-02 testdg02_4gm
0 4156928 0/0
apevmx12_07b5 ENA
sd testdg03_4gm-01 testvol-02 testdg03_4gm
0 4156928 0/4156928 apevmx12_07b6 ENA
sd testdg01_4gm-01 testvol-02 testdg01_4gm
0 4156928 1/0
apevmx12_0398 ENA
sd testdg04_4gm-01 testvol-02 testdg04_4gm
0 4156928 1/4156928 apevmx12_07b7 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