1)to check IO operationsin veritas
-bash-4.1# vxstat -g test
OPERATIONS BLOCKS AVG TIME(ms)
TYP NAME READ WRITE READ WRITE READ WRITE
vol vol1 1 42 2 35022 48.85 12.37
2)to get volumes in disk group
-bash-4.1# vxinfo -g test
vol1 fsgen Started
vol2 fsgen Started
3)SNAP SHOT OPRATIONS
-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 vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
1)to start snapshot
-bash-4.1# vxassist -g test snapstart vol1
-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 vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
pl vol1-02 vol1 ENABLED SNAPDONE 2097152 CONCAT - WO
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
2)to take snap shot
-bash-4.1# vxassist -g test snapshot vol1
-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 SNAP-vol1 - ENABLED ACTIVE 2097152 ROUND - fsgen
pl vol1-02 SNAP-vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
v vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
-bash-4.1# mount -F vxfs /dev/vx/dsk/test/SNAP-vol1 /mnt
-bash-4.1# cd /mnt
-bash-4.1# 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-4.1# touch sai
-bash-4.1# ls
a d g j lost+found o R t w z
b e H k m p s u x
c f I l n q sai v y
-bash-4.1#
3)to snapback volume
-bash-4.1# vxassist -g test snapback SNAP-vol1
-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 vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
pl vol1-02 vol1 ENABLED SNAPDONE 2097152 CONCAT - WO
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
4)to clear snap
-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 vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
pl vol1-02 vol1 ENABLED SNAPDONE 2097152 CONCAT - WO
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
-bash-4.1# vxassist -g test snapshot vol1
-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 SNAP-vol1 - ENABLED ACTIVE 2097152 ROUND - fsgen
pl vol1-02 SNAP-vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
v vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
-bash-4.1# vxassist -g test snapclear SNAP-vol1
-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 SNAP-vol1 - ENABLED ACTIVE 2097152 ROUND - fsgen
pl vol1-02 SNAP-vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
v vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
NOTE:after snap clear
-bash-4.1# vxassist -g test snapclear SNAP-vol1
VxVM vxassist ERROR V-5-1-4521 Volume SNAP-vol1 is not a snapshot volume.
to check max size of disk group
-bash-4.1# vxdg -g test free
DISK DEVICE TAG OFFSET LENGTH FLAGS
d0 c2d18s2 c2d18 0 142532352 -
d1 c2d17s2 c2d17 0 142532352 -
d2 c2d16s2 c2d16 0 142532352 -
d3 c2d15s2 c2d15 2097152 140435200 -
-bash-4.1# vxassist -g test maxsize
Maximum volume size: 568031232 (277359Mb)
-bash-4.1# vxassist -g test maxgrow vol1
Volume vol1 can be extended by 568029184 to: 570126336 (278382Mb)
-bash-4.1# vxassist -g test -p maxgrow vol1
570126336
-bash-4.1# vxstat -g test
OPERATIONS BLOCKS AVG TIME(ms)
TYP NAME READ WRITE READ WRITE READ WRITE
vol vol1 1 42 2 35022 48.85 12.37
2)to get volumes in disk group
-bash-4.1# vxinfo -g test
vol1 fsgen Started
vol2 fsgen Started
3)SNAP SHOT OPRATIONS
-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 vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
1)to start snapshot
-bash-4.1# vxassist -g test snapstart vol1
-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 vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
pl vol1-02 vol1 ENABLED SNAPDONE 2097152 CONCAT - WO
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
2)to take snap shot
-bash-4.1# vxassist -g test snapshot vol1
-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 SNAP-vol1 - ENABLED ACTIVE 2097152 ROUND - fsgen
pl vol1-02 SNAP-vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
v vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
-bash-4.1# mount -F vxfs /dev/vx/dsk/test/SNAP-vol1 /mnt
-bash-4.1# cd /mnt
-bash-4.1# 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-4.1# touch sai
-bash-4.1# ls
a d g j lost+found o R t w z
b e H k m p s u x
c f I l n q sai v y
-bash-4.1#
3)to snapback volume
-bash-4.1# vxassist -g test snapback SNAP-vol1
-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 vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
pl vol1-02 vol1 ENABLED SNAPDONE 2097152 CONCAT - WO
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
4)to clear snap
-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 vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
pl vol1-02 vol1 ENABLED SNAPDONE 2097152 CONCAT - WO
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
-bash-4.1# vxassist -g test snapshot vol1
-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 SNAP-vol1 - ENABLED ACTIVE 2097152 ROUND - fsgen
pl vol1-02 SNAP-vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
v vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
-bash-4.1# vxassist -g test snapclear SNAP-vol1
-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 SNAP-vol1 - ENABLED ACTIVE 2097152 ROUND - fsgen
pl vol1-02 SNAP-vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d1-01 vol1-02 d1 3840 2097152 0 c2d17 ENA
v vol1 - ENABLED ACTIVE 2097152 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 2097152 CONCAT - RW
sd d3-01 vol1-01 d3 0 2097152 0 c2d15 ENA
NOTE:after snap clear
-bash-4.1# vxassist -g test snapclear SNAP-vol1
VxVM vxassist ERROR V-5-1-4521 Volume SNAP-vol1 is not a snapshot volume.
to check max size of disk group
-bash-4.1# vxdg -g test free
DISK DEVICE TAG OFFSET LENGTH FLAGS
d0 c2d18s2 c2d18 0 142532352 -
d1 c2d17s2 c2d17 0 142532352 -
d2 c2d16s2 c2d16 0 142532352 -
d3 c2d15s2 c2d15 2097152 140435200 -
-bash-4.1# vxassist -g test maxsize
Maximum volume size: 568031232 (277359Mb)
-bash-4.1# vxassist -g test maxgrow vol1
Volume vol1 can be extended by 568029184 to: 570126336 (278382Mb)
-bash-4.1# vxassist -g test -p maxgrow vol1
570126336
No comments:
Post a Comment