[DRBD-user] Re: Operation not permitted, works with another machine

Matti Paksula matti.paksula at iki.fi
Thu Mar 10 14:09:11 CET 2005


No, nothing.

strace drbdsetup /dev/drbd0 disk /dev/cciss/c0d0p7 internal -1 
--on-io-error=detach

gives (some of it, interesting part):

chdir("/")                              = 0
open("/dev/drbd0", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFBLK|0644, st_rdev=makedev(147, 0), ...}) = 0
ioctl(3, 0x80044400, 0xbffff8d0)        = 0
brk(0)                                  = 0x804eea0
brk(0x804f020)                          = 0x804f020
brk(0x8050000)                          = 0x8050000
open("/etc/mtab", O_RDONLY)             = 4
brk(0x8052000)                          = 0x8052000
fstat64(4, {st_mode=S_IFREG|0644, st_size=297, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40014000
read(4, "/dev/cciss/c0d0p3 / ext3 rw,erro"..., 4096) = 297
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x40014000, 4096)                = 0
open("/proc/mounts", O_RDONLY)          = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40014000
read(4, "rootfs / rootfs rw 0 0\n/dev/root"..., 4096) = 279
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x40014000, 4096)                = 0
open("/dev/cciss/c0d0p7", O_RDWR)       = 4
fstat64(4, {st_mode=S_IFBLK|0777, st_rdev=makedev(104, 7), ...}) = 0
open("/dev/cciss/c0d0p7", O_RDWR)       = 5
fstat64(5, {st_mode=S_IFBLK|0777, st_rdev=makedev(104, 7), ...}) = 0
ioctl(3, 0x40204406, 0xbffff8bc)        = -1 EPERM (Operation not permitted)
write(2, "ioctl(,SET_DISK_CONFIG,) failed:"..., 
33ioctl(,SET_DISK_CONFIG,) failed: ) = 33
write(2, "Operation not permitted\n", 24Operation not permitted
) = 24
close(3)                                = 0
_exit(20)                               = ?




Lars Marowsky-Bree wrote:
> On 2005-03-10T13:09:59, Matti Paksula <matti.paksula at iki.fi> wrote:
> 
> 
>>>root <at> server1:# drbdsetup /dev/drbd0 disk /dev/cciss/c0d0p7 
>>
>>internal -1 --on-io-error=detach
>>
>>ioctl(,SET_DISK_CONFIG,) failed: Operation not permitted
> 
> 
> Anything in the logs there?
> 
> Sincerely,
>     Lars Marowsky-Brée <lmb at suse.de>
> 




More information about the drbd-user mailing list