STRIPING-MIRROR VOLUME
=====================
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1389090365.100.solaris2
-bash-4.1# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c2d0s2 auto:ZFS - - ZFS
c2d1s2 auto:ZFS - - ZFS
c2d8s2 auto:none - - online invalid
c2d9s2 auto:none - - online invalid
c2d10s2 auto:none - - online invalid
c2d11s2 auto:none - - online invalid
c2d15s2 auto:cdsdisk d3 test online
c2d16s2 auto:cdsdisk d2 test online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 test online
-bash-4.1# vxassist -g test make str-mirvol 1g layout=stripe-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 str-mirvol - ENABLED ACTIVE 2097152 SELECT str-mirvol-03 fsgen
pl str-mirvol-03 str-mirvol ENABLED ACTIVE 2097152 STRIPE 2/128 RW
sv str-mirvol-S01 str-mirvol-03 str-mirvol-L01 1 1048576 0/0 2/2 ENA
sv str-mirvol-S02 str-mirvol-03 str-mirvol-L02 1 1048576 1/0 2/2 ENA
v str-mirvol-L01 - ENABLED ACTIVE 1048576 SELECT - fsgen
pl str-mirvol-P01 str-mirvol-L01 ENABLED ACTIVE 1048576 CONCAT - RW
sd d2-02 str-mirvol-P01 d2 0 1048576 0 c2d16 ENA
pl str-mirvol-P02 str-mirvol-L01 ENABLED ACTIVE 1048576 CONCAT - RW
sd d0-02 str-mirvol-P02 d0 0 1048576 0 c2d18 ENA
v str-mirvol-L02 - ENABLED ACTIVE 1048576 SELECT - fsgen
pl str-mirvol-P03 str-mirvol-L02 ENABLED ACTIVE 1048576 CONCAT - RW
sd d1-02 str-mirvol-P03 d1 0 1048576 0 c2d17 ENA
pl str-mirvol-P04 str-mirvol-L02 ENABLED ACTIVE 1048576 CONCAT - RW
sd d3-02 str-mirvol-P04 d3 204800 1048576 0 c2d15 ENA
GROW BY:-
-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 str-mirvol - ENABLED ACTIVE 2097152 SELECT str-mirvol-03 fsgen
pl str-mirvol-03 str-mirvol ENABLED ACTIVE 2097152 STRIPE 2/128 RW
sv str-mirvol-S01 str-mirvol-03 str-mirvol-L01 1 1048576 0/0 2/2 ENA
sv str-mirvol-S02 str-mirvol-03 str-mirvol-L02 1 1048576 1/0 2/2 ENA
v str-mirvol-L01 - ENABLED ACTIVE 1048576 SELECT - fsgen
pl str-mirvol-P01 str-mirvol-L01 ENABLED ACTIVE 1048576 CONCAT - RW
sd d2-02 str-mirvol-P01 d2 0 1048576 0 c2d16 ENA
pl str-mirvol-P02 str-mirvol-L01 ENABLED ACTIVE 1048576 CONCAT - RW
sd d0-02 str-mirvol-P02 d0 0 1048576 0 c2d18 ENA
v str-mirvol-L02 - ENABLED ACTIVE 1048576 SELECT - fsgen
pl str-mirvol-P03 str-mirvol-L02 ENABLED ACTIVE 1048576 CONCAT - RW
sd d1-02 str-mirvol-P03 d1 0 1048576 0 c2d17 ENA
pl str-mirvol-P04 str-mirvol-L02 ENABLED ACTIVE 1048576 CONCAT - RW
sd d3-02 str-mirvol-P04 d3 204800 1048576 0 c2d15 ENA
-bash-4.1# vxresize -g test str-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 str-mirvol - ENABLED ACTIVE 2301952 SELECT str-mirvol-04 fsgen
pl str-mirvol-04 str-mirvol ENABLED ACTIVE 2301952 STRIPE 2/128 RW
sv str-mirvol-S03 str-mirvol-04 str-mirvol-L03 1 1150976 0/0 2/2 ENA
sv str-mirvol-S04 str-mirvol-04 str-mirvol-L04 1 1150976 1/0 2/2 ENA
v str-mirvol-L03 - ENABLED ACTIVE 1150976 SELECT - fsgen
pl str-mirvol-P05 str-mirvol-L03 ENABLED ACTIVE 1150976 CONCAT - RW
sd d2-03 str-mirvol-P05 d2 0 1150976 0 c2d16 ENA
pl str-mirvol-P06 str-mirvol-L03 ENABLED ACTIVE 1150976 CONCAT - RW
sd d0-03 str-mirvol-P06 d0 0 1150976 0 c2d18 ENA
v str-mirvol-L04 - ENABLED ACTIVE 1150976 SELECT - fsgen
pl str-mirvol-P07 str-mirvol-L04 ENABLED ACTIVE 1150976 CONCAT - RW
sd d1-03 str-mirvol-P07 d1 0 1150976 0 c2d17 ENA
pl str-mirvol-P08 str-mirvol-L04 ENABLED ACTIVE 1150976 CONCAT - RW
sd d3-03 str-mirvol-P08 d3 204800 1150976 0 c2d15 ENA
GROW TO:-
-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 str-mirvol - ENABLED ACTIVE 2301952 SELECT str-mirvol-04 fsgen
pl str-mirvol-04 str-mirvol ENABLED ACTIVE 2301952 STRIPE 2/128 RW
sv str-mirvol-S03 str-mirvol-04 str-mirvol-L03 1 1150976 0/0 2/2 ENA
sv str-mirvol-S04 str-mirvol-04 str-mirvol-L04 1 1150976 1/0 2/2 ENA
v str-mirvol-L03 - ENABLED ACTIVE 1150976 SELECT - fsgen
pl str-mirvol-P05 str-mirvol-L03 ENABLED ACTIVE 1150976 CONCAT - RW
sd d2-03 str-mirvol-P05 d2 0 1150976 0 c2d16 ENA
pl str-mirvol-P06 str-mirvol-L03 ENABLED ACTIVE 1150976 CONCAT - RW
sd d0-03 str-mirvol-P06 d0 0 1150976 0 c2d18 ENA
v str-mirvol-L04 - ENABLED ACTIVE 1150976 SELECT - fsgen
pl str-mirvol-P07 str-mirvol-L04 ENABLED ACTIVE 1150976 CONCAT - RW
sd d1-03 str-mirvol-P07 d1 0 1150976 0 c2d17 ENA
pl str-mirvol-P08 str-mirvol-L04 ENABLED ACTIVE 1150976 CONCAT - RW
sd d3-03 str-mirvol-P08 d3 204800 1150976 0 c2d15 ENA
-bash-4.1# vxresize -g test str-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 str-mirvol - ENABLED ACTIVE 1024000 SELECT str-mirvol-03 fsgen
pl str-mirvol-03 str-mirvol ENABLED ACTIVE 1024000 STRIPE 2/128 RW
sv str-mirvol-S01 str-mirvol-03 str-mirvol-L01 1 512000 0/0 2/2 ENA
sv str-mirvol-S02 str-mirvol-03 str-mirvol-L02 1 512000 1/0 2/2 ENA
v str-mirvol-L01 - ENABLED ACTIVE 512000 SELECT - fsgen
pl str-mirvol-P01 str-mirvol-L01 ENABLED ACTIVE 512000 CONCAT - RW
sd d2-02 str-mirvol-P01 d2 0 512000 0 c2d16 ENA
pl str-mirvol-P02 str-mirvol-L01 ENABLED ACTIVE 512000 CONCAT - RW
sd d0-02 str-mirvol-P02 d0 0 512000 0 c2d18 ENA
v str-mirvol-L02 - ENABLED ACTIVE 512000 SELECT - fsgen
pl str-mirvol-P03 str-mirvol-L02 ENABLED ACTIVE 512000 CONCAT - RW
sd d1-02 str-mirvol-P03 d1 0 512000 0 c2d17 ENA
pl str-mirvol-P04 str-mirvol-L02 ENABLED ACTIVE 512000 CONCAT - RW
sd d3-02 str-mirvol-P04 d3 204800 512000 0 c2d15 ENA
=====================
shrink by 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 str-mirvol - ENABLED ACTIVE 1024000 SELECT str-mirvol-03 fsgen
pl str-mirvol-03 str-mirvol ENABLED ACTIVE 1024000 STRIPE 2/128 RW
sv str-mirvol-S01 str-mirvol-03 str-mirvol-L01 1 512000 0/0 2/2 ENA
sv str-mirvol-S02 str-mirvol-03 str-mirvol-L02 1 512000 1/0 2/2 ENA
v str-mirvol-L01 - ENABLED ACTIVE 512000 SELECT - fsgen
pl str-mirvol-P01 str-mirvol-L01 ENABLED ACTIVE 512000 CONCAT - RW
sd d2-02 str-mirvol-P01 d2 0 512000 0 c2d16 ENA
pl str-mirvol-P02 str-mirvol-L01 ENABLED ACTIVE 512000 CONCAT - RW
sd d0-02 str-mirvol-P02 d0 0 512000 0 c2d18 ENA
v str-mirvol-L02 - ENABLED ACTIVE 512000 SELECT - fsgen
pl str-mirvol-P03 str-mirvol-L02 ENABLED ACTIVE 512000 CONCAT - RW
sd d1-02 str-mirvol-P03 d1 0 512000 0 c2d17 ENA
pl str-mirvol-P04 str-mirvol-L02 ENABLED ACTIVE 512000 CONCAT - RW
sd d3-02 str-mirvol-P04 d3 204800 512000 0 c2d15 ENA
-bash-4.1# vxresize -g test str-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 str-mirvol - ENABLED ACTIVE 819200 SELECT str-mirvol-04 fsgen
pl str-mirvol-04 str-mirvol ENABLED ACTIVE 819200 STRIPE 2/128 RW
sv str-mirvol-S03 str-mirvol-04 str-mirvol-L03 1 409600 0/0 2/2 ENA
sv str-mirvol-S04 str-mirvol-04 str-mirvol-L04 1 409600 1/0 2/2 ENA
v str-mirvol-L03 - ENABLED ACTIVE 409600 SELECT - fsgen
pl str-mirvol-P05 str-mirvol-L03 ENABLED ACTIVE 409600 CONCAT - RW
sd d2-03 str-mirvol-P05 d2 0 409600 0 c2d16 ENA
pl str-mirvol-P06 str-mirvol-L03 ENABLED ACTIVE 409600 CONCAT - RW
sd d0-03 str-mirvol-P06 d0 0 409600 0 c2d18 ENA
v str-mirvol-L04 - ENABLED ACTIVE 409600 SELECT - fsgen
pl str-mirvol-P07 str-mirvol-L04 ENABLED ACTIVE 409600 CONCAT - RW
sd d1-03 str-mirvol-P07 d1 0 409600 0 c2d17 ENA
pl str-mirvol-P08 str-mirvol-L04 ENABLED ACTIVE 409600 CONCAT - RW
sd d3-03 str-mirvol-P08 d3 204800 409600 0 c2d15 ENA
===============
shrink to:-
-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 str-mirvol - ENABLED ACTIVE 819200 SELECT str-mirvol-04 fsgen
pl str-mirvol-04 str-mirvol ENABLED ACTIVE 819200 STRIPE 2/128 RW
sv str-mirvol-S03 str-mirvol-04 str-mirvol-L03 1 409600 0/0 2/2 ENA
sv str-mirvol-S04 str-mirvol-04 str-mirvol-L04 1 409600 1/0 2/2 ENA
v str-mirvol-L03 - ENABLED ACTIVE 409600 SELECT - fsgen
pl str-mirvol-P05 str-mirvol-L03 ENABLED ACTIVE 409600 CONCAT - RW
sd d2-03 str-mirvol-P05 d2 0 409600 0 c2d16 ENA
pl str-mirvol-P06 str-mirvol-L03 ENABLED ACTIVE 409600 CONCAT - RW
sd d0-03 str-mirvol-P06 d0 0 409600 0 c2d18 ENA
v str-mirvol-L04 - ENABLED ACTIVE 409600 SELECT - fsgen
pl str-mirvol-P07 str-mirvol-L04 ENABLED ACTIVE 409600 CONCAT - RW
sd d1-03 str-mirvol-P07 d1 0 409600 0 c2d17 ENA
pl str-mirvol-P08 str-mirvol-L04 ENABLED ACTIVE 409600 CONCAT - RW
sd d3-03 str-mirvol-P08 d3 204800 409600 0 c2d15 ENA
-bash-4.1# vxresize -g test str-mirvol 150m
-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 str-mirvol - ENABLED ACTIVE 307200 SELECT str-mirvol-03 fsgen
pl str-mirvol-03 str-mirvol ENABLED ACTIVE 307200 STRIPE 2/128 RW
sv str-mirvol-S01 str-mirvol-03 str-mirvol-L01 1 153600 0/0 2/2 ENA
sv str-mirvol-S02 str-mirvol-03 str-mirvol-L02 1 153600 1/0 2/2 ENA
v str-mirvol-L01 - ENABLED ACTIVE 153600 SELECT - fsgen
pl str-mirvol-P01 str-mirvol-L01 ENABLED ACTIVE 153600 CONCAT - RW
sd d2-02 str-mirvol-P01 d2 0 153600 0 c2d16 ENA
pl str-mirvol-P02 str-mirvol-L01 ENABLED ACTIVE 153600 CONCAT - RW
sd d0-02 str-mirvol-P02 d0 0 153600 0 c2d18 ENA
v str-mirvol-L02 - ENABLED ACTIVE 153600 SELECT - fsgen
pl str-mirvol-P03 str-mirvol-L02 ENABLED ACTIVE 153600 CONCAT - RW
sd d1-02 str-mirvol-P03 d1 0 153600 0 c2d17 ENA
pl str-mirvol-P04 str-mirvol-L02 ENABLED ACTIVE 153600 CONCAT - RW
sd d3-02 str-mirvol-P04 d3 204800 153600 0 c2d15 ENA
======================================
TO REMOVE VOLUME
-bash-4.1# vxassist -g test remove volume str-mirvol
-bash-4.1# vxprint -hvt
============================================MIRROR-STRIPE VOLUME==============================================
-bash-4.1# vxassist -g test make mir-strvol 200m layout=mirror-stripe
-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 mir-strvol - ENABLED ACTIVE 409600 SELECT - fsgen
pl mir-strvol-01 mir-strvol ENABLED ACTIVE 409600 STRIPE 2/128 RW
sd d2-01 mir-strvol-01 d2 0 204800 0/0 c2d16 ENA
sd d1-01 mir-strvol-01 d1 0 204800 1/0 c2d17 ENA
pl mir-strvol-02 mir-strvol ENABLED ACTIVE 409600 STRIPE 2/128 RW
sd d0-01 mir-strvol-02 d0 0 204800 0/0 c2d18 ENA
sd d3-01 mir-strvol-02 d3 204800 204800 1/0 c2d15 ENA
to remove mirror-stripe volume
-bash-4.1# vxassist -g test remove volume mir-strvol
No comments:
Post a Comment