- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: New VG in modular and legacy package
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
05-09-2011 12:38 AM
05-09-2011 12:38 AM
In case of legacy package need to halt the package.
In both the case we need to update cluster and package config files.
Serciceguard experts kindly explain why this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 01:17 AM
05-09-2011 01:17 AM
Re: New VG in modular and legacy package
modular packages are / will be the preffered method of creating packages. Legacy style package as it's name suggests, may be obsolete in next releases of SG and removed.
Since SG 18/19, this different approach to packages(modular) allows many other modifications to the package to be made online, without the need to bring the package down.
I don't know whether your question is of any use, you just have to admit the fact that creating modular packages makes life easier to you, as many modifications can be made online :) and different type of mechanism is used when creating/modifying/starting/halting packages.
There's also command cmmigratepkg (#man cmmigratepkg) which can help you to migrate existing legacy packages to modular style packages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 01:54 AM
05-09-2011 01:54 AM
Re: New VG in modular and legacy package
In future, when you restart the package, it will automatically mount the file systems.
2. This is not the case with modular package. Even through, you make entries in conf file, then also, you have to run the checkconf/applyconf to enable it in restarting package.
Hope, this helps you.
Thanks,
Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 02:10 AM
05-09-2011 02:10 AM
Re: New VG in modular and legacy package
I know this. I am in search of how modular package is working.
Please help me?
Vivek, to make use of newly added vg need to restart the package otherwise it wonâ t mount.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 02:16 AM
05-09-2011 02:16 AM
Re: New VG in modular and legacy package
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 02:51 AM
05-09-2011 02:51 AM
Re: New VG in modular and legacy package
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 04:37 AM
05-09-2011 04:37 AM
SolutionAccording to table 7-3 (page 393) in the most recent Managing Serviceguard manual at http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02437444/c02437444.pdf , you may add a VG to a running modular package:
Add a volume group: modular package ->
Package can be running.
Both legacy and modular packages must reference package-specific volume groups (if used) in either the package control script (legacy) or package configuration file (modular) in order for Serviceguard to activate/deactivate the volume group(s).
The legacy script is only run when the package is started or stopped.
The modular package configuration file is only used to update the cluster binary file (cmapplyconf), which is consulted when a package is started or stopped. Modular packages manage volume groups by invoking /etc/cmcluster/scripts/sg/volume_group.sh when the package is started/stopped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 07:41 AM
05-09-2011 07:41 AM
Re: New VG in modular and legacy package
cmapplyconf package config file call the vg script and activate the new VG. Package halt/start is required only for testing the failover.
Please correct if I am wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 07:50 AM
05-09-2011 07:50 AM
Re: New VG in modular and legacy package
One caveat: when you utilize this method, your new VG is not in cluster controlled mode. Next time you halt your package and bring it back up, you will get a boat load of error messages, regarding the activation of this VG followed by not being able to access the LVs it contains.
After you run cmhaltpkg
vgchange -a n
vgchange -c y
then you can start your package as usual.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 07:53 AM
05-09-2011 07:53 AM
Re: New VG in modular and legacy package
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 08:24 AM
05-09-2011 08:24 AM
Re: New VG in modular and legacy package
failover_policy CONFIGURED_NODE
Where, the pkg running node halts/shuts down due to any hardware issues, then package fails over automatically on the configured_node.
Instead of pkg halt/start, you can do node halt, so the pkg will failover to the fail over node, & you can do your testing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2011 01:20 AM
05-10-2011 01:20 AM
Re: New VG in modular and legacy package
...
> One caveat: when you utilize this method, your new VG is not in cluster controlled mode.
...
>vgchange -a n
>vgchange -c y
...
As far as I remember, one can easily add the cluster flag to the vg while the package is online. (that's the "vgchange -c y" command)
After this, you can attach the vg to the package without bringing it offline, but you need to activate it in exclusive mode. (vgchange -a e). That's exactly what the package control script does at startup.
So by doing this, you can avoid those "boat load of error messages" at the next package start.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2011 03:21 AM
05-10-2011 03:21 AM
Re: New VG in modular and legacy package
When cmapplyconf is performed on the package configuration file, the cluster binary is updated with the path the legacy package control script.
The modular package configuration file does not have a package control script specifier because
a) the modular packages uses standard scripts in /etc/cmcluster/scripts/sg (for volume groups, /etc/cmcluster/scripts/sg/volume_group.sh) which already exist on each node in the cluster.
b) the VGs, LVOLs, mount directories and mount options are specified directly in the modular package configuration file.
Starting and stopping the package on each node validates (or invalidates) it's ability to run on that node.