Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Leroy van Logchem wrote:
> Steven wrote:
>> Hi,
>>
>> I have LVM2 on top of DRBD and it seem to work fine(with the proper
>> LVM device filters: ), this is a file server.
>> I use it with with Xen, so I do NOT have the haresource configure to
>> mount any LV as these are brought up by Xen.
>>
>> The problem is that when a host is brought down the hot standby is
>> brought on-line BUT the vgchange command is NOT issued at the right
>> time or not at all:
>> *Secondary node*
>> [root at deimos lvm]# lvscan
>> inactive '/dev/DATA/VSI' [1.00 GB] inherit
>> inactive '/dev/DATA/IMG' [10.00 GB] inherit
>>
> Try adding this just after the drbddisk:: in haresources and before
> the mounting of filesystems.
>
> #!/bin/sh
> #
> # Startup script for Logical Volume Management
> # Arthur van Rooij @ WL|Delft Hydraulics july 2007
> #
> ##
>
> start()
> {
> echo "Setting up Logical Volume Management"
> /sbin/vgscan
> /sbin/vgchange -a y
> sleep 5
> }
>
> stop()
> {
> echo "Stopping Logical Volume Management"
> /sbin/vgchange -a n
> }
>
> # See how we were called.
>
>
> case "$1" in
> start)
> start
> ;;
>
> stop)
> stop
> ;;
>
> restart)
> stop
> sleep 2
> start
> ;;
> *)
> echo "usage: $0 {start|stop|restart}"
> exit 1
> ;;
> esac
>
>
Thanks a lot, that solved my issue perfectly the first shot.
Regards,
--
Virtual Space International Inc.
Steven Dugway USA 206-734-HOST Canada 514-939-HOST (4678) ext 5
Skype:stevenvsi; savetimehosting.net 911hosting.net goodprivacy.net
Spam is not allowed: AUP http://www.virtualspaceintl.net/acceptable_use.html
--------------------------------------------------------------
Internet Is Here To Stay, Make Sure Your Business Is!
--------------------------------------------------------------