1752719 Members
5659 Online
108789 Solutions
New Discussion юеВ

Re: service guard

 
juan ramos_1
Advisor

service guard

Hi all.
I want to add a new disk to a volume group to mirror a logical volume, this volume group is under a cluster. can I do this while the package is runnin ?
Thanks all
6 REPLIES 6
John Poff
Honored Contributor

Re: service guard

Hi,

Sure you can. You can do all kinds of LVM work on a volume group in MC/SG while packages are running.

JP
Sundar_7
Honored Contributor

Re: service guard

You may not be able to do all kind of LVM activities when the package is up. For ex, if you have to remove and recreate a logical volume that a package uses and if the package has been written to monitor the availablity of the mount points, you will have to carry out some additonal steps.

In your case, you can add the new disk to the volume group on the fly, without having to halt the package

1) pvcreate the disk
2) Extend the VG
3) Mirror the LV
4) Create a map file of the VG using vgexport
5) Copy the map file over to any adoptive nodes for the package.
6) In the adoptive nodes,export the VG and import them.

- Sundar
Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: service guard

mirroring can be done while the package is running. There may be a peformance hit during the logical volume copy.

lvextend -m 1

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: service guard

Yes you can...

For more info, see chapter "7 Cluster and Package Maintenance ", section "Reconfiguring a Cluster" of "Managing Serviceguard":

http://docs.hp.com/hpux/onlinedocs/B3936-90079/B3936-90079.html

That lists changes you can do to both a running and halted cluster.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Prashant Zanwar_4
Respected Contributor

Re: service guard

There shall not be any problem as far as you are adding a new disk and you can probe it on the server. Once you see the disk, you can do as you wish, putting in VG, lvextend, or lvcreate, put the defination in the package control file, if it is a new application you are planning to install, follow application steps, like if it requires reboot or so.

You have to transfer the new-create defination to adoptive nodes also..that you can do using vgexport and vgimport and also put the same in failover scripts or something of that kind you are using..

While creating, make the lvol cluster aware..

If you have a deifnation in package control script, you next reboot shall activate the LV correctly. .

Hope this helps
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
juan ramos_1
Advisor

Re: service guard

Thanks all for your fast answaer