- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgchange
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
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
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
06-19-2006 02:50 AM
06-19-2006 02:50 AM
vgchange
I have created volume group and distributed to other node. Should I do activate volume group on both node?
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 02:53 AM
06-19-2006 02:53 AM
Re: vgchange
Vg will be activated by package , not manually
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 02:56 AM
06-19-2006 02:56 AM
Re: vgchange
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2006 02:59 AM
06-19-2006 02:59 AM
Re: vgchange
in SG the volume group will be activated only on a node. If you want just for testing purposes you can active the shared volume group on the first node before and then deactivate it from that node and activate the same VG on the second node. It just for testing purposes to check if there are problems.
Just a thought...
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 02:35 AM
06-20-2006 02:35 AM
Re: vgchange
Thus, after the package is started, you should be able to do a 'vgdisplay
You will also note from its status that the VG is active in "exclusive" mode - an indication that it identifies with the SG cluster.
Halt the xclock package and start it on the other server and you should see the VG deactivate on the first node and activate on the next node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 03:49 AM
06-20-2006 03:49 AM
Re: vgchange
If the VG is part of the cluster, the package that uses the VG should be configured to activate/deactivate the volume group.
Having said that, it is perfectly fine to manually activate the VG from the command.
But remember, the HP-UX LVM has no means of communicating the VG activation status across the nodes. So the VG should be activated RW only in one node. You can activate the VG in Read-only mode in the other node.
In node 1
# vgchange -a e /dev/vgname
In node 2
# vgchange -a r /dev/vgname
# vgcfgbackup /dev/vgname
(vgcfgbackup wont exist in the adoptive nodes).
Now remember to deactive the VG before starting the package, or else the package startup will fail.
Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 04:01 AM
06-20-2006 04:01 AM
Re: vgchange
When lvmkd detects that a VG is marked to activate in exclusive mode, it cannot be activated on more than one node at any given time. Hence vgchange -a r on a second node will not succeed.
Incidentally, HP-UX does not have the ability to communicate inode changes performed on one server to another server. So if a 2nd server activates a VG and mounts a file system mounted in read-only mode that is already mounted on the 1st server, file system structures in-core on the 2nd node can quickly become unsync'd from what is being done to the file system from the 1st node. This can cause a file-system inconsistency panic on the 2nd node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2006 05:20 AM
06-20-2006 05:20 AM
Re: vgchange
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2006 12:04 AM
06-21-2006 12:04 AM
Re: vgchange
# cmhaltpkg -pkg_name
In main node (nodea),
# vgchange -a e vgsample
# mount /dev/vgsample/lvsample /sample
# bdf /sample
# vgexport -p -m /tmp/vgsample.map vgsameple
# scp (or rcp) /tmp/vgsample.map nodeb;/tmp
# vgchange -a n vgsample
In adoptive node (nodeb),
# vgexport -m /tmp/vgsample.map.old
# mkdir /dev/vgsample
# mknod /dev/vgsample/group c 64 0xnnnnnn
# vgimport -m /tmp/vgsample.map vgsample pv_paths
# vgchange -c y vgsample
# vgchange -a e vgsample
# mount /dev/vgsample/lvsample /sample
rgs,
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2006 12:31 AM
06-21-2006 12:31 AM
Re: vgchange
You are correct. A VG can be activated in read-only mode even if it is activated in exclusive mode elsewhere.
I stand by my message that inode changes are not communicated from the read/write node to the read-only node, so it's not advisable to mount the file system on the read-only node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2006 05:01 AM
06-21-2006 05:01 AM
Re: vgchange
I've solved this problem with 'vgchange -a e'.
regards,
seymour.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2006 01:45 AM
06-22-2006 01:45 AM
Re: vgchange
Although you found that you were able to activate the clustered VG using 'vgchange -a e', that manual operation will normally be done in a package control script.
Since a VG is only part of the requirements of a critical application, the package control script is used to coordinate and automate making the necessary system resources available to the application, under Serviceguard control.
Therefore, it seems like the next thing you need to do is make a package control script and add that VG to the script.