Operating System - HP-UX
1755736 Members
3994 Online
108837 Solutions
New Discussion юеВ

Re: ServiceGuard: access to the files

 
Sergejs Svitnevs
Honored Contributor

ServiceGuard: access to the files

Hi,

I need to stop the ServiceGuard package and change some files in the share VG.

Can I use this procedure?

1) cmhaltpkg
2) vgchange -c n # Release control of cluster
3) vgchange -a e # Activate volume group in exclusive mode
4) mount the required file system on the volume group, work with the files, umount filesystem
5) vgchange -a n # Deactivate volume group
6) vgchange -c y # Enable volume group for HA cluster
7) vgchange -a s # Activate volume group in shared mode
8) cmrunpkg
9) cmmodpkg -e

Thanks,
Sergejs
3 REPLIES 3
Steve Lewis
Honored Contributor

Re: ServiceGuard: access to the files

You do not need to vgchange -c n, just halt the package with cmhaltpkg, then manually activate using vgchange -a e, then mount whichever filesystem you need, make the change, unmount the FS, vgchange -a n, re-start the package.

This is true even if you are changing the volume group configuration.

The easier method for is simply to halt the software that runs in your MC/SG package and make the file changes in situ while the MC/SG package is still up. Then, when the package is switched over the change will appear on the other node anyway because its on the shared storage.

Steve
Sanjay_6
Honored Contributor

Re: ServiceGuard: access to the files

Hi Sergejs,

You do not have to vgchange -c n. If the cluster is still running on the node, you can activate the vg in exclusive mode manually and mount the filesystem, do your changes, deactivate the vg and restart the package,

1) cmhaltpkg
2) vgchange -a e # Activate volume group in exclusive mode
3) mount the required file system on the volume group, work with the files, umount filesystem
4) vgchange -a n # Deactivate volume group
5) cmmodpkg -e # if you want to start the package on the priamry node itself.

cmmodpkg -e would automatically restart the down package on the primary node.

Hope this helps.

Regds

Geoff Wild
Honored Contributor

Re: ServiceGuard: access to the files

vgchange -c n only required if mounting on a server that doesn't have MC/SG installed (IE a backup server).

The rest is fine.

Now, question is, what files do you have to modify and why can't you modify with the package up?

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.