Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to break the mirror in vg00

SOLVED
Go to solution
Sreer
Valued Contributor

Need to break the mirror in vg00

Hi gurus,
I have a requirement for removing a disk from the mirrored VG00 after breaking it.
Is it possible to do it on line?
could u pls tell the steps?Thanks in advance..
Rgds
Sreekumar
5 REPLIES
Sreer
Valued Contributor

Re: Need to break the mirror in vg00

Hi,
while breaking the mirror Iam getting the follo. error.
# lvreduce -m 1 /dev/vg00/lvol1 /dev/dsk/c2t0d0s2
lvreduce: "MirrorCopies" parameter "1" is not smaller than existing number "1";
therefore no mirrors are removed.
[rx260-01]/
#
sujit kumar singh
Honored Contributor
Solution

Re: Need to break the mirror in vg00

hi u have to do a

#lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/cxtydy if u already have no of mirrir copies in the VG as 1

this will auto matically update the vgconf file and well can be done online.

remember that in fututre when u will be adding the disk u will have to pvcreate -B, vgextend and lvextend -m 1 the mirror copies

#lvreduce -m 1 /dev/vg00/lvol1 /dev/dsk/cxtydy is used to decrease a mirror from a no higher that 1 mirrir in teh VG.


regards
Sujit
Sreer
Valued Contributor

Re: Need to break the mirror in vg00

Hello Sujith ,
Excellent! You are ri8.I have used 0 instead of 1 now its perfect.Thanks!!

# for i in lvol1 lvol2 lvol4 lvol5 lvol6 lvol7 lvol8
> do lvreduce -m 0 /dev/vg00/$i /dev/dsk/c2t0d0s2
> done
It worked for me.

Rgds

Sreekumar
Sreer
Valued Contributor

Re: Need to break the mirror in vg00

Hello,

# for i in lvol1 lvol2 lvol4 lvol5 lvol6 lvol7 lvol8
> do lvreduce -m 0 /dev/vg00/$i /dev/dsk/c2t0d0s2
> done


This was the exact command I used.
sujit kumar singh
Honored Contributor

Re: Need to break the mirror in vg00

more so ever this is an integrity machine so while adding the mirror disk again in future u will need to do

following the reduction of the mirror copies from the disk, u will need to do a vgreduce with that disk amke sure that u edit the /stand/bootconf to remove the entry of that boot disk and do an lvlnboot -R



when in future u will be adding the Disk to vg00 for mirroring keep in the view the following things.


1) create the EFI,HPand HPSP partitions in the disk
2)pvcreate -B on /dev/rdsk/cxtydzs2 and so on

and after that vgextend and mirror like


#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtydzs2



Regards

Sujit