PLEX OPERATIONS (OFFLINE,ONLINE,ATTACH,DETACH,DISASSOCIATE,COPY..)
-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 vol testvol
VxVM vxmake WARNING V-5-1-1355 Volume testvol: length set to zero
-bash-4.1#
-bash-4.1# vxprint -svt
Disk group: test
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
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
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
v testvol - DISABLED EMPTY 0 ROUND - gen
-bash-4.1# vxprint -pvt
Disk group: test
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
pl plex1 - DISABLED - 204800 CONCAT - RW
pl plex2 - DISABLED - 204800 CONCAT - RW
v testvol - DISABLED EMPTY 0 ROUND - gen
-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 testvol - DISABLED EMPTY 0 ROUND - gen
1)TO ATTACH PLEX TO VOLUME
-bash-4.1# vxprint -pvt
Disk group: test
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
pl plex1 - DISABLED - 204800 CONCAT - RW
pl plex2 - DISABLED - 204800 CONCAT - RW
v testvol - DISABLED EMPTY 0 ROUND - gen
-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 testvol - DISABLED EMPTY 0 ROUND - gen
-bash-4.1# vxplex -g test att testvol 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 testvol - DISABLED EMPTY 0 ROUND - gen
pl plex1 testvol DISABLED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
2)TO DETACH PLEX FROM VOLUME
-bash-4.1# vxplex -g test det 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 testvol - DISABLED EMPTY 0 ROUND - gen
pl plex1 testvol DETACHED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
==> DETACHED PLEX CAN NOT ATTACH AGAIN
3)TO DISASSOCIATE DETACHED PLEX
-bash-4.1# vxplex -g test 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 testvol - DISABLED EMPTY 0 ROUND - gen
4)TO DISASSOCIATE PLEX
-bash-4.1# vxplex -g test att testvol 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 testvol - DISABLED EMPTY 0 ROUND - gen
pl plex1 testvol DISABLED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-bash-4.1# vxplex -g test 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 testvol - DISABLED EMPTY 0 ROUND - gen
5) TO CREATE MIRROR VOLUME FOR ONLINE & OFFLINE PLEX
-bash-4.1# vxplex -g test att testvol plex1
-bash-4.1# vxplex -g test att testvol 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 testvol - DISABLED EMPTY 0 ROUND - gen
pl plex1 testvol DISABLED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol DISABLED EMPTY 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start testvol
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
to offline
-bash-4.1# vxmend -g test off 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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
to online:-
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test fix clean plex1
VxVM vxmend ERROR V-5-1-1227 Volume testvol is not DISABLED
-bash-4.1# vxvol -g test stop testvol
-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 testvol - DISABLED CLEAN 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol DISABLED CLEAN 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test fix clean plex1
VxVM vxmend ERROR V-5-1-1182 Volume testvol contains plexes in the CLEAN state
-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 testvol - DISABLED CLEAN 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol DISABLED CLEAN 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start testvol
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
=============or======================
bash-4.1# vxmend -g test off 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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-bash-4.1# vxmend -g test fix clean 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 testvol - DISABLED CLEAN 0 ROUND - gen
pl plex1 testvol DISABLED CLEAN 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-bash-4.1# vxvol -g test start testvol
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-bash-4.1# vxmend -g test -f off 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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
plex state:- io fail
-bash-4.1# vxprint -pvt
Disk group: test
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
pl plex2 - DISABLED IOFAIL 204800 CONCAT - RW
pl vol1-01 vol1 ENABLED ACTIVE 204800 CONCAT - RW
v vol1 - ENABLED ACTIVE 204800 SELECT - fsgen
TO COPY VOLUME INFORMATION TO PLEX
(ONLY FOR UNMOUNTED FILE SYSTEM)
-bash-4.1# vxassist -g test make vol1 100m
-bash-4.1# mkfs -F vxfs /dev/vx/rdsk/test/vol1
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/vol1 /mnt
cd /mnt
-bash-4.1# cd /mnt
-bash-4.1# ls
lost+found
-bash-4.1# touch a b c d e f
-bash-4.1# ls
a b c d e f lost+found
-bash-4.1# vxplex -g test cp vol1 plex2
-bash-4.1# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
184 - ATCOPY/R 55.00% 0/204800/112640 PLXCP vol1 plex2 test
-bash-4.1# vxtask monitor 184
TASKID PTID TYPE/STATE PCT PROGRESS
184 - ATCOPY/R 84.00% 0/204800/172032 PLXCP vol1 plex2 test
184 - ATCOPY/R 85.00% 0/204800/174080 PLXCP vol1 plex2 test
184 - ATCOPY/R 86.00% 0/204800/176128 PLXCP vol1 plex2 test
184 - ATCOPY/R 87.00% 0/204800/178176 PLXCP vol1 plex2 test
184 - ATCOPY/R 88.00% 0/204800/180224 PLXCP vol1 plex2 test
184 - ATCOPY/R 89.00% 0/204800/182272 PLXCP vol1 plex2 test
184 - ATCOPY/R 90.00% 0/204800/184320 PLXCP vol1 plex2 test
184 - ATCOPY/R 91.00% 0/204800/186368 PLXCP vol1 plex2 test
184 - ATCOPY/R 92.00% 0/204800/188416 PLXCP vol1 plex2 test
184 - ATCOPY/R 93.00% 0/204800/190464 PLXCP vol1 plex2 test
184 - ATCOPY/R 94.00% 0/204800/192512 PLXCP vol1 plex2 test
184 - ATCOPY/R 96.00% 0/204800/196608 PLXCP vol1 plex2 test
184 - ATCOPY/R 97.00% 0/204800/198656 PLXCP vol1 plex2 test
184 - ATCOPY/R 98.00% 0/204800/200704 PLXCP vol1 plex2 test
184 - ATCOPY/R 100.00% 0/204800/204800 PLXCP vol1 plex2 test
create volume and test copied data
-bash-4.1# vxmake -g test vol vol2 plex=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 vol1 - ENABLED ACTIVE 204800 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 204800 CONCAT - RW
sd d3-01 vol1-01 d3 0 204800 0 c2d15 ENA
v vol2 - DISABLED EMPTY 204800 ROUND - gen
pl plex2 vol2 DISABLED EMPTY 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start vol2
-bash-4.1# mount -F vxfs /dev/vx/dsk/test/vol2 /mnt
-bash-4.1# cd /mnt
-bash-4.1# ls
a b c d e f lost+found
-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 vol testvol
VxVM vxmake WARNING V-5-1-1355 Volume testvol: length set to zero
-bash-4.1#
-bash-4.1# vxprint -svt
Disk group: test
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
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
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
v testvol - DISABLED EMPTY 0 ROUND - gen
-bash-4.1# vxprint -pvt
Disk group: test
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
pl plex1 - DISABLED - 204800 CONCAT - RW
pl plex2 - DISABLED - 204800 CONCAT - RW
v testvol - DISABLED EMPTY 0 ROUND - gen
-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 testvol - DISABLED EMPTY 0 ROUND - gen
1)TO ATTACH PLEX TO VOLUME
-bash-4.1# vxprint -pvt
Disk group: test
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
pl plex1 - DISABLED - 204800 CONCAT - RW
pl plex2 - DISABLED - 204800 CONCAT - RW
v testvol - DISABLED EMPTY 0 ROUND - gen
-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 testvol - DISABLED EMPTY 0 ROUND - gen
-bash-4.1# vxplex -g test att testvol 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 testvol - DISABLED EMPTY 0 ROUND - gen
pl plex1 testvol DISABLED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
2)TO DETACH PLEX FROM VOLUME
-bash-4.1# vxplex -g test det 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 testvol - DISABLED EMPTY 0 ROUND - gen
pl plex1 testvol DETACHED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
==> DETACHED PLEX CAN NOT ATTACH AGAIN
3)TO DISASSOCIATE DETACHED PLEX
-bash-4.1# vxplex -g test 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 testvol - DISABLED EMPTY 0 ROUND - gen
4)TO DISASSOCIATE PLEX
-bash-4.1# vxplex -g test att testvol 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 testvol - DISABLED EMPTY 0 ROUND - gen
pl plex1 testvol DISABLED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-bash-4.1# vxplex -g test 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 testvol - DISABLED EMPTY 0 ROUND - gen
5) TO CREATE MIRROR VOLUME FOR ONLINE & OFFLINE PLEX
-bash-4.1# vxplex -g test att testvol plex1
-bash-4.1# vxplex -g test att testvol 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 testvol - DISABLED EMPTY 0 ROUND - gen
pl plex1 testvol DISABLED EMPTY 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol DISABLED EMPTY 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start testvol
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
to offline
-bash-4.1# vxmend -g test off 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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
to online:-
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test fix clean plex1
VxVM vxmend ERROR V-5-1-1227 Volume testvol is not DISABLED
-bash-4.1# vxvol -g test stop testvol
-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 testvol - DISABLED CLEAN 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol DISABLED CLEAN 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxmend -g test fix clean plex1
VxVM vxmend ERROR V-5-1-1182 Volume testvol contains plexes in the CLEAN state
-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 testvol - DISABLED CLEAN 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol DISABLED CLEAN 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start testvol
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
=============or======================
bash-4.1# vxmend -g test off 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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
pl plex2 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-bash-4.1# vxmend -g test fix clean 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 testvol - DISABLED CLEAN 0 ROUND - gen
pl plex1 testvol DISABLED CLEAN 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-bash-4.1# vxvol -g test start testvol
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol ENABLED ACTIVE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-bash-4.1# vxmend -g test -f off 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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED OFFLINE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
-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 testvol - ENABLED ACTIVE 0 ROUND - gen
pl plex1 testvol DISABLED STALE 204800 CONCAT - RW
sd sd1 plex1 d0 0 204800 0 c2d18 ENA
plex state:- io fail
-bash-4.1# vxprint -pvt
Disk group: test
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
pl plex2 - DISABLED IOFAIL 204800 CONCAT - RW
pl vol1-01 vol1 ENABLED ACTIVE 204800 CONCAT - RW
v vol1 - ENABLED ACTIVE 204800 SELECT - fsgen
TO COPY VOLUME INFORMATION TO PLEX
(ONLY FOR UNMOUNTED FILE SYSTEM)
-bash-4.1# vxassist -g test make vol1 100m
-bash-4.1# mkfs -F vxfs /dev/vx/rdsk/test/vol1
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/vol1 /mnt
cd /mnt
-bash-4.1# cd /mnt
-bash-4.1# ls
lost+found
-bash-4.1# touch a b c d e f
-bash-4.1# ls
a b c d e f lost+found
-bash-4.1# vxplex -g test cp vol1 plex2
-bash-4.1# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
184 - ATCOPY/R 55.00% 0/204800/112640 PLXCP vol1 plex2 test
-bash-4.1# vxtask monitor 184
TASKID PTID TYPE/STATE PCT PROGRESS
184 - ATCOPY/R 84.00% 0/204800/172032 PLXCP vol1 plex2 test
184 - ATCOPY/R 85.00% 0/204800/174080 PLXCP vol1 plex2 test
184 - ATCOPY/R 86.00% 0/204800/176128 PLXCP vol1 plex2 test
184 - ATCOPY/R 87.00% 0/204800/178176 PLXCP vol1 plex2 test
184 - ATCOPY/R 88.00% 0/204800/180224 PLXCP vol1 plex2 test
184 - ATCOPY/R 89.00% 0/204800/182272 PLXCP vol1 plex2 test
184 - ATCOPY/R 90.00% 0/204800/184320 PLXCP vol1 plex2 test
184 - ATCOPY/R 91.00% 0/204800/186368 PLXCP vol1 plex2 test
184 - ATCOPY/R 92.00% 0/204800/188416 PLXCP vol1 plex2 test
184 - ATCOPY/R 93.00% 0/204800/190464 PLXCP vol1 plex2 test
184 - ATCOPY/R 94.00% 0/204800/192512 PLXCP vol1 plex2 test
184 - ATCOPY/R 96.00% 0/204800/196608 PLXCP vol1 plex2 test
184 - ATCOPY/R 97.00% 0/204800/198656 PLXCP vol1 plex2 test
184 - ATCOPY/R 98.00% 0/204800/200704 PLXCP vol1 plex2 test
184 - ATCOPY/R 100.00% 0/204800/204800 PLXCP vol1 plex2 test
create volume and test copied data
-bash-4.1# vxmake -g test vol vol2 plex=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 vol1 - ENABLED ACTIVE 204800 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 204800 CONCAT - RW
sd d3-01 vol1-01 d3 0 204800 0 c2d15 ENA
v vol2 - DISABLED EMPTY 204800 ROUND - gen
pl plex2 vol2 DISABLED EMPTY 204800 CONCAT - RW
sd sd2 plex2 d1 0 204800 0 c2d17 ENA
-bash-4.1# vxvol -g test start vol2
-bash-4.1# mount -F vxfs /dev/vx/dsk/test/vol2 /mnt
-bash-4.1# cd /mnt
-bash-4.1# ls
a b c d e f lost+found
No comments:
Post a Comment