1751742 Members
5635 Online
108781 Solutions
New Discussion юеВ

Re: Cluster

 
SOLVED
Go to solution
Abhilash Krishnan
Frequent Advisor

Cluster

I have created new filesystem and i want to integrate this filessytem in to the cluster the new filesystem is created in new vg .my query is that for this is it reqd to edit the cluster ASCII file and vg name and apply this changes and edit the cntl file also or just edit the .cntl file and add the vg and filesystem name ...pls suggest

Thanks....
Biju
10 REPLIES 10
Steven E. Protter
Exalted Contributor
Solution

Re: Cluster

Shalom,

Standard Service Guard Cluster configuration techniques:

Make changes to package files and configuration.

cmquerycl (not always needed for an already running cluster)
cmcheckconf
cmapplyconf

What file you edit depends on how your cluster was set up in the first place.

In general a shared filesystem is mounted by a package, so the package control script is where that is done.

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
rariasn
Honored Contributor

Re: Cluster

Hi,

# vgchange -c y vg.new

Modify control script to add "vg.new".

rgs.
Avinash20
Honored Contributor

Re: Cluster

Hi Biju,

"I have assigned points to 5 of 76 responses to my questions."

Please assign points to your thread
http://forums11.itrc.hp.com/service/forums/helptips.do?#33

This is a way of saying thanks to the right answers
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Ganesan R
Honored Contributor

Re: Cluster

Hi Biju,

If it is new VG, ofcourse you should put it in cluster ascii to make the VG cluster aware.

If it is not a new VG and just a filesystem addition on existing VG then just edit the corrosponding package control file and update it with cmcheckconf and cmapplyconf.
Also make sure that you have exported and imported on adoptive nodes to create device files for new lv. You need to create new mount points also on adoptive nodes.

Just check this recent thread.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1236610369939+28353475&threadId=1306762
Best wishes,

Ganesh.
Abhilash Krishnan
Frequent Advisor

Re: Cluster

Please correct me if i am wrong

On the primary node

edit the cntl file and add the vg and filesystem name
take the vg map file



On the partner node

import the map file



On the primary node


umount /paydb (filesystem name)
vgchnage - a n vg
vgchange -c y vg
vgchange - a e vg




On the partner node

vgchange -c n vg
vgchnage -a y vg
mount /paydb_arch
(this is for checking before runnig he pkg the filesystem is getting mounted or not if being get mounted procede with the activity)

umount /paydb_arch
vgchange -a n /paydb_arch
vgchange - cy vg


On the primary node

vgchange -c n vg
vgchange -a y vg
mount /paydb (mount the filesystem back to primary node)



cmhaltpkg pkgname



On partner node

cmrunpkg pkg


Regards
Biju
Eric SAUBIGNAC
Honored Contributor

Re: Cluster

some corrections.

- once "vgchange -c y" is done on one node, no needs to do it on partners node. The modification introcuded by "vgchange -c ..." is done on the VG itself, not in lvmtab. So forget "vgchange -c n vg" at beginning of step 4 and "vgchange - cy vg" at end of same step.

- once activated in exclusive mode on one node, you can only activate the vg in read-only on partner nodes. So in step 4, replace "vvgchange - cy vg" by "vgchange -a r vg", and change "mount /paydb_arch" by "mount -o ro ..."

- in step 5, forget "vgchange -c n vg" and "vgchange -a y vg", since you left it opend in exclusive mode in step 3

- You can add the new vg in the main cluster configuration file for further uses.

Eric
Sp4admin
Trusted Contributor

Re: Cluster

Make the changes in the cntl file and make sure you push that file to each system in the cluster. You may want to check the minor numbers and so a vgexport/vgimport if needed.

sp,
Avinash20
Honored Contributor

Re: Cluster

Please refer to

http://sysdigg.blogspot.com/2008/04/how-to-add-filesystem-to-mc-service.html
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Ashish Parashar
Frequent Advisor

Re: Cluster

Hello Biju

After creation of new VG and new filesystem ..you have to make those VG to cluster ware and mutual exclusssive ..

for that two commands are there ..

vgchange -C y vgname

vgchange -a e vgname

afterthat you have to edit package control script and add vgname and filesystem information in that ..finaly you have to export/inport the vg to adoptive name with vgexport/vgimport command ....

I hope the luns you used in your Vg are visible to both if the cluster node..

Regards

Ashish