Thanks for your reply Lars,

I got it all set up now.. I actually tried the first version once
earlier,, without using the allocate function as I read somewhere that
I shouldn't (need) to use it, so I didn't :)  Thanks for pointing out
I shouldn't use html formatting.. Will try to remember that in the
future

Kind regards
/Fredrik

On Thu, Mar 28, 2013 at 4:43 PM, Lars Marowsky-Bree <[email protected]> wrote:
>
> On 2013-03-28T10:52:22, Fredrik Hudner <[email protected]> wrote:
>
> > > So when you say, map the same 1 to 3 block devices my approach should
> > > be
> > > correct ?
> >     1/ add 1 block device on each of the 3 nodes, e.g /dev/sdd, /dev/sde
> > and /dev/sdf
>
> I'm not sure what you mean by this. Yes, on each of the three physical
> nodes, you need to add the same block devices.
>
> "same" meaning that they all need to be shared across the physical
> nodes, which typically requires some SAN or iSCSI. If you have iSCSI, it
> may be easier to run the iSCSI initiator directly in the VM.
>
> >     2/ map each block device to the other VM's
>
> Yes, you need to make these block devices available to all the VMs.
>
> >     When I run *# sbd -d /dev/sdd list *(same for all devices) it only
> > comes back with all the options I can use.
>
> That's not surprising. You need to call "create" first to initialize the
> metadata. Otherwise, sbd thinks you're pointing it at a wrong device and
> shows you the help ;-)
>
> (Admittedly, that isn't always useful, so I've cleaned that up now.)
>
> >     I then run *# sbd -d /dev/sde allocate <nodename>* for each device
> > and
> > I can see e.g
> >     on testclu01 (node1)
> >     *# sbd -d /dev/sde list
> > *
> > *    0     testclu02       test     testclu01*
> >     *but on /dev/sdd
> >     # sbd -d /dev/sdd list
> >     0     testclu01       clear*
> >     *# sbd -d /dev/sdf list*
> >     (empty)
> >
> >     on testclu03 (node3):
> >     *# sbd -d /dev/sde list*
> >     *0     testclu01       clear
> >     # sbd -d /dev/sdf list
> >     **0     testclu02       test     testclu01*
> >     *# sbd -d /dev/sdd list
> >     *(empty)*
>
> This doesn't make a lot of sense. If you've run "allocate" on all
> devices for a given node, all the other nodes should see the same slot
> per device.
>
> But you're seeing one node on the first two devices, none on
> the third; and it seems you've actually done more than you described,
> namely sending a test message ;-)
>
> Try doing it in one step:
>
> sbd -d /dev/sde -d /dev/sdf -d /dev/sdd create
> sbd -d /dev/sde -d /dev/sdf -d /dev/sdd allocate
>
> It is also quite helpful if devices have the same name on all nodes; you
> may find using /dev/disk/by-id/ convenient for this use case. It cuts
> down on confusion.
>
> Oh, and it is easier to read your mails and pastes if you don't use
> HTML mail but standard mail formatting, indentation, and quoting.
> Thanks!
>
>
> Mit freundlichen Grüßen,
>     Lars
>
> --
> Architect Storage/HA
> SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix
> Imendörffer, HRB 21284 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems




--
Fredrik Hudner
Grosse Pfahlstr 12
30161 Hannover
Germany

Tel: 0511-642 09 548
Mob: 0173-254 39 29
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to