cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to mirror the disk

Home_224
Level 6

Hi All, 

I have the disk mirror problem on the Solaris 5.9 , the VXVM version 4.1 MP.  Let me summary the issue.

1, For the system fault, we removed the disk from the slot without use vxdiskadm to do, the vxprint show the c1t1d0s2 rootdg2 removed.

2. Boot to c1t0d0s2 rootdg1 for system up for end users operation. 

3. I remove the second disk to try to boot up on another same model server, boot up suceessfully after fsck -ufs the slice.

4. Then put it back to original server to mirror disk again. 

  • vxplex -g rootdg dis  rootvol-02 varvol-02 usr-vol02 swap-vol02
  • vxedit -fr rm c1t1d0
  • vxdisk  rm rootdg rootdg02
  • vxprint -ht 
  • insert disk
  • drvconfig 
  • vxdctl enable
  • format and label 
  • newfs /dev/rdsk/c1t1d0s2
  • vxdisksetup -i c1t1d0 format=sliced 
  • vxdisk list  to show the disk 
  • vxdiskadm > option 1 > c1t1d0 > rootdg 
  • Pop the error to show the disk in the diskgroup , not able to add the rootdg group.
  • vxidiskadm > option 2  > same error 

Do i need to use  dd=if /dev/zero of=/dev/rdsk/c1t1d0s2 bs=1024k count-10 to format the new disk?  or use the vxdg -g rootdg adddisk rootdg2=c1t1d0

Please advice how to fix it .  

 

Thank you very much 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Mouse
Moderator
Moderator
Partner    VIP    Accredited Certified

Can't comment on other steps as but these ones look in a wrong order to me:

  • newfs /dev/rdsk/c1t1d0s2
  • vxdisksetup -i c1t1d0 format=sliced 

vxdisksetup overwrites the label to take disk under vxvm control

once you init the disk, can you please post outputs for:

vxprint -eo alldgs list

and vxprint -g rootdg -hrt

View solution in original post

2 REPLIES 2

Mouse
Moderator
Moderator
Partner    VIP    Accredited Certified

Can't comment on other steps as but these ones look in a wrong order to me:

  • newfs /dev/rdsk/c1t1d0s2
  • vxdisksetup -i c1t1d0 format=sliced 

vxdisksetup overwrites the label to take disk under vxvm control

once you init the disk, can you please post outputs for:

vxprint -eo alldgs list

and vxprint -g rootdg -hrt

Hi Mouse,

I tried to use vxdiskadm to initial the disk but it unable to take the disk to rootdg group, so I have no idea what is the problem.