Operating System - HP-UX
1844638 Members
3244 Online
110233 Solutions
New Discussion

Re: View Package info and add VG to a package

 
Keith Underwood
Occasional Contributor

View Package info and add VG to a package

We have a 2 node cluster and I want to add a volume group to one of the packages.
HPUX 11.11.
I have created the VG and added FS.
the VG is active right now. I want to add the package to an existing package in the cluster.
I have seen several different commands to do this and want to make sure I get it right.
I have also read that the package can stay up when I add the new VG.
I know I need to add the vg to the cntl file and add the lv data to it as well.
I also know I need to run cmcheckconf and cmapplyconf.
Another question is, how do I see all VG's attached to a package.

Thanks,
Keith
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: View Package info and add VG to a package

Shalom Keith,

The location of the package control script is up to the administrator, but here is the standard.

/etc/cmcluster
# package configuration
package name folder is here, referred to by the ascii cluster configuration file.

Modify the package control script to add the activation of the volume group and the filesystem.

Commands are listed here and can save you the trouble of looking around.

http://docs.hp.com/en/B3936-90117/apa.html

Once running, you can use cmviewcl -v to see details on any running packages. Before they are running, you look at the configuration files use the commands in the link above.

Hopefully your SG version is 11.16

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
Keith Underwood
Occasional Contributor

Re: View Package info and add VG to a package

Thanks for the quick response.
I will take a look at the document and
make sure in isn't the same one I have.
As for cmviewcl. I was looking to see if
there was a command that showed what volume groups were in what packages. cmviewcl doesn't seem to do that.

Keith
Emil Velez
Honored Contributor

Re: View Package info and add VG to a package

do a cmviewcl and get the package name


do a cmgetconf -p file.conf

vi file.conf

This will tell you where the run script is


Then

vgchange -c y vgxx (new volume group)
vgchange -a n vgxx (deactivate it)

I assume that you imported the VG on the other nodes and created the mount point.


cmhaltpkg

edit the run/halt script to add the vg and fs

run the package on all of the nodes to test the package and then you are good.