vxmirror giving error
root@CLFPAP06 # vxprint -htg rootdg
dg rootdg default default 113000 1224692943.6.GSMPAP07
dm rootdg01 c0t0d0s2 auto 81407 143267904 -
dm rootdg02 c0t1d0s2 auto 81407 143267904 -
v rootvol - ENABLED ACTIVE 41945472 ROUND - root
pl rootvol-01 rootvol ENABLED ACTIVE 41945472 CONCAT - RW
sd rootdg01-02 rootvol-01 rootdg01 20972735 41945472 0 c0t0d0 ENA
v u01vol - ENABLED ACTIVE 12582912 SELECT - fsgen
pl u01vol-01 u01vol ENABLED ACTIVE 12582912 CONCAT - RW
sd rootdg01-06 u01vol-01 rootdg01 125846591 12582912 0 c0t0d0 ENA
v u13vol - ENABLED ACTIVE 25165824 SELECT - fsgen
pl u13vol-02 u13vol ENABLED ACTIVE 25175424 CONCAT - RW
sd rootdg01-01 u13vol-02 rootdg01 10175 20962560 0 c0t0d0 ENA
sd rootdg01-03 u13vol-02 rootdg01 119557823 4212864 20962560 c0t0d0 ENA
v u14vol - ENABLED ACTIVE 10485760 SELECT - fsgen
pl u14vol-01 u14vol ENABLED ACTIVE 10485760 CONCAT - RW
sd rootdg01-04 u14vol-01 rootdg01 73409663 10485760 0 c0t0d0 ENA
v u16vol - ENABLED ACTIVE 25165824 SELECT - fsgen
pl u16vol-01 u16vol ENABLED ACTIVE 25175424 CONCAT - RW
sd rootdg01-05 u16vol-01 rootdg01 94382399 25175424 0 c0t0d0 ENA
want to mirror rootdg
command used:
vxmirror -g rootdg rootdg01 rootdg02 &
error getting:
root@CLFPAP06 # ! vxassist -g rootdg mirror rootvol rootdg02
VxVM vxprint ERROR V-5-1-924 Record swapvol1 not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
/usr/lib/vxvm/bin/vxbootsetup: test: unknown operator c0t0d0
VxVM vxassist ERROR V-5-1-510 Could not setup boot partition for new root mirror
! vxbootsetup -g rootdg
VxVM vxprint ERROR V-5-1-924 Record swapvol1 not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
VxVM vxprint ERROR V-5-1-924 Record - not found
/usr/lib/vxvm/bin/vxbootsetup: test: unknown operator c0t0d0
VxVM vxmirror NOTICE V-5-2-3631 The following volumes were not mirrored:
rootvol u14vol u16vol u01vol
[1]+ Exit 1 vxmirror -g rootdg rootdg01 rootdg02
os:solaris 10
ok, public & private region looks similar in both the disks...
Can your vxprint see a swapvol now ? & are you getting the same error after issuing the same command ?
I would recommend to run vxmirror -g rootdg (not vxassist mirror)..
If the above mirror fails, I see one more issue:
Notice the disk_offset values of two disks:
public: slice=3 offset=1 len=143267904 disk_offset=0
private: slice=4 offset=1 len=81407 disk_offset=143267904 <<<<<<<<<<<<<
public: slice=3 offset=0 len=143267904 disk_offset=81408
private: slice=4 offset=1 len=81407 disk_offset=0though public & private region lengths are same however disk offset is different, it would be good if you keep them same... this would be little tricky to initialize disk like this because you don't have any switch called "disk_offset" to define in "vxdisksetup" command .. If you want to make these parameters similar, you have to do following:
-- Make sure which disk server is booted (prtconf -pv
grep -i bootpath) lets assume it booted from rootdisk i.e c0t0d0-- you can remove all the mirrors from rootmirror disk (use vxplex dis)
-- take rootmirror disk out of veritas (vxdg -g rootdg rmdisk) -- make sure you have deleted all the components from rootmirror disk. Take extra precaution before deleting, make sure there is no volume which is mounted from rootmirror disk
-- Reinitialize rootmirror again with following options:
# vxdisksetup -i c0t1d0 privlen=81407 privoffset=143267904 publen=143267904 puboffset=0 format=sliced pubslice=4 privslice=3
above command should make disk struncture of root mirror similar to rootdisk.. the trick here is disk_offset values are provided with "privoffset & puboffset" values delibaretely.
another point though it may not be relevant here, you are running base version of 5.0 which had lot many of bugs & were fixed later ... check out SORT website for latest patch matrix..
https://sort.symantec.com/patch/matrix
Gaurav

