RAID 1: mirroring
-bash-4.1# vxmake -g test sd sd1 d0,0,100m
-bash-4.1# vxmake -g test sd sd2 d1,0,100m
-bash-4.1# vxmake -g test plex plex1 sd=sd1
-bash-4.1# vxmake -g test plex plex2 sd=sd2
-bash-4.1# vxmake -g test -U fsgen vol mirvol plex=plex1,plex2
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - DISABLED EMPTY 204800 ROUND - fsgen
pl plex1 mirvol DISABLED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol DISABLED EMPTY 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# mkfs -F vxfs /dev/vx/rdsk/test/mirvol
version 10 layout
204800 sectors, 102400 blocks of size 1024, log size 1024 blocks
rcq size 1024 blocks
largefiles supported
maxlink supported
-bash-4.1# mount -F vxfs /dev/vx/dsk/test/mirvol /test
-bash-4.1# df -h /test
Filesystem Size Used Available Capacity Mounted on
/dev/vx/dsk/test/mirvol
100M 3.1M 91M 4% /test
-bash-4.1# cd /test/
-bash-4.1# ls
lost+found
-bash-4.1# touch a b c d ef g h i j k l m
-bash-4.1# ls
a b c d ef g h i j k l lost+found m
-bash-4.1# pwd
/test
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
to offline plex
-bash-4.1# vxmend -g test off plex1
-bash-4.1# vxprint -g test -hvt
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# ls
a b c d ef g h i j k l lost+found m
-bash-4.1# pwd
/test
to online plex
-bash-4.1# vxmend -g test on plex1
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
to recover stale plex while anoter plex is online
-bash-4.1# vxmend -g test fix clean plex1
VxVM vxmend ERROR V-5-1-1227 Volume mirvol is not DISABLED
still plex in in stale state
-bash-4.1# vxrecover -g test mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test off plex2
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
NOTE:-
-bash-4.1# vxmend -g test fix clean plex2
VxVM vxmend ERROR V-5-1-854 Plex plex2 not in STALE state
-bash-4.1# vxplex -g test -f dis plex1
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test on plex2
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol DISABLED STALE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test fix clean plex2
VxVM vxmend ERROR V-5-1-1227 Volume mirvol is not DISABLED
-bash-4.1# umount /test
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol DISABLED STALE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test stop mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - DISABLED CLEAN 204800 ROUND - fsgen
pl plex2 mirvol DISABLED STALE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test fix clean plex2
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - DISABLED CLEAN 204800 ROUND - fsgen
pl plex2 mirvol DISABLED CLEAN 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# mount -F vxfs /dev/vx/dsk/test/mirvol /test
log replay in progress
replay complete - marking super-block as CLEAN
-bash-4.1# cd /test
-bash-4.1# ls
a b c d ef g h i j k l lost+found m
convert single way mirror to 2-way mirror
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxassist -g test mirror mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-01 d0 208640 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
convert 2-way mirror to one-way mirror
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-01 d0 208640 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxassist -g test remove mirror mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-01 d0 208640 204800 0 c2d18 ENA
-bash-4.1# umount /test
-bash-4.1# vxedit -g test -rf rm mirvol
-bash-4.1# vxprint -hvt
===========================or======================================
-bash-4.1# vxassist -g test make mirvol 100m layout=mirror
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 mirvol-01 d1 0 204800 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 204800 0 c2d18 ENA
growto:-
-bash-4.1# vxassist -g test growto mirvol 500m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 1024000 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 1024000 CONCAT - RW
sd d1-01 mirvol-01 d1 0 1024000 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 1024000 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 1024000 0 c2d18 ENA
-bash-4.1# vxassist -g test growby mirvol +100m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 1228800 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 1228800 CONCAT - RW
sd d1-01 mirvol-01 d1 0 1228800 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 1228800 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 1228800 0 c2d18 ENA
grow by:-
-bash-4.1# vxassist -g test growby mirvol 100m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 1433600 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 1433600 CONCAT - RW
sd d1-01 mirvol-01 d1 0 1433600 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 1433600 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 1433600 0 c2d18 ENA
shrink by:-
-bash-4.1# vxassist -g test -f shrinkby mirvol 100m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 1228800 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 1228800 CONCAT - RW
sd d1-01 mirvol-01 d1 0 1228800 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 1228800 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 1228800 0 c2d18 ENA
shrink to:-
-bash-4.1# vxassist -g test -f shrinkto mirvol 100m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 mirvol-01 d1 0 204800 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 204800 0 c2d18 ENA
NOTE:-
-bash-4.1# vxresize -g test mirvol 100m
VxVM vxresize ERROR V-5-1-2331 Cannot resize volume mirvol (VXFS file system not mounted)
-bash-4.1# vxresize -g test mirvol 500m
-bash-4.1# vxresize -g test mirvol +100m
-bash-4.1# vxresize -g test mirvol -100m
-bash-4.1# vxresize -g test mirvol 100m
-bash-4.1# vxassist -g test remove volume mirvol
-bash-4.1# vxprint -hvt
-bash-4.1# vxmake -g test sd sd1 d0,0,100m
-bash-4.1# vxmake -g test sd sd2 d1,0,100m
-bash-4.1# vxmake -g test plex plex1 sd=sd1
-bash-4.1# vxmake -g test plex plex2 sd=sd2
-bash-4.1# vxmake -g test -U fsgen vol mirvol plex=plex1,plex2
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - DISABLED EMPTY 204800 ROUND - fsgen
pl plex1 mirvol DISABLED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol DISABLED EMPTY 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# mkfs -F vxfs /dev/vx/rdsk/test/mirvol
version 10 layout
204800 sectors, 102400 blocks of size 1024, log size 1024 blocks
rcq size 1024 blocks
largefiles supported
maxlink supported
-bash-4.1# mount -F vxfs /dev/vx/dsk/test/mirvol /test
-bash-4.1# df -h /test
Filesystem Size Used Available Capacity Mounted on
/dev/vx/dsk/test/mirvol
100M 3.1M 91M 4% /test
-bash-4.1# cd /test/
-bash-4.1# ls
lost+found
-bash-4.1# touch a b c d ef g h i j k l m
-bash-4.1# ls
a b c d ef g h i j k l lost+found m
-bash-4.1# pwd
/test
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
to offline plex
-bash-4.1# vxmend -g test off plex1
-bash-4.1# vxprint -g test -hvt
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# ls
a b c d ef g h i j k l lost+found m
-bash-4.1# pwd
/test
to online plex
-bash-4.1# vxmend -g test on plex1
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
to recover stale plex while anoter plex is online
-bash-4.1# vxmend -g test fix clean plex1
VxVM vxmend ERROR V-5-1-1227 Volume mirvol is not DISABLED
still plex in in stale state
-bash-4.1# vxrecover -g test mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test off plex2
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex1 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 mirvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
NOTE:-
-bash-4.1# vxmend -g test fix clean plex2
VxVM vxmend ERROR V-5-1-854 Plex plex2 not in STALE state
-bash-4.1# vxplex -g test -f dis plex1
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test on plex2
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol DISABLED STALE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test fix clean plex2
VxVM vxmend ERROR V-5-1-1227 Volume mirvol is not DISABLED
-bash-4.1# umount /test
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol DISABLED STALE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test stop mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - DISABLED CLEAN 204800 ROUND - fsgen
pl plex2 mirvol DISABLED STALE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test fix clean plex2
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - DISABLED CLEAN 204800 ROUND - fsgen
pl plex2 mirvol DISABLED CLEAN 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# mount -F vxfs /dev/vx/dsk/test/mirvol /test
log replay in progress
replay complete - marking super-block as CLEAN
-bash-4.1# cd /test
-bash-4.1# ls
a b c d ef g h i j k l lost+found m
convert single way mirror to 2-way mirror
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxassist -g test mirror mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-01 d0 208640 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
convert 2-way mirror to one-way mirror
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-01 d0 208640 204800 0 c2d18 ENA
pl plex2 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxassist -g test remove mirror mirvol
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 ROUND - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-01 d0 208640 204800 0 c2d18 ENA
-bash-4.1# umount /test
-bash-4.1# vxedit -g test -rf rm mirvol
-bash-4.1# vxprint -hvt
===========================or======================================
-bash-4.1# vxassist -g test make mirvol 100m layout=mirror
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 mirvol-01 d1 0 204800 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 204800 0 c2d18 ENA
growto:-
-bash-4.1# vxassist -g test growto mirvol 500m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 1024000 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 1024000 CONCAT - RW
sd d1-01 mirvol-01 d1 0 1024000 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 1024000 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 1024000 0 c2d18 ENA
-bash-4.1# vxassist -g test growby mirvol +100m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 1228800 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 1228800 CONCAT - RW
sd d1-01 mirvol-01 d1 0 1228800 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 1228800 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 1228800 0 c2d18 ENA
grow by:-
-bash-4.1# vxassist -g test growby mirvol 100m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 1433600 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 1433600 CONCAT - RW
sd d1-01 mirvol-01 d1 0 1433600 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 1433600 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 1433600 0 c2d18 ENA
shrink by:-
-bash-4.1# vxassist -g test -f shrinkby mirvol 100m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 1228800 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 1228800 CONCAT - RW
sd d1-01 mirvol-01 d1 0 1228800 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 1228800 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 1228800 0 c2d18 ENA
shrink to:-
-bash-4.1# vxassist -g test -f shrinkto mirvol 100m
-bash-4.1# vxprint -hvt
Disk group: test
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 mirvol - ENABLED ACTIVE 204800 SELECT - fsgen
pl mirvol-01 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 mirvol-01 d1 0 204800 0 c2d17 ENA
pl mirvol-02 mirvol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 mirvol-02 d0 204800 204800 0 c2d18 ENA
NOTE:-
-bash-4.1# vxresize -g test mirvol 100m
VxVM vxresize ERROR V-5-1-2331 Cannot resize volume mirvol (VXFS file system not mounted)
-bash-4.1# vxresize -g test mirvol 500m
-bash-4.1# vxresize -g test mirvol +100m
-bash-4.1# vxresize -g test mirvol -100m
-bash-4.1# vxresize -g test mirvol 100m
-bash-4.1# vxassist -g test remove volume mirvol
-bash-4.1# vxprint -hvt
No comments:
Post a Comment