Operating System - HP-UX
1753894 Members
7607 Online
108809 Solutions
New Discussion юеВ

Re: LVM with MC/Service Guard

 

LVM with MC/Service Guard

Hi, everybody.

I have a two-node cluster with MC/Service Guard and LVM

Can anybody tell me how to add a new logical volume to an existing and exported volume group without taking the volume group offline?

Thanks.
Sebastian Lozano
4 REPLIES 4
RAC_1
Honored Contributor

Re: LVM with MC/Service Guard

If you have enough space then lvcreate.
(Or else add the pv and then vgextend etc)

Then vgexport (with -p option) to prepare the map file and importing the same vg on another node.

vgexport -pvs -m /tmp/vgxx.map vgxx

rcp/scp this map file to another node in cluster

Then on another node.

vgexport vgxx.

mkdir /dev/vgxx
mknod /dev/vgxx/group c 64 0x0x0000
vgimport -vs -m /tmp/vgxx.map vgxx

MC/SG takes care at VG level. You can add lv without worrying abt taking it offline.
There is no substitute to HARDWORK
Mark Grant
Honored Contributor

Re: LVM with MC/Service Guard

Just make the volume group as normal then do a vgexport of the volume group with -p option and the -m option to make the map file.

On the other node, vgimport it, again with the same two options.
Never preceed any demonstration with anything more predictive than "watch this"

Re: LVM with MC/Service Guard

Worked fine.

Thanks a lot.
Sebastian Lozano
Kent Ostby
Honored Contributor

Re: LVM with MC/Service Guard