[DRBD-user] fdisk /dev/drbd1 -> Unable to open /dev/drbd1

Rafał Kupka rkupka+Listy.Drbd at pronet.com.pl
Tue Dec 18 12:28:44 CET 2007

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


On Tue, Dec 18, 2007 at 12:10:40PM +0100, Tomasz Chmielewski wrote:
Hello,

> Do I understand DRBD not correctly?
> 
> With it, one can create a RAID-1-like array on remote machines.
> 
> So with this config file:
> 
> global { usage-count yes; }
> common { syncer { rate 10M; } }
> resource r0 {
>     protocol C;
>     net {
>         cram-hmac-alg sha1;
>         shared-secret "FooFunFactory";
>     }
>     on san2 {
>         device    /dev/drbd1;
>         disk      /dev/mapper/san2-swap_1;
>         address   192.168.111.46:7789;
>         meta-disk  internal;
>     }
>     on laptok {
>         device    /dev/drbd1;
>         disk      /dev/sda5;
>         address   192.168.111.48:7789;
>         meta-disk  internal;
>     }
> }
> 
> 
> I should create a filesystem on /dev/drbd1, as "disk" contains some drbd 
> metadata, right?

Right.

> Unfortunately, it fails:
> 
> # fdisk /dev/drbd1
> 
> Unable to open /dev/drbd1
 
> What am I doing wrong?

Make sure that resource r0 is in primary state on that node.

Regards,
Kupson
-- 
Great software without the knowledge to run it is pretty useless.
(Linux Gazette #1)



More information about the drbd-user mailing list