- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Activating VG in systemstart in a ServiceGuard Clu...
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
08-09-2001 04:39 AM
08-09-2001 04:39 AM
Depending on a parameter AUTOSTART_CMCLD in /etc/rc.config.d/cmcluster the packages on a two-node cluster should be started as part of a ServiceGuard cluster or without ServiceGuard.
The difficulty is, that the VGs cannot be activated exclusive (vgchange -a e) without cluster services running and cannot be activated normally (vgchange -a y) when activated for cluster (vgchange -c y).
Once activated for cluster use (vgchange -c y during configration for cluster) the VGs can only be activated via vgchange -a e. But when booting the servers without ServiceGuard cluster services are not available and VGs can only be activated via vgchange -a y, but this is not allowed, because the disks are still activated for cluster use.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 04:49 AM
08-09-2001 04:49 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
You don't need to start your packages just use cmruncl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 05:12 AM
08-09-2001 05:12 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 05:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 05:27 AM
08-09-2001 05:27 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 05:30 AM
08-09-2001 05:30 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
In that case, you could:
Set AUTOSTART_CMCLD=0 in /etc/rc.config.d/cmcluster.
'vgexport' the volume groups in question on the node where they will *not* exist/be used.
(For safety, physically disconnect the connections on the node that will not be using these volume groups so that there is no possibility of access).
On the node that you want to activate the volume groups:
# vgchange -c n /dev/vgXX
Then proceed to active the volume group as needed.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 05:47 AM
08-09-2001 05:47 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
When and where do I have to active VGs for cluster use in system startup??
Remember, the only manual interaction is editing the parameter AUTOSTART_CMCLD in /etc/rc.config.d/cmcluster.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 05:53 AM
08-09-2001 05:53 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
See: /etc/lvmrc
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 05:59 AM
08-09-2001 05:59 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
in /etc/lvmrc the VGs are activated via vgchange -a y, but I need to activate them for cluster use via vgchange -c y and for that the cluster services have to run. In system boot they are started nearly at the end, long after activating vg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 06:05 AM
08-09-2001 06:05 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
Is this a "cake-and-eat-it-too" situation? If you want cluster activation then you need to run cluster services and let it be done there.
I presumed from your original comments that the absence of 100% of your hardware was a temporary situtation that you were attempting to remedy.
Is this *not* the case?
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 06:20 AM
08-09-2001 06:20 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 06:23 AM
08-09-2001 06:23 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
Let me explain this "special" situation.
We have a two-node ServiceGuard cluster. In case of a hardware failure followed by a server reboot of both servers the cluster won't start. Our customer doesn't want a single node cluster, but needs the application started with minimum manual interference. So we copied the package control scripts and modified them. Depending on the parameter AUTOSTART_CMCLD the server boots with the cluster starting the application (AUTOSTART_CMCLD = 1) or starting the application with the modified package control script.
The change from cluster to single node is working fine.
But after repair of the hardware, the change back to cluster is the difficulty. How can I activate the Volume groups during system boot, after the cluster has been enabled via editing /etc/rc.config.d/cmcluster AUTOSTART_CMCLD = 1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 06:55 AM
08-09-2001 06:55 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
I don't think this is feasible. To me, this sounds like you are attempting to defeat the controls on volume groups that MC/ServiceGuard offers to prevent catastrophic dual access.
If the "customer doesn't want a single node cluster, but needs the application started with minimum manual interference" then what is the purpose of a two-node cluster in the first place?
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 07:10 AM
08-09-2001 07:10 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
It sounds weired to me too, but he's the customer and he's got the money.
I would always use cluster tools, even in the case of a hardware failure. I tried to change his mind, but wasn't successfull. So what?
What about activating the volume groups for cluster use in the package control script and deactivating in the modified script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 07:15 AM
08-09-2001 07:15 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
It appears to me after reading all the postings that you need to rethink your hardware configuration. There should never be a hardware failure that requires a reboot of both nodes in a cluster. If there is then the configuration is not robust enough. The only time that I've seen this to be a problem was when someone 'saved' money and did not purchase in-line SCSI terminators. The other gotcha that will kill a two-node cluster after a reboot of both is failure of the lock disk -- but again in this case both nodes should have not been shutdown.
I think you need to take a fresh look at the problem from the standpoint of always having at least one node running and with the cluster always up and with no single failure being able to harm anything.
If the customer's method of fixing any problem is to reboot everything then I don't think that is a very realistic SG model.
My 2 cents, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 07:19 AM
08-09-2001 07:19 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
I think at this point I would respectfully suggest to the customer that he/she bear with you while you provide a little technical education! There's never a free lunch :-)
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 07:34 AM
08-09-2001 07:34 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
One method I've found to be very convincing to even the most hard-nosed skeptic is to invite the guy/gal to the data-center and tell them you can break/cut/disconnect/remove any ONE thing and let's see what happens. If you've done your job well (and this is an excellent test), the package/cluster handles this well.
Of course, you are next asked : "Well, what if TWO things break?". You then tell him/her that the price of that goes up approximately as the square of the number of tolerated failures.
I've never has this little demonstration to fail me yet. Of course, long before I let anyone try to crash the cluster I've already done my most devious.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 07:42 AM
08-09-2001 07:42 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
One more thought: There are failure scenarious where you can observe that cluster services will not start until AUTO_START_TIMEOUT (usually 10-minutes) has expired. During this period, neither 'cmruncl' nor 'cmrunnode' will work.
Perhaps this too is useful.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2001 09:10 AM
08-09-2001 09:10 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
When you tried to re-enable the cluster, did you ensure that the package volume groups are prevented from being activated at system boot time by the /etc/lvmrc file? You need to set AUGO_VG_ACTIVATE to 0, then include all the volume groups that are not cluster bound in the custom_vg_activation function. (note: the root volume group does not need to be included in the custom_vg_activation function).
Mladen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2001 12:24 AM
08-10-2001 12:24 AM
Re: Activating VG in systemstart in a ServiceGuard Cluster without Cluster software started
thanks for your support. I foung a solution now.
Kill the customer - just a joke?!
In the package control script I enable the volume groups via vgchange -c y before activating them in exlusive mode. In the modified control script I disable the volume groups via vgchange -c n before activating in normal mode vgchange -a y. The modified control script is started during system boot after cluster activation and is checking the parameter AUTOSTART_CMCLD in /etc/rc.config.d/cmcluster. The volume groups are not automatically activated in /etc/lvmrc.
It's working fine.
To Clay.
We had the customer in our data center an showed him all the scenarios for switching. Everything worked fine. But he replied, that they have a bad network and a bad power supply. The whole network often goes down for a few moments and he doesn't want the cluster to restart the packages because of that. Also the power supply is weak. His problem with that is, what happens if some redundant hardware fails and the two servers reboot because of a power failure.
I know that it's not a good thing to handle network and power problems by server software, but it's the customer who wants me to do that.
Again, thank's a lot for your help.
Regards Andreas