Operating System - HP-UX
1777014 Members
1480 Online
109062 Solutions
New Discussion юеВ

Have I to apply the configuration if I add lvols to one vg in the cluster??

 
SOLVED
Go to solution
Carme Torca
Super Advisor

Have I to apply the configuration if I add lvols to one vg in the cluster??

Hi,

I would like to know if I have to check and apply the cluster's configuration if I add one lvol to one vg in the cluster??

Thanks!!!
Carmen.
Users are not too bad ;-)
5 REPLIES 5
Johan Lorimier
Frequent Advisor
Solution

Re: Have I to apply the configuration if I add lvols to one vg in the cluster??

Hi,

No, it is not needed. You can do it online by the usual way to add lvol, but dont forget to modified your package configuration file and also to export and import the mapfile of the VG in the other nodes.

However if you have time, it's worth to make a cmcheck.

Johan
RAC_1
Honored Contributor

Re: Have I to apply the configuration if I add lvols to one vg in the cluster??

On the node, where vg is active,

vgexport -pv -s -m /tmp/vgxx.map vgxx
rcp/scp/ftp map file to other node

On the other node

vgexport vgxx

mkdir /dev/vgxx
mknod /dev/vgxx/group c 64 0x0y0000

y=unused minor number

vgimport -v -s -m /tmp/vgxx.map vgxx

Anil
There is no substitute to HARDWORK
John Poff
Honored Contributor

Re: Have I to apply the configuration if I add lvols to one vg in the cluster??

Hi,

No, you don't have to do cmcheckconf/cmapplyconf for adding an lvol. You will need to update the package control script so that the new lvol/filesystem will be mounted and unmounted properly, and then put a copy of that updated control script on the other nodes. Also, you will want to do a vgexport on the VG where you added the lvol to create a map file, and then do a vgexport and vgimport with that map file on the other node to pick up the new lvol.

JP
Ashwani Kashyap
Honored Contributor

Re: Have I to apply the configuration if I add lvols to one vg in the cluster??

No absolutely nit .You don't have to reapply the cluster configuration .

You cann add you LV to the existing cluster aware VG , online , without even bringing down the cluster or packages , create the file system and mount it normalyy as you would .

However since the adoptive node doesnot have any knowledge of the new LV , you will have to reexport your VG from the primary node , in shared and preview mode into a mapfile and import it onto your adpotive node , like this :

On primary node
#vgexport -p -s -m /dev/vg_name .
ftp the mapfile to adpotive node .
On theadoptive node , do
#vgexport /dev/vg_name
#mkdir /dev/vg_name
#mknod /dev/vg_name/group c 64 0xYY0000
where YY is the same number as on your primary node for the same volume group .
#vgimport -s -m /dev/vg_name .
Now you have a consisten voume group on both nodes


Now just go ahead and update the package control files on both the nodes to reflect the new LV and its mount point .
Jose Mosquera
Honored Contributor

Re: Have I to apply the configuration if I add lvols to one vg in the cluster??

Hi,

If your LVs belong an existing cluster's VGs you do not need check and apply configuration.

Remember that LVs afect the pkg configuration and normally you must have the MC/SG control script placed into /etc/cmcluster//pkg_name.cntl.
Inside this file you must add any LV into FILESYSTEMS section.

Specify the filesystems which are used by this package. Fill in the name of your first
logical volume, filesystem and mount option for the file system. You must begin with LV[0], FS[0] and FS_MOUNT_OPT[0] and increment the list in sequence. Please have special care in the sequence!!!

Rgds.