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 -htg testdg 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
SR NAME KSTATE
v
testvol - ENABLED ACTIVE
4159488 SELECT -
fsgen
pl testvol-03 testvol
ENABLED ACTIVE 4159488
CONCAT - RW
sv testvol-S01 testvol-03
testvol-L01 1 4159488 0
2/2 ENA
The Above Volume is concat-mirror layout
Extending the volume by: 4G
Before Extension, Change the layout to
stripe-mirror
#vxassist -g testdg convert testvol
layout=mirror-concat
#vxprint -g testdg -v testvol
TY NAME ASSOC KSTATE
LENGTH PLOFFS STATE
TUTIL0 PUTIL0
v
testvol fsgen ENABLED
4159488 - ACTIVE
- -
#vxprint -g testdg -htv
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
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
pl testvol-02 testvol
ENABLED ACTIVE 4159488
CONCAT - RW
sd testdg01_4gm-01 testvol-02 testdg01_4gm
0 4159488 0
apevmx12_0398 ENA
Initializing a disk:
# vxdisksetup -i apevmx11_070c
# vxdisksetup -i apevmx12_07b5
Adding the disk to the diskgroup:
# vxdg -g testdg adddisk
testdg02_4g=apevmx11_070c
# vxdg -g testdg adddisk
testdg02_4gm=apevmx12_07b5
Checking the free space available with the given
disk:
#vxassist -g testdg maxgrow testvol
layout=mirror-concat alloc=testdg02_4g testdg02_4gm
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 testdg02_4gm
Checking the Layout of the volume:
#vxprint -g testdg -htv
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
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
pl testvol-02 testvol
ENABLED ACTIVE 8315904
CONCAT - RW
sd testdg01_4gm-01 testvol-02 testdg01_4gm
0 4159488 0
apevmx12_0398 ENA
sd testdg02_4gm-01 testvol-02 testdg02_4gm
0 4156416 4159488
apevmx12_07b5 ENA
Again Change the layout:
#vxassist -g testdg convert testvol
layout=concat-mirror
#vxprint -g testdg -htv
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 8315904 SELECT
- fsgen
pl testvol-03 testvol
ENABLED ACTIVE 8315904
CONCAT - RW
sv testvol-S01 testvol-03
testvol-L01 1 4159488 0
2/2 ENA
sv testvol-S02 testvol-03
testvol-L02 1 4156416
4159488 2/2 ENA
v
testvol-L01 - ENABLED ACTIVE
4159488 SELECT -
fsgen
pl testvol-P01 testvol-L01
ENABLED ACTIVE 4159488
CONCAT - RW
sd testdg01_4g-02 testvol-P01 testdg01_4g
0 4159488 0
apevmx11_0398 ENA
pl testvol-P02 testvol-L01
ENABLED ACTIVE 4159488
CONCAT - RW
sd testdg01_4gm-02 testvol-P02 testdg01_4gm
0 4159488 0
apevmx12_0398 ENA
v
testvol-L02 - ENABLED ACTIVE
4156416 SELECT -
fsgen
pl testvol-P03 testvol-L02
ENABLED ACTIVE 4156416
CONCAT - RW
sd testdg02_4g-02 testvol-P03 testdg02_4g
0 4156416 0
apevmx11_070c ENA
pl testvol-P04 testvol-L02
ENABLED ACTIVE 4156416
CONCAT - RW
sd testdg02_4gm-02 testvol-P04 testdg02_4gm
0 4156416 0
apevmx12_07b5 ENA
File System Size after FS Increase
#bdf /test_mnt
Filesystem kbytes used
avail %used Mounted on
/dev/vx/dsk/testdg/testvol
4159488 17768 4109376 0% /test_mnt
No comments:
Post a Comment