====RAID10:-(stripe of mirrors)========
bash-3.2# vxassist -g testdg make raid10vol 512m layout=stripe-mirror
vxprint -ht
Disk group: testdg
DG NAME NCONFIG NLOG MINORS GROUP-ID
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
dg testdg default default 29000 1582799814.49.solaris10node1
dm d0 c1t0d0s2 auto 65536 2023168 -
dm d1 c1t1d0s2 auto 65536 2023168 -
dm d2 c1t2d0s2 auto 65536 2023168 -
dm d3 c1t3d0s2 auto 65536 2023168 -
v raid10vol - ENABLED ACTIVE 1048576 SELECT raid10vol-03 fsgen
pl raid10vol-03 raid10vol ENABLED ACTIVE 1048576 STRIPE 2/128 RW
sv raid10vol-S01 raid10vol-03 raid10vol-L01 1 524288 0/0 2/2 ENA
sv raid10vol-S02 raid10vol-03 raid10vol-L02 1 524288 1/0 2/2 ENA
v raid10vol-L01 - ENABLED ACTIVE 524288 SELECT - fsgen
pl raid10vol-P01 raid10vol-L01 ENABLED ACTIVE 524288 CONCAT - RW
sd d0-02 raid10vol-P01 d0 0 524288 0 c1t0d0 ENA
pl raid10vol-P02 raid10vol-L01 ENABLED ACTIVE 524288 CONCAT - RW
sd d2-02 raid10vol-P02 d2 0 524288 0 c1t2d0 ENA
v raid10vol-L02 - ENABLED ACTIVE 524288 SELECT - fsgen
pl raid10vol-P03 raid10vol-L02 ENABLED ACTIVE 524288 CONCAT - RW
sd d1-02 raid10vol-P03 d1 0 524288 0 c1t1d0 ENA
pl raid10vol-P04 raid10vol-L02 ENABLED ACTIVE 524288 CONCAT - RW
sd d3-02 raid10vol-P04 d3 0 524288 0 c1t3d0 ENA
====RAID01 Mirror of stripe =========
bash-3.2# vxassist -g testdg make raid01vol 512m layout=mirror-stripe
bash-3.2# vxprint -ht
Disk group: testdg
DG NAME NCONFIG NLOG MINORS GROUP-ID
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
dg testdg default default 29000 1582799814.49.solaris10node1
dm d0 c1t0d0s2 auto 65536 2023168 -
dm d1 c1t1d0s2 auto 65536 2023168 -
dm d2 c1t2d0s2 auto 65536 2023168 -
dm d3 c1t3d0s2 auto 65536 2023168 -
v raid01vol - ENABLED ACTIVE 1048576 SELECT - fsgen
pl raid01vol-01 raid01vol ENABLED ACTIVE 1048576 STRIPE 2/128 RW
sd d0-01 raid01vol-01 d0 0 524288 0/0 c1t0d0 ENA
sd d1-01 raid01vol-01 d1 0 524288 1/0 c1t1d0 ENA
pl raid01vol-02 raid01vol ENABLED ACTIVE 1048576 STRIPE 2/128 RW
sd d2-01 raid01vol-02 d2 0 524288 0/0 c1t2d0 ENA
sd d3-01 raid01vol-02 d3 0 524288 1/0 c1t3d0 ENA
Main difference between RAID 10 vs RAID 01
Performance on both RAID 10 and RAID 01 will be the same.
The storage capacity on these will be the same.
raid10: has high fault tolerance , at least one disk fail on multiple disk groups ----- volume accessible
raid01: has less fault tolerance ,at least one disk fail on multiple dgs --volume not accessible
So, given a choice between RAID 10 and RAID 01, always choose RAID 10.
=======vxvm snapshots=======
bash-3.2# vxassist make convol 100m
bash-3.2# vxprint -hvt
Disk group: testdg
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 convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
bash-3.2# mkfs -F vxfs /dev/vx/rdsk/testdg/convol
version 7 layout
204800 sectors, 102400 blocks of size 1024, log size 1024 blocks
largefiles supported
/dev/vx/dsk/testdg/convol
100M 2.1M 92M 3% /mnt
bash-3.2# cd /mnt
bash-3.2# ls
lost+found
bash-3.2# touch a b c d e f g h i j k l m n o p q r s t u v w x y z
bash-3.2# ls
a d g j lost+found o r u x
b e h k m p s v y
c f i l n q t w z
bash-3.2#
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
bash-3.2# vxassist -g testdg snapstart convol
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-02 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
bash-3.2#
bash-3.2# vxassist -g testdg snapshot convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 SNAP-convol - ENABLED ACTIVE 204800 ROUND - fsgen
pl convol-02 SNAP-convol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
bash-3.2#
bash-3.2# mount -F vxfs /dev/vx/dsk/testdg/SNAP-convol /zone1
cd /mnt
bash-3.2# ls
a d g j lost+found o r u x
b e h k m p s v y
c f i l n q t w z
bash-3.2# cd /zone1
bash-3.2# ls
a d g j lost+found o r u x
b e h k m p s v y
c f i l n q t w z
bash-3.2#
to sync data form snapshot volume to original volume
#vxassist -g ora1 -o resyncfromreplica snapback SNAPdata3
bash-3.2# vxassist snapback SNAP-convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-02 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
=======SNAP clear======
bash-3.2# vxassist snapstart convol
bash-3.2# vxassist snapshot convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 SNAP-convol - ENABLED ACTIVE 204800 ROUND - fsgen
pl convol-02 SNAP-convol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-03 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d2-01 convol-03 d2 0 204800 0 c1t2d0 ENA
bash-3.2# vxassist snapclear SNAP-convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 SNAP-convol - ENABLED ACTIVE 204800 ROUND - fsgen
pl convol-02 SNAP-convol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-03 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d2-01 convol-03 d2 0 204800 0 c1t2d0 ENA
bash-3.2# vxprint -hvt
Disk group: testdg
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 convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-03 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d2-01 convol-03 d2 0 204800 0 c1t2d0 ENA
===============SNAP abort==========
bash-3.2# vxassist make convol 100m
bash-3.2# vxassist snapstart convol
bash-3.2# vxassist snapabort convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
========SUBDISK Operations=======
bash-3.2# vxmake sd sd1 d0,0,512m
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
sd sd1 - d0 0 1048576 - c1t0d0 ENA
bash-3.2# vxsd -s 100m split sd1 sd2
sd sd1 - d0 0 204800 - c1t0d0 ENA
sd sd2 - d0 204800 843776 - c1t0d0 ENA
bash-3.2# vxsd join sd1 sd2 sd1
sd sd1 - d0 0 1048576 - c1t0d0 ENA
bash-3.2# vxmake plex plex1
bash-3.2# vxsd assoc plex1 sd1
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
pl plex1 - DISABLED - 1048576 CONCAT - RW
bash-3.2# vxsd dis sd1
sd sd1 - d0 0 1048576 - c1t0d0 ENA
pl plex1 - DISABLED - 0 CONCAT - RW
========Plex Operations==========
bash-3.2# vxmake vol vol1
VxVM vxmake WARNING V-5-1-1355 Volume vol1: length set to zero
bash-3.2# vxplex att vol1 plex1
v vol1 - DISABLED EMPTY 0 ROUND - gen
pl plex1 vol1 DISABLED EMPTY 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxplex det plex1
v vol1 - DISABLED EMPTY 0 ROUND - gen
pl plex1 vol1 DETACHED EMPTY 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxplex dis plex1
v vol1 - DISABLED EMPTY 0 ROUND - gen
bash-3.2# vxmend -o force off plex1
v vol1 - DISABLED CLEAN 0 ROUND - gen
pl plex1 vol1 DISABLED OFFLINE 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxmend on plex1
v vol1 - DISABLED CLEAN 0 ROUND - gen
pl plex1 vol1 DISABLED STALE 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxmend fix clean plex1
v vol1 - DISABLED CLEAN 0 ROUND - gen
pl plex1 vol1 DISABLED CLEAN 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxvol start vol1
v vol1 - ENABLED ACTIVE 0 ROUND - gen
pl plex1 vol1 ENABLED ACTIVE 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
========Volume Operations========
bash-3.2# vxvol start vol1
v vol1 - ENABLED ACTIVE 0 ROUND - gen
pl plex1 vol1 ENABLED ACTIVE 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxvol stop vol1
v vol1 - DISABLED CLEAN 0 ROUND - gen
pl plex1 vol1 DISABLED CLEAN 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
===============================
bash-3.2# vxassist -g testdg make raid10vol 512m layout=stripe-mirror
vxprint -ht
Disk group: testdg
DG NAME NCONFIG NLOG MINORS GROUP-ID
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
dg testdg default default 29000 1582799814.49.solaris10node1
dm d0 c1t0d0s2 auto 65536 2023168 -
dm d1 c1t1d0s2 auto 65536 2023168 -
dm d2 c1t2d0s2 auto 65536 2023168 -
dm d3 c1t3d0s2 auto 65536 2023168 -
v raid10vol - ENABLED ACTIVE 1048576 SELECT raid10vol-03 fsgen
pl raid10vol-03 raid10vol ENABLED ACTIVE 1048576 STRIPE 2/128 RW
sv raid10vol-S01 raid10vol-03 raid10vol-L01 1 524288 0/0 2/2 ENA
sv raid10vol-S02 raid10vol-03 raid10vol-L02 1 524288 1/0 2/2 ENA
v raid10vol-L01 - ENABLED ACTIVE 524288 SELECT - fsgen
pl raid10vol-P01 raid10vol-L01 ENABLED ACTIVE 524288 CONCAT - RW
sd d0-02 raid10vol-P01 d0 0 524288 0 c1t0d0 ENA
pl raid10vol-P02 raid10vol-L01 ENABLED ACTIVE 524288 CONCAT - RW
sd d2-02 raid10vol-P02 d2 0 524288 0 c1t2d0 ENA
v raid10vol-L02 - ENABLED ACTIVE 524288 SELECT - fsgen
pl raid10vol-P03 raid10vol-L02 ENABLED ACTIVE 524288 CONCAT - RW
sd d1-02 raid10vol-P03 d1 0 524288 0 c1t1d0 ENA
pl raid10vol-P04 raid10vol-L02 ENABLED ACTIVE 524288 CONCAT - RW
sd d3-02 raid10vol-P04 d3 0 524288 0 c1t3d0 ENA
====RAID01 Mirror of stripe =========
bash-3.2# vxassist -g testdg make raid01vol 512m layout=mirror-stripe
bash-3.2# vxprint -ht
Disk group: testdg
DG NAME NCONFIG NLOG MINORS GROUP-ID
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
dg testdg default default 29000 1582799814.49.solaris10node1
dm d0 c1t0d0s2 auto 65536 2023168 -
dm d1 c1t1d0s2 auto 65536 2023168 -
dm d2 c1t2d0s2 auto 65536 2023168 -
dm d3 c1t3d0s2 auto 65536 2023168 -
v raid01vol - ENABLED ACTIVE 1048576 SELECT - fsgen
pl raid01vol-01 raid01vol ENABLED ACTIVE 1048576 STRIPE 2/128 RW
sd d0-01 raid01vol-01 d0 0 524288 0/0 c1t0d0 ENA
sd d1-01 raid01vol-01 d1 0 524288 1/0 c1t1d0 ENA
pl raid01vol-02 raid01vol ENABLED ACTIVE 1048576 STRIPE 2/128 RW
sd d2-01 raid01vol-02 d2 0 524288 0/0 c1t2d0 ENA
sd d3-01 raid01vol-02 d3 0 524288 1/0 c1t3d0 ENA
Main difference between RAID 10 vs RAID 01
Performance on both RAID 10 and RAID 01 will be the same.
The storage capacity on these will be the same.
raid10: has high fault tolerance , at least one disk fail on multiple disk groups ----- volume accessible
raid01: has less fault tolerance ,at least one disk fail on multiple dgs --volume not accessible
So, given a choice between RAID 10 and RAID 01, always choose RAID 10.
=======vxvm snapshots=======
bash-3.2# vxassist make convol 100m
bash-3.2# vxprint -hvt
Disk group: testdg
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 convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
bash-3.2# mkfs -F vxfs /dev/vx/rdsk/testdg/convol
version 7 layout
204800 sectors, 102400 blocks of size 1024, log size 1024 blocks
largefiles supported
/dev/vx/dsk/testdg/convol
100M 2.1M 92M 3% /mnt
bash-3.2# cd /mnt
bash-3.2# ls
lost+found
bash-3.2# touch a b c d e f g h i j k l m n o p q r s t u v w x y z
bash-3.2# ls
a d g j lost+found o r u x
b e h k m p s v y
c f i l n q t w z
bash-3.2#
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
bash-3.2# vxassist -g testdg snapstart convol
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-02 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
bash-3.2#
bash-3.2# vxassist -g testdg snapshot convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 SNAP-convol - ENABLED ACTIVE 204800 ROUND - fsgen
pl convol-02 SNAP-convol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
bash-3.2#
bash-3.2# mount -F vxfs /dev/vx/dsk/testdg/SNAP-convol /zone1
cd /mnt
bash-3.2# ls
a d g j lost+found o r u x
b e h k m p s v y
c f i l n q t w z
bash-3.2# cd /zone1
bash-3.2# ls
a d g j lost+found o r u x
b e h k m p s v y
c f i l n q t w z
bash-3.2#
to sync data form snapshot volume to original volume
#vxassist -g ora1 -o resyncfromreplica snapback SNAPdata3
bash-3.2# vxassist snapback SNAP-convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-02 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
=======SNAP clear======
bash-3.2# vxassist snapstart convol
bash-3.2# vxassist snapshot convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 SNAP-convol - ENABLED ACTIVE 204800 ROUND - fsgen
pl convol-02 SNAP-convol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-03 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d2-01 convol-03 d2 0 204800 0 c1t2d0 ENA
bash-3.2# vxassist snapclear SNAP-convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 SNAP-convol - ENABLED ACTIVE 204800 ROUND - fsgen
pl convol-02 SNAP-convol ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 convol-02 d1 0 204800 0 c1t1d0 ENA
v convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-03 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d2-01 convol-03 d2 0 204800 0 c1t2d0 ENA
bash-3.2# vxprint -hvt
Disk group: testdg
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 convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
pl convol-03 convol ENABLED SNAPDONE 204800 CONCAT - WO
sd d2-01 convol-03 d2 0 204800 0 c1t2d0 ENA
===============SNAP abort==========
bash-3.2# vxassist make convol 100m
bash-3.2# vxassist snapstart convol
bash-3.2# vxassist snapabort convol
bash-3.2# vxprint -hvt
Disk group: testdg
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 convol - ENABLED ACTIVE 204800 SELECT - fsgen
pl convol-01 convol ENABLED ACTIVE 204800 CONCAT - RW
sd d0-01 convol-01 d0 0 204800 0 c1t0d0 ENA
========SUBDISK Operations=======
bash-3.2# vxmake sd sd1 d0,0,512m
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
sd sd1 - d0 0 1048576 - c1t0d0 ENA
bash-3.2# vxsd -s 100m split sd1 sd2
sd sd1 - d0 0 204800 - c1t0d0 ENA
sd sd2 - d0 204800 843776 - c1t0d0 ENA
bash-3.2# vxsd join sd1 sd2 sd1
sd sd1 - d0 0 1048576 - c1t0d0 ENA
bash-3.2# vxmake plex plex1
bash-3.2# vxsd assoc plex1 sd1
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
pl plex1 - DISABLED - 1048576 CONCAT - RW
bash-3.2# vxsd dis sd1
sd sd1 - d0 0 1048576 - c1t0d0 ENA
pl plex1 - DISABLED - 0 CONCAT - RW
========Plex Operations==========
bash-3.2# vxmake vol vol1
VxVM vxmake WARNING V-5-1-1355 Volume vol1: length set to zero
bash-3.2# vxplex att vol1 plex1
v vol1 - DISABLED EMPTY 0 ROUND - gen
pl plex1 vol1 DISABLED EMPTY 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxplex det plex1
v vol1 - DISABLED EMPTY 0 ROUND - gen
pl plex1 vol1 DETACHED EMPTY 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxplex dis plex1
v vol1 - DISABLED EMPTY 0 ROUND - gen
bash-3.2# vxmend -o force off plex1
v vol1 - DISABLED CLEAN 0 ROUND - gen
pl plex1 vol1 DISABLED OFFLINE 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxmend on plex1
v vol1 - DISABLED CLEAN 0 ROUND - gen
pl plex1 vol1 DISABLED STALE 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxmend fix clean plex1
v vol1 - DISABLED CLEAN 0 ROUND - gen
pl plex1 vol1 DISABLED CLEAN 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxvol start vol1
v vol1 - ENABLED ACTIVE 0 ROUND - gen
pl plex1 vol1 ENABLED ACTIVE 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
========Volume Operations========
bash-3.2# vxvol start vol1
v vol1 - ENABLED ACTIVE 0 ROUND - gen
pl plex1 vol1 ENABLED ACTIVE 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
bash-3.2# vxvol stop vol1
v vol1 - DISABLED CLEAN 0 ROUND - gen
pl plex1 vol1 DISABLED CLEAN 1048576 CONCAT - RW
sd sd1 plex1 d0 0 1048576 0 c1t0d0 ENA
===============================
No comments:
Post a Comment