Operating System - HP-UX
1835626 Members
3691 Online
110081 Solutions
New Discussion

new volume group in current cluster.

 

new volume group in current cluster.

Hi,

I have up and running cluster, and I get new disks. I can see them from both nodes. So,
I created volume group, one lv and one fs on several disks. Question is: do I have to mark volume group with vgchange -c y vgname before importing those volume group on adoptiv node, or just import without vgchange. Other question is can I on line (without halting package) join this volume group in existing package.

Thank you in advance.

Hrvoje
8 REPLIES 8
MARTINACHE
Respected Contributor

Re: new volume group in current cluster.

Hi,

In order to use "-s" option of vgexport, you need to "vgchange -c y" your vg :

vgchange -c y /dev/vgXX
vgexport -p -s -m /tmp/mapfile.vgXX /dev/vgXX
rcp /tmp/mapfile.vgXX Host1 Host2

On node 2 :
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0x...
vgimport -s -m /tmp/mapfile.vgXX /dev/vgXX

You need to stop your package if you want to add a new vg.

Regards,

Patrice
Patrice MARTINACHE
Vincenzo Restuccia
Honored Contributor

Re: new volume group in current cluster.

You need to stop your package for modify control.sh,etc.
Pedro Sousa
Honored Contributor

Re: new volume group in current cluster.

Hi Hrvoje!

Patrice, sorry, but I think you're wrong. There's no need of doing vgchange -c y before vgexport with -s option.

So Hrvoje, follow Patrice instructions, and don't forget to add an entry for that new vg in /etc/cmcluster/cmclconf.ascii, afterwards you'll need to apply the new conf. with cmapplyconf.

Note: you can add FileSystems online, but if you do it with VGs it can be a new point of failure on your HA cluster. So, add VGs offline.
good luck.
James R. Ferguson
Acclaimed Contributor

Re: new volume group in current cluster.

Hi:

Document #UXSGLVKBAN00000012 (LVM - Adding A Volume Group To A ServiceGuard Package) has a step-by-step guide for this process.

It notes that it is not necessary to halt the package when adding a volume group. It also notes that a 'vgchange -c y ...' can be used to manually "cluster" an inactive volume group, but this will only succeed when the cluster is running, as it depends on the cmlvmd daemon being active.

...JRF...

Re: new volume group in current cluster.

Thank you,

James could you tell me where can I
found Document #UXSGLVKBAN00000012 (LVM - Adding A Volume Group To A ServiceGuard Package). It would help.

Best regards,

Hrvoje
melvyn burnard
Honored Contributor

Re: new volume group in current cluster.

the document is available on the ITRC web site under maintenance and support.
You need to go there and search for it.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
James R. Ferguson
Acclaimed Contributor

Re: new volume group in current cluster.

Hi Hrvoje:

To find the document I cited, follow this:

Make sure that you are logged into the ITRC.

Click Maintenance and Support -> Search Technical Knowledge Base -> Select Search by Doc ID and enter the document number (UXSGLVKBAN00000012) -> Search.

Regards!

...JRF...

Re: new volume group in current cluster.

unfortunatlly, it seems that I dont have
permission to get this document:
Note: Your search produced no results; try a different search string.

Hints: Document ids are case sensitive. You may not be authorized to access a particular document id.

Anyway, thank you