Operating System - HP-UX
1847163 Members
6316 Online
110263 Solutions
New Discussion

Only one VGpkg.conf config file in a cluster

 
bchanswift
New Member

Only one VGpkg.conf config file in a cluster

Hi,

Just a newbie question. I have 2 nodes in the cluster however, it seems like there is only 1 vgpkg.conf config file on one of the clusters. They both use the same shared disks/mirrored. The version used right now is HP SG cluster CVM CFS SD product A11.18. In the previous 11.16 versions it is necessary for both nodes to have the vgpkg.conf file in order to work. Has there been an upgrade in A11.18 to allow this? If so can someone explain how that works for a package switch.

Thanks a million
Bchan
7 REPLIES 7
Kapil Jha
Honored Contributor

Re: Only one VGpkg.conf config file in a cluster

Is it a new setup or new package created.
pkg.config and pkg.cntl should be there in both the nodes.
Which directory you are checking?
you have to look in
/etc/cmcluster/PKG_NAME/ directory.


BR,
Kapil+
I am in this small bowl, I wane see the real world......
bchanswift
New Member

Re: Only one VGpkg.conf config file in a cluster

Hi Kapil+,

Thanks for the prompt reply. I do have the pkg.conf file on both hosts, however it is the vg.conf in /etc/lvmconf only exists on one node.

Also what is the difference between the lvmtab and the contents within /etc/lvmconf/*.conf?

Cheers
Bchan
Kapil Jha
Honored Contributor

Re: Only one VGpkg.conf config file in a cluster

ohhh so you talking about vgconf file in /etc/lvmconf directory.

Its the directory which saves the lvm configuration automatically if you change anythinng in lvm configuration.

man vgcfgbackup

Its machine wide, so you don have to worry about it.
even if you do a vgcfgbackup it would create a file vg.conf saving vg config.

Its not actually related to cluster.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
bchanswift
New Member

Re: Only one VGpkg.conf config file in a cluster

Hi Kapil+,

what about the vg config file which is for the package. i have a vg00.conf but also a vg.conf as well which i presume the one with the pkg name is the configuration of the vg's for the package. Does the startup of the host look at these config files at all or just the lvmtab?

Cheers
Bchan
Kapil Jha
Honored Contributor

Re: Only one VGpkg.conf config file in a cluster

Yeh it would just enquire lvmtab at startup, it would not consult anyfiles under lvmconf, they are only used when you have lost some configuration of VG and you want it to be on old correct config.

These files are like automatic backup of configuration.

You may also like to refer
man vgcfgbackup
This would show you the correct picture.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
bchanswift
New Member

Re: Only one VGpkg.conf config file in a cluster

That makes perfect sense now.

Thanks a million.
Stephen Doud
Honored Contributor

Re: Only one VGpkg.conf config file in a cluster

Where are you finding vgpkg.conf?
If in /etc/lvmconf, then it is probably a binary VG metadata save file that is sourced by vgcfgrestore in order to restore the LVM metadata to a disk after corruption or replacement has occurred.
This file is created whenever a VG is created or modified.

When a VG is created for use with a cluster, it must be imported on the other cluster nodes in order to be seen and activated on the other nodes. Other threads in the forum discuss how to import a VG. If the VG is imported on another node, create /etc/lvmconf//conf on that node when the VG is activated on that node: perform "vgcfgbackup " to create the /etc/lvmconf/.conf file.

/etc/lvmtab is a binary file that maps volume groups to it's physical volumes (LUNS) and is used by LVM to activate a VG.
It is updated when creating or removing a VG or adding or removing devices on a VG.
'strings /etc/lvmtab' will show you the ASCII content of the file (disregard unintelligible text).

If the file is in /etc/cmcluster or a sub-directory, then this could be an ASCII package configuration file. This sort of file need only exist on one node. It is used by the admin (See man cmapplyconf(1M)) to update the cluster binary file with references to the package.

In your original statement, you indicated that the servers have "HP SG cluster CVM CFS SD product A11.18". This means that you could be creating CFS packages which will not use LVM but VxVM-managed storage.