To create disk group
-bash-4.1# vxdisk init c2d18
-bash-4.1# vxdisk init c2d17
-bash-4.1# vxdisk init c2d16
-bash-4.1# vxdisk init c2d15
-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 - - online
c2d16s2 auto:cdsdisk - - online
c2d17s2 auto:cdsdisk - - online
c2d18s2 auto:cdsdisk - - online
-bash-4.1# vxdg init test d0=c2d18 d1=c2d17 d2=c2d16 d3=c2d15
-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
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388776300.78.solaris2
to deport:-
-bash-4.1# vxdg deport test
-bash-4.1# vxdisk -o alldgs 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 - (test) online
c2d16s2 auto:cdsdisk - (test) online
c2d17s2 auto:cdsdisk - (test) online
c2d18s2 auto:cdsdisk - (test) online
to import:-
-bash-4.1# vxdg import test
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388776300.78.solaris2
-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 destroy dg
-bash-4.1# vxdg destroy test
-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 - - online
c2d16s2 auto:cdsdisk - - online
c2d17s2 auto:cdsdisk - - online
c2d18s2 auto:cdsdisk - - online
to recover destroied dg
-bash-4.1# vxdisk -s list c2d18
Disk: c2d18s2
type: auto
flags: online ready private autoconfig
guid: {d4fed8ae-74a5-11e3-a1f6-00144ff8e18d}
udid: DGC%5FRAID%205%5FCK200073400372%5F60060160685D1E0055E704FD47BFDC11
site: -
diskid: 1388774134.68.solaris2
dgname:
dgid: 1388776300.78.solaris2
hostid:
info: format=cdsdisk,privoffset=256,pubslice=2,privslice=2
-bash-4.1# vxdg import 1388776300.78.solaris2
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388776300.78.solaris2
-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 rename veritas dg
-bash-4.1# vxdg -n newone deport test
-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 - - online
c2d16s2 auto:cdsdisk - - online
c2d17s2 auto:cdsdisk - - online
c2d18s2 auto:cdsdisk - - online
-bash-4.1# vxdg import newone
-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 newone online
c2d16s2 auto:cdsdisk d2 newone online
c2d17s2 auto:cdsdisk d1 newone online
c2d18s2 auto:cdsdisk d0 newone online
[[[[[[[or]]]]]]]]]]
-bash-4.1# vxdg deport newone
-bash-4.1# vxdg -n test import newone
-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 split dg:-
-bash-4.1# vxdg split test sp1 d0
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388776300.78.solaris2
sp1 enabled,cds 1388777403.87.solaris2
-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 sp1 online
to join dg:-
-bash-4.1# vxdg join test sp1
-bash-4.1# vxdg list
NAME STATE ID
sp1 enabled,cds 1388777403.87.solaris2
-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 sp1 online
c2d16s2 auto:cdsdisk d2 sp1 online
c2d17s2 auto:cdsdisk d1 sp1 online
c2d18s2 auto:cdsdisk d0 sp1 online
-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 sp1 online
c2d16s2 auto:cdsdisk d2 sp1 online
c2d17s2 auto:cdsdisk d1 sp1 online
c2d18s2 auto:cdsdisk d0 sp1 online
-bash-4.1# vxdg split sp1 test d1
-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 sp1 online
c2d16s2 auto:cdsdisk d2 sp1 online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 sp1 online
-bash-4.1# vxdg join sp1 test
-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 split based on volume as object
-bash-4.1# vxassist -g test make vol1 10g
-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
-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 20971520 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 20971520 CONCAT - RW
sd d3-01 vol1-01 d3 0 20971520 0 c2d15 ENA
-bash-4.1# vxdg split test sp1 vol1
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388777600.89.solaris2
sp1 enabled,cds 1388777761.91.solaris2
-bash-4.1# vxprint -hvt
Disk group: sp1
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 20971520 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 20971520 CONCAT - RW
sd d3-01 vol1-01 d3 0 20971520 0 c2d15 ENA
-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 sp1 online
c2d16s2 auto:cdsdisk d2 test online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 test online
-bash-4.1# vxdg join sp1 test
-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
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388777600.89.solaris2
-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 20971520 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 20971520 CONCAT - RW
sd d3-01 vol1-01 d3 0 20971520 0 c2d15 ENA
-bash-4.1# ls -l /dev/vx/rdsk/test/vol1
crw------- 1 root root 291, 26000 Jan 3 19:39 /dev/vx/rdsk/test/vol1
-bash-4.1# vxdg -C import test
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388777600.89.solaris2
-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 import clone devs
-bash-4.1# vxdg -o useclonedev=on import test
-bash-4.1# vxdisk init c2d18
-bash-4.1# vxdisk init c2d17
-bash-4.1# vxdisk init c2d16
-bash-4.1# vxdisk init c2d15
-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 - - online
c2d16s2 auto:cdsdisk - - online
c2d17s2 auto:cdsdisk - - online
c2d18s2 auto:cdsdisk - - online
-bash-4.1# vxdg init test d0=c2d18 d1=c2d17 d2=c2d16 d3=c2d15
-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
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388776300.78.solaris2
to deport:-
-bash-4.1# vxdg deport test
-bash-4.1# vxdisk -o alldgs 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 - (test) online
c2d16s2 auto:cdsdisk - (test) online
c2d17s2 auto:cdsdisk - (test) online
c2d18s2 auto:cdsdisk - (test) online
to import:-
-bash-4.1# vxdg import test
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388776300.78.solaris2
-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 destroy dg
-bash-4.1# vxdg destroy test
-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 - - online
c2d16s2 auto:cdsdisk - - online
c2d17s2 auto:cdsdisk - - online
c2d18s2 auto:cdsdisk - - online
to recover destroied dg
-bash-4.1# vxdisk -s list c2d18
Disk: c2d18s2
type: auto
flags: online ready private autoconfig
guid: {d4fed8ae-74a5-11e3-a1f6-00144ff8e18d}
udid: DGC%5FRAID%205%5FCK200073400372%5F60060160685D1E0055E704FD47BFDC11
site: -
diskid: 1388774134.68.solaris2
dgname:
dgid: 1388776300.78.solaris2
hostid:
info: format=cdsdisk,privoffset=256,pubslice=2,privslice=2
-bash-4.1# vxdg import 1388776300.78.solaris2
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388776300.78.solaris2
-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 rename veritas dg
-bash-4.1# vxdg -n newone deport test
-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 - - online
c2d16s2 auto:cdsdisk - - online
c2d17s2 auto:cdsdisk - - online
c2d18s2 auto:cdsdisk - - online
-bash-4.1# vxdg import newone
-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 newone online
c2d16s2 auto:cdsdisk d2 newone online
c2d17s2 auto:cdsdisk d1 newone online
c2d18s2 auto:cdsdisk d0 newone online
[[[[[[[or]]]]]]]]]]
-bash-4.1# vxdg deport newone
-bash-4.1# vxdg -n test import newone
-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 split dg:-
-bash-4.1# vxdg split test sp1 d0
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388776300.78.solaris2
sp1 enabled,cds 1388777403.87.solaris2
-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 sp1 online
to join dg:-
-bash-4.1# vxdg join test sp1
-bash-4.1# vxdg list
NAME STATE ID
sp1 enabled,cds 1388777403.87.solaris2
-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 sp1 online
c2d16s2 auto:cdsdisk d2 sp1 online
c2d17s2 auto:cdsdisk d1 sp1 online
c2d18s2 auto:cdsdisk d0 sp1 online
-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 sp1 online
c2d16s2 auto:cdsdisk d2 sp1 online
c2d17s2 auto:cdsdisk d1 sp1 online
c2d18s2 auto:cdsdisk d0 sp1 online
-bash-4.1# vxdg split sp1 test d1
-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 sp1 online
c2d16s2 auto:cdsdisk d2 sp1 online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 sp1 online
-bash-4.1# vxdg join sp1 test
-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 split based on volume as object
-bash-4.1# vxassist -g test make vol1 10g
-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
-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 20971520 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 20971520 CONCAT - RW
sd d3-01 vol1-01 d3 0 20971520 0 c2d15 ENA
-bash-4.1# vxdg split test sp1 vol1
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388777600.89.solaris2
sp1 enabled,cds 1388777761.91.solaris2
-bash-4.1# vxprint -hvt
Disk group: sp1
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 20971520 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 20971520 CONCAT - RW
sd d3-01 vol1-01 d3 0 20971520 0 c2d15 ENA
-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 sp1 online
c2d16s2 auto:cdsdisk d2 test online
c2d17s2 auto:cdsdisk d1 test online
c2d18s2 auto:cdsdisk d0 test online
-bash-4.1# vxdg join sp1 test
-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
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388777600.89.solaris2
-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 20971520 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 20971520 CONCAT - RW
sd d3-01 vol1-01 d3 0 20971520 0 c2d15 ENA
-bash-4.1# ls -l /dev/vx/rdsk/test/vol1
crw------- 1 root root 291, 26000 Jan 3 19:39 /dev/vx/rdsk/test/vol1
-bash-4.1# vxdg -C import test
-bash-4.1# vxdg list
NAME STATE ID
test enabled,cds 1388777600.89.solaris2
-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 import clone devs
-bash-4.1# vxdg -o useclonedev=on import test
No comments:
Post a Comment