Operating System - HP-UX
1832595 Members
3018 Online
110043 Solutions
New Discussion

Re: add disk and logical volume to VG owned by a package

 
SOLVED
Go to solution
huongbuixuan
Advisor

add disk and logical volume to VG owned by a package

Hi all.
How can I add disk and logical volume to VG owned by package while pacakge is running. I can add it for primary node, but don't know how to add for adoptive node (while package is running)

Thank
BXH
Viet Nam
6 REPLIES 6
Bruno Vidal
Respected Contributor
Solution

Re: add disk and logical volume to VG owned by a package

Hi
You can add it without any pb.
On primary node:
vgextend/lvextend or lvcreate.
then:
vgexport -p -m mapfile vg
Cp on secondary node the mapfile
and then:
vgexport vg
mkdir /dev/vg
mknod /dev/vg/group c 64 0xXX0000
vgimport -m mapfile vg disk_liste.

The vgimport command don't activate the vg, so there is no risk to activate on both system.
That's all.
Jean-Louis Phelix
Honored Contributor

Re: add disk and logical volume to VG owned by a package

Hi,

You just have to vgexport -p your volume on the primary node to get a map file, then vgexport it on the secondary node and reimport it using the mapfile.

Don't forget to adjust also the control files with the new lv if it needs to be mounted and unmounted.

Regards,

Jean-Louis.
It works for me (© Bill McNAMARA ...)
Stephen Doud
Honored Contributor

Re: add disk and logical volume to VG owned by a package

Hello B. Huong,

This and other LVM tasks related to ServiceGuard packages are discussed in step-by-step thoroughness in technical documents.

There are two documents to walk through the processes you need to perform:

Document ID: UXSGLVKBAN00000002
TITLE: Adding A Disk To A Volume Group In A ServiceGuard Package
Document ID: UXSGLVKBAN00000008
TITLE: Adding Logical Volumes to a ServiceGuard volume group

These and over a hundred others are already available in the technical knowledge database to answer the most common questions about ServiceGuard

-s.
Christopher McCray_1
Honored Contributor

Re: add disk and logical volume to VG owned by a package

Hello,

Great documents provided by Stephen.

As an add-on, those and the other MCSG documents can be accessed in the Technical Knowledge Base by using the keywords "uxsg" or "umcsg".

Regards

Chris
It wasn't me!!!!
Ashwani Kashyap
Honored Contributor

Re: add disk and logical volume to VG owned by a package

If you know how to add it on the primary node , then all you have to do is export that vg form the primary node into a map file in shareable and priview mode . Then copy the map file onto the adoptive node and vgimport that vg there . Thats all you need to do . And also make sure that on both the nodes your package conf files and package control files are in sync .
huongbuixuan
Advisor

Re: add disk and logical volume to VG owned by a package

Thank for all early reply. Now I can do it.
Thank again.
BXH
Viet Nam