[DRBD-user] Device is held open by someone

Felipe Gutierrez felipe.o.gutierrez at gmail.com
Fri Mar 1 12:37:11 CET 2013

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi Helmut, first of all, thanks for your reply!

I was looking for how to work with ocf:heartbeat:Xen tag on pacemaker. Let
me ask some questions.

1 - It is possible to add ocf:heartbeat:Xen to may configuration and keep
using LVM on DRBD?

2 - I never worked with RAID. Should I modificate my configuration at some
points for this or can I remain with out RAID?

3 - You put /etc/xen/mail4.cfg file on etc/xen directory. What is gonna
happen with the primary became out of the network and the secondary will
look for cfg file to restore the VM?
Let me explain how I am doing it. At my configuration, a Java program on
secondary machine is looking for prinmary machine. If the primary fall
down, the Java program change DRBD to primary, mount the /dev/drbd7 and
restore a chekpoint that is there. I have to put the files of Xen on the
DRBD partition (.img, .iso, .chekpoint, .cfg).

if you need more information, ask please :) I am a student on Computer
Science and I am working with a professor on this area. So I am quite new
on it.

Thanks
Felipe

On Thu, Feb 28, 2013 at 10:24 AM, Helmut Wollmersdorfer <
helmut.wollmersdorfer at fixpunkt.de> wrote:

>
>
> Am 26.02.2013 um 22:57 schrieb Felipe Gutierrez:
>
>
> Talking about stonith/fencing I was working with
> Corosync+Pacemaker+Xen+DRBD but the pace maker configurations got failed
> when I put all components together. I mean, when I was with
> Corosync+Pacemaker+DRBD the fencing worked well! After I put Xen together
> the pacemaker configuration got failed.
>
>
> Heartbeat+Pacemaker+Xen+DRBD on Debian 6 "Squeeze" works stable here. All
> installed packages are stock-Debian from stable.
>
> The device stack:
>
> - RAID10
> - LVM-PV
> - LVM-LV for *each* device of the Xen-Guests (i.e. root and swap)
> - each LV is a DRBD-device
> - each DRBD-device is mapped to a Xen xvda
>
> from # cat /etc/xen/mail4.cfg:
>
> #
> #  Physical volumes
> #
> root        = '/dev/xvda2 ro'
> disk        = [
>                   'phy:/dev/drbd15,xvda2,w',
>                   'phy:/dev/drbd16,xvda1,w',
>               ]
>
>
> root at xen10:/etc/drbd.d# grep -ri  drbd15 /etc/drbd.d/
> /etc/drbd.d/drbd8_1.res:  device /dev/drbd15;
>
>
> from # cat /etc/drbd.d/drbd8_1.res
>
> resource drbd8_1 {
>   meta-disk internal;
>   device /dev/drbd15;
>
>   on xen10 {
>     disk /dev/vg1/lv_drbd8_1;
>     address 10.10.10.10:7802;
>   }
>   on xen11 {
>     disk /dev/vg1/lv_drbd8_1;
>     address 10.10.10.11:7802;
>   }
>   net {
>     #allow-two-primaries;
>   }
>   startup {
>     #become-primary-on both;
>   }
> }
>
> relevant parts from root at xen10:/etc/drbd.d# crm configure show
> node $id="..." xen11
> node $id="..." xen10
>
> primitive xen_drbd8_1 ocf:linbit:drbd \
> params drbd_resource="drbd8_1" \
> op monitor interval="15s" \
> op start interval="0" timeout="240s" \
> op stop interval="0" timeout="100s"
> primitive xen_drbd8_2 ocf:linbit:drbd \
> params drbd_resource="drbd8_2" \
> op monitor interval="15s" \
> op start interval="0" timeout="240s" \
> op stop interval="0" timeout="100s"
>
> primitive xen_mail4 ocf:heartbeat:Xen \
> params xmfile="/etc/xen/mail4.cfg" \
> op monitor interval="3s" timeout="30s" \
> op start interval="0" timeout="60s" \
> op stop interval="0" timeout="40s" \
> meta target-role="Started" allow-migrate="false"
>
> group group_drbd8 xen_drbd8_1 xen_drbd8_2
>
> ms DrbdClone8 group_drbd8 \
> meta master_max="1" master-mode-max="1" clone-max="2" clone-node-max="1"
> notify="true"
>
> location cli-prefer-xen_mail4 xen_mail4 \
> rule $id="cli-prefer-rule-xen_mail4" inf: #uname eq xen11
>
> colocation xen_mail4_and_drbd inf: xen_mail4 DrbdClone8:Master
>
> order xen_mail4_after_drbd inf: DrbdClone8:promote xen_mail4:start
>
> property $id="cib-bootstrap-options" \
> dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \
> cluster-infrastructure="Heartbeat" \
> stonith-enabled="false" \
> no-quorum-policy="ignore" \
> last-lrm-refresh="1357656884" \
> maintenance-mode="false"
> rsc_defaults $id="rsc-options" \
> resource-stickiness="100"
>
>
> HTH (Hope That Helps)
>
> Helmut Wollmersdorfer
>
>
>
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
>


-- 
*--
-- Felipe Oliveira Gutierrez
-- Felipe.o.Gutierrez at gmail.com
-- https://sites.google.com/site/lipe82/Home/diaadia*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20130301/8934d526/attachment.htm>


More information about the drbd-user mailing list