[DRBD-user] Unable to create drbd disk

Anthony Barlow barlowa at pnp.co.za
Mon Feb 28 12:14:34 CET 2005

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


Hi,

We have configured /etc/drbd.conf and when the drbd startup script is called this is the error that it reports:

/etc/init.d/drbd start
Starting DRBD resources:    can not open /dev/drbd0: No such file or directory
[ d0 can not open /dev/drbd0: No such file or directory
                                                                               
cmd /sbin/drbdsetup /dev/drbd0 disk /dev/sda5 internal -1 --on-io-error=detach failed!

The scripts exit code is 20

This is the output from strace on the drbsetup calls:

execve("/sbin/drbdsetup", ["/sbin/drbdsetup", "/dev/drbd0", "disk", "/dev/sda5", "internal", "-1", "--on-io-error=detach"], [/* 20 vars */]) = 0
uname({sys="Linux", node="spam1p", ...}) = 0
brk(0)                                  = 0x804ea34
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=30755, ...}) = 0
old_mmap(NULL, 30755, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb75e3000
close(3)                                = 0
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000X\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1563240, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75e2000
old_mmap(NULL, 1272460, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb74ab000
old_mmap(0xb75dc000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x130000) = 0xb75dc000
old_mmap(0xb75df000, 10892, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb75df000
close(3)                                = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb75e2740, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb75e3000, 30755)               = 0
chdir("/")                              = 0
open("/dev/drbd0", O_RDONLY)            = -1 ENOENT (No such file or directory)
write(2, "can not open /dev/drbd0: ", 25can not open /dev/drbd0: ) = 25
write(2, "No such file or directory\n", 26No such file or directory
) = 26
exit_group(20)                          = ?

>From the trace it looks like drbsetup is not creating the /dev/drbd0 device.

-----Original Message-----
From: Lars Marowsky-Bree [mailto:lmb at suse.de]
Sent: 28 February 2005 12:27
To: Anthony Barlow
Subject: Re: [DRBD-user] Unable to create drbd disk


On 2005-02-28T11:27:13, Anthony Barlow <barlowa at pnp.co.za> wrote:

> When we try to create a drbd drive/partition with drbdsetup we get the
> following error:
>
> drbdsetup /dev/drbd0 disk /dev/sda5
>  disk lower_dev meta_data_dev meta_data_index [{--size|-d} val]
>          [{--on-io-error|-e} val]
> Not enough arguments.

drbdsetup without any arguments would have shown you the help message you need.

Best would be for you to configure drbd.conf properly and use the drbd start script or drbdadm.


Sincerely,
    Lars Marowsky-Brée <lmb at suse.de>

--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business


Read our disclaimer at: http://www.picknpay.co.za/pnp/view/pnp/en/page5093?
If you don't have web access, the disclaimer can be mailed to you on request.
Disclaimer requests to be sent to it-security at pnp.co.za


!DSPAM:4222f195310281675883036!


Read our disclaimer at: http://www.picknpay.co.za/pnp/view/pnp/en/page5093?
If you don't have web access, the disclaimer can be mailed to you on request.
Disclaimer requests to be sent to it-security at pnp.co.za




More information about the drbd-user mailing list