Operating System - Linux
1829116 Members
2232 Online
109986 Solutions
New Discussion

Re: Linux LVM exclusive mode ServiceGuard

 
SOLVED
Go to solution
Christopher Caldwell
Honored Contributor

Linux LVM exclusive mode ServiceGuard

What are folks doing on Linux w/ServiceGuard since LVM on Linux apparently _doesn't_ support vg activation in exclusive mode (a somewhat dangerous problem).

6 REPLIES 6
melvyn burnard
Honored Contributor
Solution

Re: Linux LVM exclusive mode ServiceGuard

Go take a look at hte manuals at
http://www.docs.hp.com/hpux/ha/index.html#ServiceGuard%20for%20Linux
These explain how to do it.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Karthik S S
Honored Contributor

Re: Linux LVM exclusive mode ServiceGuard

It uses RAID tools to get similar exculsive environement.

Regards,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Krishna Prasad
Trusted Contributor

Re: Linux LVM exclusive mode ServiceGuard

We have only did testing with Red Hat Advanced Server and used the cluster software that came with that. I don't think it is Service Guard for Linux but it does work.
Positive Results requires Positive Thinking
Christopher Caldwell
Honored Contributor

Re: Linux LVM exclusive mode ServiceGuard

So the md facility serves to ensure that the VGs aren't accessible by more than one host at a time?
Karthik S S
Honored Contributor

Re: Linux LVM exclusive mode ServiceGuard

Yeah you are right ...

raidstop / raidstart are the equivalent commands for vgchange ...

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Michael Morris
Occasional Advisor

Re: Linux LVM exclusive mode ServiceGuard

Using the MD driver to lock the disk appears to not work via multipath or raid1 md-modules. I'm curious as to how one uses MD to accomplish this. On one host at a time, my course of actions are:
(two Proliant DL380s fibre-connected to XP128 using Emulex cards)
1) ensure no MD modules are loaded
2) mdadm -A -R /dev/md0 /dev/sdb1 /dev/sdc1 (loads modules and activates md0)
3) vgchange -a y /dev/vgname
4) mount /dev/vgname/lvname /mnt/vgtest
5) while /dev/vgname/lvname is mounted on host-a, run steps 1-4 on host-b

I'm able to successfully do steps 1-4 on each server, and have /dev/vgname/lvname mounted on both servers at the same time. This is not a good thing. Are there any best practices to locking a disk in linux other than telling a person not to do it?