1833187 Members
2848 Online
110051 Solutions
New Discussion

Mirrored LV's

 
SOLVED
Go to solution
Michael Elleby III_1
Trusted Contributor

Mirrored LV's

Can I break a mirror of a vg that is Cluster Aware????

I want to use the 2nd disk for another vg that I am going to add to a separate package.

Thanx.

Mike
Knowledge Is Power
4 REPLIES 4
Domenico_5
Respected Contributor
Solution

Re: Mirrored LV's

hi

Yes, you can do this but you must recreate the vg info whit same configuration on all nodes.

so, on the server with the pakage you can do:
1) lvreduce -m 0 /dev/vgxx
2) vgreduce /dev/vgxx /dev/dsk/cXdXyX
3) vgexport -v -p -s -m /tmp/vgxx.map /dev/vg00
4) rcp /tmp/vgxx other nodes


on the other nodes:

1) vgexport /dev/vgxx
2)mkdir /Dev/vgxx
3)mknod /dev/vgxx group c 64 0x
2) vgimport -v -m /tmp/vgxx.map /dev/vgxx

and thas all

bye
Robert Gamble
Respected Contributor

Re: Mirrored LV's

Michael,

I have followed the procedure Domenico documented many times in the past.

Follow that and you shouldn't have any problems.

Good Luck!
Frederic Sevestre
Honored Contributor

Re: Mirrored LV's

Hi,

Yes you can, but be careful.

Reduce the mirror on the server where the vg is active.
Remove the disk which not containing the cluster lock (check in /etc/cmcluster/cluster.ascii)

For each lv :
#lvreduce -m 0 /dev/vgx/lvolxx

then
# vgreduce vgx /dev/dsk/cx...

then generate a mapfile
# vgexport -p -v -s -m mapfile.vgx vgx

send this mapfile on the other node :
# rcp mapfile.vgx nodeB:/tmp/mapfile.vgx

Then on the other node :
# vgexport vgx
# mkdir /dev/vgx
# mknod /dev/vgx/group c 64 0x.....
# vgimport -v -s -m /tmp/mapfile.vgx vgx

Now you can use the pv

Regards,
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Michael Elleby III_1
Trusted Contributor

Re: Mirrored LV's

Domenico-

Thanx for the info, worked like a charm...

Mike-
Knowledge Is Power