SUB-DISK OPERATIONS:-
1)TO CREATE SUBDISK
-bash-4.1# vxmake -g test sd sd1 d0,0,100m
-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 - d0 0 204800 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
2) TO JOIN SUBDISK
==>> SUB DISK MUST BE OCCUPIE CONTINUE BLOCKS
==>> TO JOIN SUB DISK BLOCKS SHOUD BE CONTINOUS (EX: SDX=1-100BLK , SDY=101-200BLK THEN ONLY POSSIBLE) IF NOT JOING IS NOT POSSIBLE.
==>> BETWEEN TWO DISK THRERE IS NO JOINING OF SUBDISKS.
-bash-4.1# vxsd -g test join sd1 sd4 sdnew
VxVM vxsd ERROR V-5-1-609 Disks for subdisks do not match
-bash-4.1# vxmake -g test sd sd2 d0,204800,100m
-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 - d0 0 204800 - c2d18 ENA
sd sd2 - d0 204800 204800 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
-bash-4.1# vxsd -g test join sd1 sd2 newsd
-bash-4.1# vxprint -hvt
-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 newsd - d0 0 409600 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
3)TO SPLIT SUBDISK
-bash-4.1# vxsd -g test -s 50m split newsd sd1
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 - d0 102400 307200 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
4)TO ASSOCIATE SUBDISK TO PLEX
-bash-4.1# vxsd -g test assoc plex1 sd1
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 plex1 d0 102400 307200 0 c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
-bash-4.1# vxsd -g test assoc plex1 sd4
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 plex1 d0 102400 307200 0 c2d18 ENA
sd sd4 plex1 d3 0 204800 307200 c2d15 ENA
5)TO DIS-ASSOCIATE SUBDISK FROM PLEX
-bash-4.1# vxsd -g test dis sd1
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 - d0 102400 307200 - c2d18 ENA
sd sd4 plex1 d3 0 204800 307200 c2d15 ENA
-bash-4.1# vxsd -g test dis sd4
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 - d0 102400 307200 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
1)TO CREATE SUBDISK
-bash-4.1# vxmake -g test sd sd1 d0,0,100m
-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 - d0 0 204800 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
2) TO JOIN SUBDISK
==>> SUB DISK MUST BE OCCUPIE CONTINUE BLOCKS
==>> TO JOIN SUB DISK BLOCKS SHOUD BE CONTINOUS (EX: SDX=1-100BLK , SDY=101-200BLK THEN ONLY POSSIBLE) IF NOT JOING IS NOT POSSIBLE.
==>> BETWEEN TWO DISK THRERE IS NO JOINING OF SUBDISKS.
-bash-4.1# vxsd -g test join sd1 sd4 sdnew
VxVM vxsd ERROR V-5-1-609 Disks for subdisks do not match
-bash-4.1# vxmake -g test sd sd2 d0,204800,100m
-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 - d0 0 204800 - c2d18 ENA
sd sd2 - d0 204800 204800 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
-bash-4.1# vxsd -g test join sd1 sd2 newsd
-bash-4.1# vxprint -hvt
-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 newsd - d0 0 409600 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
3)TO SPLIT SUBDISK
-bash-4.1# vxsd -g test -s 50m split newsd sd1
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 - d0 102400 307200 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
4)TO ASSOCIATE SUBDISK TO PLEX
-bash-4.1# vxsd -g test assoc plex1 sd1
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 plex1 d0 102400 307200 0 c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
-bash-4.1# vxsd -g test assoc plex1 sd4
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 plex1 d0 102400 307200 0 c2d18 ENA
sd sd4 plex1 d3 0 204800 307200 c2d15 ENA
5)TO DIS-ASSOCIATE SUBDISK FROM PLEX
-bash-4.1# vxsd -g test dis sd1
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 - d0 102400 307200 - c2d18 ENA
sd sd4 plex1 d3 0 204800 307200 c2d15 ENA
-bash-4.1# vxsd -g test dis sd4
-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 newsd - d0 0 102400 - c2d18 ENA
sd sd1 - d0 102400 307200 - c2d18 ENA
sd sd4 - d3 0 204800 - c2d15 ENA
No comments:
Post a Comment