RAID-5:-
-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 sd sd3 d2,0,100m
-bash-4.1# vxmake -g test sd sd4 d3,0,100m
-bash-4.1# vxmake -g test plex plex1 sd=sd1,sd2,sd3 layout=raid5 stwidth=128k
-bash-4.1# vxmake -g test -Uraid5 vol r5vol plex=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 r5vol - DISABLED EMPTY 409600 RAID - raid5
pl plex1 r5vol DISABLED EMPTY 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
-bash-4.1# vxvol -g test start r5vol
-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 r5vol - ENABLED ACTIVE 409600 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
-bash-4.1# mkfs -F vxfs /dev/vx/rdsk/test/r5vol
version 10 layout
409600 sectors, 204800 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/r5vol /test
-bash-4.1# df -h /test
Filesystem Size Used Available Capacity Mounted on
/dev/vx/dsk/test/r5vol
200M 3.1M 185M 2% /test
GROW TO :-
-bash-4.1# vxassist -g test growto r5vol 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 r5vol - ENABLED ACTIVE 1024000 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 1024000 RAID 3/256 RW
sd sd1 plex1 d0 0 512000 0/0 c2d18 ENA
sd sd2 plex1 d1 0 512000 1/0 c2d17 ENA
sd sd3 plex1 d2 0 512000 2/0 c2d16 ENA
GROW BY:-
-bash-4.1# vxassist -g test growby r5vol 100m
-bash-4.1# vxassist -g test growby r5vol 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 r5vol - ENABLED ACTIVE 1228800 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 1228800 RAID 3/256 RW
sd sd1 plex1 d0 0 614400 0/0 c2d18 ENA
sd sd2 plex1 d1 0 614400 1/0 c2d17 ENA
sd sd3 plex1 d2 0 614400 2/0 c2d16 ENA
SHRINK BY:-
-bash-4.1# vxassist -g test -f shrinkby r5vol 50m
-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 r5vol - ENABLED ACTIVE 1126400 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 1126400 RAID 3/256 RW
sd sd1 plex1 d0 0 563200 0/0 c2d18 ENA
sd sd2 plex1 d1 0 563200 1/0 c2d17 ENA
sd sd3 plex1 d2 0 563200 2/0 c2d16 ENA
SHRINK TO:-
-bash-4.1# vxassist -g test -f shrinkto r5vol 200m
-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 r5vol - ENABLED ACTIVE 409600 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
============================OR=============================================
#vxresize -g test r5vol 500m (GROW TO)
#vxresize -g test r5vol +100m (GROW BY)
#vxresize -g test r5vol -100m (SHRINK BY)
#vxresize -g test r5vol 100m (SHRINK TO)
==========================================================
adding drl log to raid-5 volume
-bash-4.1# vxassist -g test addlog r5vol type=drl
-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 r5vol - ENABLED ACTIVE 409600 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
pl r5vol-01 r5vol ENABLED LOG 23040 CONCAT - RW
sd d3-01 r5vol-01 d3 204800 23040 0 c2d15 ENA
to remove drl log
=============================================================
-bash-4.1# vxassist -g test remove log r5vol
-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 r5vol - ENABLED ACTIVE 409600 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
to add sphare disk:-
-bash-4.1# vxedit -g test set spare=on d3
-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 spare
c2d16s2 auto:cdsdisk d2 test online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 test online
to remove share disk:-
-bash-4.1# vxedit -g test set spare=off d3
-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
to remove by default nohotuse option
-bash-4.1# vxedit -g test set nohotuse=on d3
-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 nohotuse
c2d16s2 auto:cdsdisk d2 test online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 test online
-bash-4.1# vxedit -g test set nohotuse=off d3
-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
to reserve a disk
-bash-4.1# vxedit -g test set reserve=on d3
-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 reserved
c2d16s2 auto:cdsdisk d2 test online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 test online
-bash-4.1# vxedit -g test set reserve=off d3
-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
to remove r5vol:-
-bash-4.1# vxedit -g test -rf rm r5vol
#vxassist -g test make r5vol 100m layout=raid5 stwidth=1024
-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 r5vol - ENABLED ACTIVE 204800 RAID - raid5
pl r5vol-01 r5vol ENABLED ACTIVE 204800 RAID 3/1024 RW
sd d2-01 r5vol-01 d2 0 102400 0/0 c2d16 ENA
sd d1-01 r5vol-01 d1 0 102400 1/0 c2d17 ENA
sd d0-01 r5vol-01 d0 0 102400 2/0 c2d18 ENA
pl r5vol-02 r5vol ENABLED LOG 92160 CONCAT - RW
sd d3-01 r5vol-02 d3 204800 92160 0 c2d15 ENA
-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 sd sd3 d2,0,100m
-bash-4.1# vxmake -g test sd sd4 d3,0,100m
-bash-4.1# vxmake -g test plex plex1 sd=sd1,sd2,sd3 layout=raid5 stwidth=128k
-bash-4.1# vxmake -g test -Uraid5 vol r5vol plex=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 r5vol - DISABLED EMPTY 409600 RAID - raid5
pl plex1 r5vol DISABLED EMPTY 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
-bash-4.1# vxvol -g test start r5vol
-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 r5vol - ENABLED ACTIVE 409600 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
-bash-4.1# mkfs -F vxfs /dev/vx/rdsk/test/r5vol
version 10 layout
409600 sectors, 204800 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/r5vol /test
-bash-4.1# df -h /test
Filesystem Size Used Available Capacity Mounted on
/dev/vx/dsk/test/r5vol
200M 3.1M 185M 2% /test
GROW TO :-
-bash-4.1# vxassist -g test growto r5vol 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 r5vol - ENABLED ACTIVE 1024000 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 1024000 RAID 3/256 RW
sd sd1 plex1 d0 0 512000 0/0 c2d18 ENA
sd sd2 plex1 d1 0 512000 1/0 c2d17 ENA
sd sd3 plex1 d2 0 512000 2/0 c2d16 ENA
GROW BY:-
-bash-4.1# vxassist -g test growby r5vol 100m
-bash-4.1# vxassist -g test growby r5vol 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 r5vol - ENABLED ACTIVE 1228800 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 1228800 RAID 3/256 RW
sd sd1 plex1 d0 0 614400 0/0 c2d18 ENA
sd sd2 plex1 d1 0 614400 1/0 c2d17 ENA
sd sd3 plex1 d2 0 614400 2/0 c2d16 ENA
SHRINK BY:-
-bash-4.1# vxassist -g test -f shrinkby r5vol 50m
-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 r5vol - ENABLED ACTIVE 1126400 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 1126400 RAID 3/256 RW
sd sd1 plex1 d0 0 563200 0/0 c2d18 ENA
sd sd2 plex1 d1 0 563200 1/0 c2d17 ENA
sd sd3 plex1 d2 0 563200 2/0 c2d16 ENA
SHRINK TO:-
-bash-4.1# vxassist -g test -f shrinkto r5vol 200m
-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 r5vol - ENABLED ACTIVE 409600 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
============================OR=============================================
#vxresize -g test r5vol 500m (GROW TO)
#vxresize -g test r5vol +100m (GROW BY)
#vxresize -g test r5vol -100m (SHRINK BY)
#vxresize -g test r5vol 100m (SHRINK TO)
==========================================================
adding drl log to raid-5 volume
-bash-4.1# vxassist -g test addlog r5vol type=drl
-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 r5vol - ENABLED ACTIVE 409600 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
pl r5vol-01 r5vol ENABLED LOG 23040 CONCAT - RW
sd d3-01 r5vol-01 d3 204800 23040 0 c2d15 ENA
to remove drl log
=============================================================
-bash-4.1# vxassist -g test remove log r5vol
-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 r5vol - ENABLED ACTIVE 409600 RAID - raid5
pl plex1 r5vol ENABLED ACTIVE 409600 RAID 3/256 RW
sd sd1 plex1 d0 0 204800 0/0 c2d18 ENA
sd sd2 plex1 d1 0 204800 1/0 c2d17 ENA
sd sd3 plex1 d2 0 204800 2/0 c2d16 ENA
to add sphare disk:-
-bash-4.1# vxedit -g test set spare=on d3
-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 spare
c2d16s2 auto:cdsdisk d2 test online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 test online
to remove share disk:-
-bash-4.1# vxedit -g test set spare=off d3
-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
to remove by default nohotuse option
-bash-4.1# vxedit -g test set nohotuse=on d3
-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 nohotuse
c2d16s2 auto:cdsdisk d2 test online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 test online
-bash-4.1# vxedit -g test set nohotuse=off d3
-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
to reserve a disk
-bash-4.1# vxedit -g test set reserve=on d3
-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 reserved
c2d16s2 auto:cdsdisk d2 test online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 test online
-bash-4.1# vxedit -g test set reserve=off d3
-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
to remove r5vol:-
-bash-4.1# vxedit -g test -rf rm r5vol
#vxassist -g test make r5vol 100m layout=raid5 stwidth=1024
-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 r5vol - ENABLED ACTIVE 204800 RAID - raid5
pl r5vol-01 r5vol ENABLED ACTIVE 204800 RAID 3/1024 RW
sd d2-01 r5vol-01 d2 0 102400 0/0 c2d16 ENA
sd d1-01 r5vol-01 d1 0 102400 1/0 c2d17 ENA
sd d0-01 r5vol-01 d0 0 102400 2/0 c2d18 ENA
pl r5vol-02 r5vol ENABLED LOG 92160 CONCAT - RW
sd d3-01 r5vol-02 d3 204800 92160 0 c2d15 ENA
No comments:
Post a Comment