- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Add a new vg in cluster
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 10:15 PM
01-11-2011 10:15 PM
Add a new vg in cluster
Could you please check the below procedure & let me know whether i need to modify anything.
suppose I have 2 node cluster.Hp-UX version 11.23.MCSG is up & running.
NodeA
suppose i have created a vg named vgdata. & mount it with data.Then copy the map file from NodeA to NodeB.In nodeB I have import the map file with the same minir no.& created the vgdata.
NodeA
unmount /data
vgchange -a n /dev/vgdata
vgchange -c y /dev/vgdata
vgchange -a e /dev/vgdata
mount /data
#vi /etc/cmcluster/cmclconf.ascii
(VOLUME_GROUP /dev/vgdata)
#vi /etc/cmcluster/pkgA/pkgA.cntl
(Add the VG, LVOL and mount points to the package control script that
controls the new VG.)
Now I have to copy this cmclconf.ascii & pkgA.cntl file to NodeB.
After that what else I have to do ..
Regards,
Ani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 11:00 PM
01-11-2011 11:00 PM
Re: Add a new vg in cluster
& VG`s are visible from each node ..once at a time for sure ( -a e )
You have did the changes in cluster.conf file
& package.cntrl file & script then you are ready to apply the binary configurations on the nodes for 1 ) cluster 2 ) package
cmcheckconf -C /etc/cmcluster/conf.ascii
cmapplyconf -C /etc/cmcluster/conf.ascii
cmcheckconf -v -P $dir/pkg1.conf
cmapplyconf -v -P $dir/pkg1.conf
Hope this help.
Thanks & Regards
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 11:26 PM - last edited on 11-10-2011 01:27 PM by Kevin_Paul
01-11-2011 11:26 PM - last edited on 11-10-2011 01:27 PM by Kevin_Paul
Re: Add a new vg in cluster
HI,
Thanks for the reply.I have some question ..please let me know how many files I have to modify?
a.cmclconf.ascii
b.pkg.cntl
c.??
d.??
If you go through the follwoing thread
http://h30499.www3.hp.com/t5/Serviceguard/MCSG-Adding-a-Package-to-a-Running-Cluster/m-p/4432269#M16744
here Mr.Sujit Kumar Sing clearly mention in his 1st reply that ""So in case you have the VGs made cluser aware using vgchange -c y you need not put those entries in the cluster.ascii file."""
So my question is it require to add the new VG entry in cmclconf.ascii & do the following ?
cmcheckconf -C /etc/cmcluster/conf.ascii
cmapplyconf -C /etc/cmcluster/conf.ascii
Regards,
Ani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 11:32 PM
01-11-2011 11:32 PM
Re: Add a new vg in cluster
1 ) cluster.conf.ascii file
2 ) package.cntrl.script
so cmcheckconf /applyconf will do.
package VG can be manually activated & lvol can be mounted without even restart.
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 11:41 PM
01-11-2011 11:41 PM
Re: Add a new vg in cluster
2.I dont think i hv to do vi /etc/cmcluster/cmclconf.ascii as i hv already did vgchange -c y /dev/vgdata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2011 11:52 PM
01-11-2011 11:52 PM
Re: Add a new vg in cluster
vgchange -a n vg_shared
# vgexport -p -s -m /tmp/vg_shared.map /dev/vg_shared
3.# scp /tmp/vg_shared.map node2:/tmp/
Going to node2:
5.
# ls /dev/vg_shared/group - note minor number (0x020000 for example)
# vgexport vg_shared
6.
# mkdir /dev/vg_shared
# mknod /dev/vg_shared/group c 64 0x020000 (same minor here)
7.
# vgimport -v -s -m /tmp/vg_shared.map /tmp/vg_shared
vi cluster.conf.ascii file
List of cluster aware LVM Volume Groups. These volume groups will
# be used by package applications via the vgchange -a e command.
# Neither CVM or VxVM Disk Groups should be used here.
# For example:
# VOLUME_GROUP /dev/vgdatabase
# VOLUME_GROUP /dev/vg02
VOLUME_GROUP /dev/vg0_shared.
vi $dir/package.cntrl.scritp
#VOLUME GROUPS
VG(0)=/dev/vg_shared
#FILESYSTEMS
LV(0)=/dev/vg_shared/lvol1
FS(0)=/tmp/mount1
now ..every thing is set ..
cmcheckconf & cmapplyconf will do !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2011 12:01 AM
01-12-2011 12:01 AM
Re: Add a new vg in cluster
cmcheckconf & cmapplyconf will do !!
you mean I have to fire the following right
#cmcheckconf -C /etc/cmcluster/conf.ascii
#cmapplyconf -C /etc/cmcluster/conf.ascii
#cmcheckconf -v -P $dir/pkg1.conf
#cmapplyconf -v -P $dir/pkg1.conf
So as you are making entry in cluster.ascii file so no need to do the follwoing right?
unmount /data
vgchange -a n /dev/vgdata
vgchange -c y /dev/vgdata
vgchange -a e /dev/vgdata
mount /data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2011 12:09 AM
01-12-2011 12:09 AM
Re: Add a new vg in cluster
vgchange -c y & vgchange -a e
will be done automatically by cluster startup
as stated in cluster.conf.ascii file (below)
no other command is needed apart from
1 ) vgchange -a n vgname
2 )cmcheckconf -C /etc/cmcluster/conf.ascii
3 )cmapplyconf -C /etc/cmcluster/conf.ascii
# List of cluster aware LVM Volume Groups. These volume groups will be used by package applications via the vgchange -a e command.
# Neither CVM or VxVM Disk Groups should be used here.
# For example:
# VOLUME_GROUP /dev/vgdatabase
VOLUME_GROUP /dev/vg02
VOLUME_GROUP /dev/vg_shared
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2011 12:17 AM
01-12-2011 12:17 AM
Re: Add a new vg in cluster
1 ) vgchange -a n vgname
2 )cmcheckconf -C /etc/cmcluster/conf.ascii
3 )cmapplyconf -C /etc/cmcluster/conf.ascii
the follwoing command is also reqire also right?
#cmcheckconf -v -P $dir/pkg1.conf
#cmapplyconf -v -P $dir/pkg1.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2011 12:34 AM
01-12-2011 12:34 AM
Re: Add a new vg in cluster
As i said only 3 commands ..no changes to
package.conf.ascii file so not needed to apply
a new package configurations.
Only three commands as i mentioned.
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2011 07:52 AM
01-12-2011 07:52 AM
Re: Add a new vg in cluster
I have to modify cluster.conf.ascii & pkg.cntl file to Node1 right.
cmcheckconf & cmapplyconf also should be fire from the Node1.
The cmapplyconf will automatically distribute the custer.conf.ascii file to node2. SO i need to copy only the pkg.cntl file to node2 right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2011 01:56 AM
01-13-2011 01:56 AM
Re: Add a new vg in cluster
You only need to copy the package control file to node B.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2011 02:06 AM
01-13-2011 02:06 AM
Re: Add a new vg in cluster
You are correct only control.script needs to be copied rest has been already done.
Thnaks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2011 06:30 AM
01-13-2011 06:30 AM
Re: Add a new vg in cluster
Steps to add a Volume Group to a Package
node1# pvcreate [ -f ] /dev/disk/new_disk1
node1# pvcreate [ -f ] /dev/disk/new_disk2
node1# mkdir /dev/vg_new
node1# mknod /dev/vg_new/group c 64 0x140000
node1# vgcreate vg_new /dev/disk/new_disk1 /dev/disk/new_disk2
node1# vgexport -v -p -s -m /tmp/vg_new.map vg_new
node2# rcp node1:/tmp/vg_new.map /tmp/.
node2# mkdir /dev/vg_new
node2# mknod /dev/vg_new/group c 64 0x140000
node2# vgimport -N -v -s -m /tmp/vg_new.map vg_new
node1# vgchange -c y vg_new
node1# vgchange -a n
node1# cmhaltpkg pkg_name
Modify the control scripts on both systems to insure this new vg is activated when the package starts and to insure all new filesystems in this nre volume group are mounted.
node1# cmrunpkg -v pkg_name
node1# cmmodpkg -v -e pkg_name
Rgda...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2011 08:37 AM
02-09-2011 08:37 AM