[DRBD-user] ocfs2 over drbd

Carlos Xavier cbastos at connection.com.br
Tue Dec 11 12:56:12 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.


Hi.
second the ocfs2 documentation this file start the ocfs2 heartbeat when you 
call mount:
/sbin/ocfs2_hb_ctl

I issued the  mount command with a strace and we can see the heartbeat 
trying to start.



root at apolo1:~# mount -t ocfs2 /dev/drbd0 /clusterdisk

mount.ocfs2: Invalid argument while mounting /dev/drbd0 on /clusterdisk. 
Check 'dmesg' for more information on this error.



root at apolo1:~# strace -ff mount -t ocfs2 /dev/drbd0 /clusterdisk

execve("/sbin/mount", ["mount", "-t", "ocfs2", "/dev/drbd0", 
"/clusterdisk"], [/* 33 vars */]) = 0

brk(0)                                  = 0x8058000

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f90000

access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or 
directory)

open("/etc/ld.so.cache", O_RDONLY)      = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=88580, ...}) = 0

mmap2(NULL, 88580, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f7a000

close(3)                                = 0

open("/lib/libblkid.so.1", 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\0P\35\0\000"..., 512) 
= 512

fstat64(3, {st_mode=S_IFREG|0755, st_size=28712, ...}) = 0

mmap2(NULL, 31340, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb7f72000

mmap2(0xb7f79000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7f79000

close(3)                                = 0

open("/lib/libuuid.so.1", 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\0\320\t\0"..., 512) = 
512

fstat64(3, {st_mode=S_IFREG|0755, st_size=8844, ...}) = 0

mmap2(NULL, 11436, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb7f6f000

mmap2(0xb7f71000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7f71000

close(3)                                = 0

open("/lib/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\0 at _\1\000"..., 512) = 
512

fstat64(3, {st_mode=S_IFREG|0755, st_size=1528742, ...}) = 0

mmap2(NULL, 1316260, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb7e2d000

mmap2(0xb7f69000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13c) = 0xb7f69000

mmap2(0xb7f6c000, 9636, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f6c000

close(3)                                = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7e2c000

set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e2c8d0, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0

mprotect(0xb7f69000, 4096, PROT_READ)   = 0

munmap(0xb7f7a000, 88580)               = 0

open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No 
such file or directory)

brk(0)                                  = 0x8058000

brk(0x8079000)                          = 0x8079000

open("/usr/share/locale/locale.alias", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f8f000

read(3, "# Locale name alias data base.\n#"..., 4096) = 2586

read(3, "", 4096)                       = 0

close(3)                                = 0

munmap(0xb7f8f000, 4096)                = 0

open("/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=378, ...}) = 0

mmap2(NULL, 378, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8f000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_MEASUREMENT", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=28, ...}) = 0

mmap2(NULL, 28, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8e000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_TELEPHONE", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0

mmap2(NULL, 64, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8d000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_ADDRESS", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=160, ...}) = 0

mmap2(NULL, 160, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8c000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_NAME", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=82, ...}) = 0

mmap2(NULL, 82, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8b000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_PAPER", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=39, ...}) = 0

mmap2(NULL, 39, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8a000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_MESSAGES", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFDIR|0755, st_size=28, ...}) = 0

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0

mmap2(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f89000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_MONETARY", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=291, ...}) = 0

mmap2(NULL, 291, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f88000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_TIME", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=2459, ...}) = 0

mmap2(NULL, 2459, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f87000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_NUMERIC", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0

mmap2(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f86000

close(3)                                = 0

open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=207720, ...}) = 0

mmap2(NULL, 207720, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7df9000

close(3)                                = 0

umask(022)                              = 022

open("/dev/null", O_RDWR|O_LARGEFILE)   = 3

close(3)                                = 0

getuid32()                              = 0

geteuid32()                             = 0

getgid32()                              = 0

getegid32()                             = 0

prctl(0x3, 0, 0, 0, 0)                  = 1

open("/etc/blkid.tab", O_RDONLY)        = 3

fstat64(3, {st_mode=S_IFREG|0644, st_size=1101, ...}) = 0

fcntl64(3, F_GETFL)                     = 0 (flags O_RDONLY)

fstat64(3, {st_mode=S_IFREG|0644, st_size=1101, ...}) = 0

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb7f85000

_llseek(3, 0, [0], SEEK_CUR)            = 0

read(3, "<device DEVNO=\"0x0300\" TIME=\"119"..., 4096) = 1101

read(3, "", 4096)                       = 0

close(3)                                = 0

munmap(0xb7f85000, 4096)                = 0

getuid32()                              = 0

geteuid32()                             = 0

lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=235, ...}) = 0

stat64("/sbin/mount.ocfs2", {st_mode=S_IFREG|0755, st_size=44040, ...}) = 0

clone(Process 3899 attached

child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0xb7e2c918) = 3899

[pid  3898] wait4(-1, Process 3898 suspended

 <unfinished ...>

[pid  3899] getuid32()                  = 0

[pid  3899] setuid32(0)                 = 0

[pid  3899] getgid32()                  = 0

[pid  3899] setgid32(0)                 = 0

[pid  3899] execve("/sbin/mount.ocfs2", ["/sbin/mount.ocfs2", "/dev/drbd0", 
"/clusterdisk", "-o", "rw"], [/* 29 vars */]) = 0

[pid  3899] brk(0)                      = 0x8054000

[pid  3899] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fdc000

[pid  3899] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or 
directory)

[pid  3899] open("/etc/ld.so.cache", O_RDONLY) = 3

[pid  3899] fstat64(3, {st_mode=S_IFREG|0644, st_size=88580, ...}) = 0

[pid  3899] mmap2(NULL, 88580, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fc6000

[pid  3899] close(3)                    = 0

[pid  3899] open("/usr/lib/libcom_err.so.3", O_RDONLY) = 3

[pid  3899] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\v\0"..., 512) = 512

[pid  3899] fstat64(3, {st_mode=S_IFREG|0644, st_size=42942, ...}) = 0

[pid  3899] mmap2(NULL, 14188, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7fc2000

[pid  3899] mmap2(0xb7fc5000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7fc5000

[pid  3899] close(3)                    = 0

[pid  3899] open("/lib/libc.so.6", O_RDONLY) = 3

[pid  3899] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 at _\1\000"..., 512) = 512

[pid  3899] fstat64(3, {st_mode=S_IFREG|0755, st_size=1528742, ...}) = 0

[pid  3899] mmap2(NULL, 1316260, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e80000

[pid  3899] mmap2(0xb7fbc000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13c) = 0xb7fbc000

[pid  3899] mmap2(0xb7fbf000, 9636, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fbf000

[pid  3899] close(3)                    = 0

[pid  3899] open("/usr/lib/tls/i686/sse2/libkrb5support.so.0", O_RDONLY) 
= -1 ENOENT (No such file or directory)

[pid  3899] stat64("/usr/lib/tls/i686/sse2", 0xbf8de5d8) = -1 ENOENT (No 
such file or directory)

[pid  3899] open("/usr/lib/tls/i686/libkrb5support.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)

[pid  3899] stat64("/usr/lib/tls/i686", 0xbf8de5d8) = -1 ENOENT (No such 
file or directory)

[pid  3899] open("/usr/lib/tls/sse2/libkrb5support.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)

[pid  3899] stat64("/usr/lib/tls/sse2", 0xbf8de5d8) = -1 ENOENT (No such 
file or directory)

[pid  3899] open("/usr/lib/tls/libkrb5support.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)

[pid  3899] stat64("/usr/lib/tls", 0xbf8de5d8) = -1 ENOENT (No such file or 
directory)

[pid  3899] open("/usr/lib/i686/sse2/libkrb5support.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)

[pid  3899] stat64("/usr/lib/i686/sse2", 0xbf8de5d8) = -1 ENOENT (No such 
file or directory)

[pid  3899] open("/usr/lib/i686/libkrb5support.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)

[pid  3899] stat64("/usr/lib/i686", 0xbf8de5d8) = -1 ENOENT (No such file or 
directory)

[pid  3899] open("/usr/lib/sse2/libkrb5support.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)

[pid  3899] stat64("/usr/lib/sse2", 0xbf8de5d8) = -1 ENOENT (No such file or 
directory)

[pid  3899] open("/usr/lib/libkrb5support.so.0", O_RDONLY) = 3

[pid  3899] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 
\n\0\000"..., 512) = 512

[pid  3899] fstat64(3, {st_mode=S_IFREG|0644, st_size=41566, ...}) = 0

[pid  3899] mmap2(NULL, 8832, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e7d000

[pid  3899] mmap2(0xb7e7f000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7e7f000

[pid  3899] close(3)                    = 0

[pid  3899] open("/usr/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)

[pid  3899] open("/lib/libresolv.so.2", O_RDONLY) = 3

[pid  3899] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`!\0\000"..., 512) = 512

[pid  3899] fstat64(3, {st_mode=S_IFREG|0755, st_size=77439, ...}) = 0

[pid  3899] mmap2(NULL, 75976, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e6a000

[pid  3899] mmap2(0xb7e79000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7e79000

[pid  3899] mmap2(0xb7e7b000, 6344, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e7b000

[pid  3899] close(3)                    = 0

[pid  3899] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e69000

[pid  3899] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e68000

[pid  3899] set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e686c0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0

[pid  3899] mprotect(0xb7fbc000, 4096, PROT_READ) = 0

[pid  3899] munmap(0xb7fc6000, 88580)   = 0

[pid  3899] brk(0)                      = 0x8054000

[pid  3899] brk(0x8075000)              = 0x8075000

[pid  3899] rt_sigaction(SIGTERM, {0x804a930, [TERM], SA_RESTART}, 
{SIG_DFL}, 8) = 0

[pid  3899] rt_sigaction(SIGINT, {0x804a930, [INT], SA_RESTART}, {SIG_DFL}, 
8) = 0

[pid  3899] open("/dev/drbd0", O_RDONLY|O_DIRECT|O_LARGEFILE) = 3

[pid  3899] pread64(3, "\2\2\2\2\2\2\2\2this is an ocfs2 volume\0"..., 512, 
0) = 512

[pid  3899] pread64(3, "\2\2\2\2\2\2\2\2this is an ocfs2 volume\0"..., 512, 
0) = 512

[pid  3899] pread64(3, 
"\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2"..., 512, 1024) = 
512

[pid  3899] pread64(3, 
"\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2"..., 1024, 2048) = 
1024

[pid  3899] pread64(3, 
"\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2"..., 2048, 4096) = 
2048

[pid  3899] pread64(3, 
"OCFSV2\0\0B|\21^\377\377\377\377\0\0\0\0\263\236o\0\0\0"..., 4096, 8192) = 
4096

[pid  3899] close(3)                    = 0

[pid  3899] open("/sys/o2cb/interface_revision", O_RDONLY) = 3

[pid  3899] read(3, "5\n", 15)          = 2

[pid  3899] read(3, "", 13)             = 0

[pid  3899] close(3)                    = 0

[pid  3899] stat64("/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, 
...}) = 0

[pid  3899] statfs64("/sys/kernel/config", 84, {f_type=0x62656570, 
f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, 
f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0

[pid  3899] open("/proc/sys/fs/ocfs2/nm/hb_ctl_path", O_RDONLY) = 3

[pid  3899] read(3, "/sbin/ocfs2_hb_ctl\n", 4096) = 19

[pid  3899] read(3, "", 4077)           = 0

[pid  3899] close(3)                    = 0

[pid  3899] rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0

[pid  3899] access("/sbin/ocfs2_hb_ctl", X_OK) = 0

[pid  3899] clone(Process 3900 attached

child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0xb7e68708) = 3900

[pid  3899] waitpid(3900, Process 3899 suspended

 <unfinished ...>

[pid  3900] execve("/sbin/ocfs2_hb_ctl", ["/sbin/ocfs2_hb_ctl", "-S", "-d", 
"/dev/drbd0"], [/* 29 vars */]) = 0

[pid  3900] brk(0)                      = 0x8052000

[pid  3900] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8b000

[pid  3900] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or 
directory)

[pid  3900] open("/etc/ld.so.cache", O_RDONLY) = 3

[pid  3900] fstat64(3, {st_mode=S_IFREG|0644, st_size=88580, ...}) = 0

[pid  3900] mmap2(NULL, 88580, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f75000

[pid  3900] close(3)                    = 0

[pid  3900] open("/usr/lib/libcom_err.so.3", O_RDONLY) = 3

[pid  3900] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\v\0"..., 512) = 512

[pid  3900] fstat64(3, {st_mode=S_IFREG|0644, st_size=42942, ...}) = 0

[pid  3900] mmap2(NULL, 14188, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f71000

[pid  3900] mmap2(0xb7f74000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7f74000

[pid  3900] close(3)                    = 0

[pid  3900] open("/lib/libc.so.6", O_RDONLY) = 3

[pid  3900] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 at _\1\000"..., 512) = 512

[pid  3900] fstat64(3, {st_mode=S_IFREG|0755, st_size=1528742, ...}) = 0

[pid  3900] mmap2(NULL, 1316260, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e2f000

[pid  3900] mmap2(0xb7f6b000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13c) = 0xb7f6b000

[pid  3900] mmap2(0xb7f6e000, 9636, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f6e000

[pid  3900] close(3)                    = 0

[pid  3900] open("/usr/lib/tls/i686/sse2/libkrb5support.so.0", O_RDONLY) 
= -1 ENOENT (No such file or directory)

[pid  3900] stat64("/usr/lib/tls/i686/sse2", 0xbfee1be8) = -1 ENOENT (No 
such file or directory)

[pid  3900] open("/usr/lib/tls/i686/libkrb5support.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)

[pid  3900] stat64("/usr/lib/tls/i686", 0xbfee1be8) = -1 ENOENT (No such 
file or directory)

[pid  3900] open("/usr/lib/tls/sse2/libkrb5support.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)

[pid  3900] stat64("/usr/lib/tls/sse2", 0xbfee1be8) = -1 ENOENT (No such 
file or directory)

[pid  3900] open("/usr/lib/tls/libkrb5support.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)

[pid  3900] stat64("/usr/lib/tls", 0xbfee1be8) = -1 ENOENT (No such file or 
directory)

[pid  3900] open("/usr/lib/i686/sse2/libkrb5support.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)

[pid  3900] stat64("/usr/lib/i686/sse2", 0xbfee1be8) = -1 ENOENT (No such 
file or directory)

[pid  3900] open("/usr/lib/i686/libkrb5support.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)

[pid  3900] stat64("/usr/lib/i686", 0xbfee1be8) = -1 ENOENT (No such file or 
directory)

[pid  3900] open("/usr/lib/sse2/libkrb5support.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)

[pid  3900] stat64("/usr/lib/sse2", 0xbfee1be8) = -1 ENOENT (No such file or 
directory)

[pid  3900] open("/usr/lib/libkrb5support.so.0", O_RDONLY) = 3

[pid  3900] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 
\n\0\000"..., 512) = 512

[pid  3900] fstat64(3, {st_mode=S_IFREG|0644, st_size=41566, ...}) = 0

[pid  3900] mmap2(NULL, 8832, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e2c000

[pid  3900] mmap2(0xb7e2e000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7e2e000

[pid  3900] close(3)                    = 0

[pid  3900] open("/usr/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)

[pid  3900] open("/lib/libresolv.so.2", O_RDONLY) = 3

[pid  3900] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`!\0\000"..., 512) = 512

[pid  3900] fstat64(3, {st_mode=S_IFREG|0755, st_size=77439, ...}) = 0

[pid  3900] mmap2(NULL, 75976, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e19000

[pid  3900] mmap2(0xb7e28000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7e28000

[pid  3900] mmap2(0xb7e2a000, 6344, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e2a000

[pid  3900] close(3)                    = 0

[pid  3900] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e18000

[pid  3900] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e17000

[pid  3900] set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e176c0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0

[pid  3900] mprotect(0xb7f6b000, 4096, PROT_READ) = 0

[pid  3900] munmap(0xb7f75000, 88580)   = 0

[pid  3900] brk(0)                      = 0x8052000

[pid  3900] brk(0x8073000)              = 0x8073000

[pid  3900] open("/sys/o2cb/interface_revision", O_RDONLY) = 3

[pid  3900] read(3, "5\n", 15)          = 2

[pid  3900] read(3, "", 13)             = 0

[pid  3900] close(3)                    = 0

[pid  3900] stat64("/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, 
...}) = 0

[pid  3900] statfs64("/sys/kernel/config", 84, {f_type=0x62656570, 
f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, 
f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0

[pid  3900] open("/dev/drbd0", O_RDONLY|O_DIRECT|O_LARGEFILE) = 3

[pid  3900] pread64(3, "\2\2\2\2\2\2\2\2this is an ocfs2 volume\0"..., 512, 
0) = 512

[pid  3900] pread64(3, "\2\2\2\2\2\2\2\2this is an ocfs2 volume\0"..., 512, 
0) = 512

[pid  3900] pread64(3, 
"\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2"..., 512, 1024) = 
512

[pid  3900] pread64(3, 
"\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2"..., 1024, 2048) = 
1024

[pid  3900] pread64(3, 
"\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2"..., 2048, 4096) = 
2048

[pid  3900] pread64(3, 
"OCFSV2\0\0B|\21^\377\377\377\377\0\0\0\0\263\236o\0\0\0"..., 4096, 8192) = 
4096

[pid  3900] open("/dev/drbd0", O_RDONLY|O_LARGEFILE) = 4

[pid  3900] ioctl(4, BLKSSZGET, 0xbfee2460) = 0

[pid  3900] close(4)                    = 0

[pid  3900] pread64(3, 
"INODE01\0B|\21^\377\377\2\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0"..., 4096, 73728) = 
4096

[pid  3900] pread64(3, 
"INODE01\0B|\21^\377\377\2\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0"..., 4096, 73728) = 
4096

[pid  3900] pread64(3, 
"\22\0\0\0\0\0\0\0\20\0\1\2.\0\0\0\22\0\0\0\0\0\0\0\20\0"..., 4096, 950272) 
= 4096

[pid  3900] pread64(3, "INODE01\0B|\21^\377\377\6\0\0\0\0\0 
\0\0\0\0\0\0\0\0\0"..., 4096, 90112) = 4096

[pid  3900] close(3)                    = 0

[pid  3900] rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0

[pid  3900] semget(0xbb390e5a, 2, IPC_CREAT|0) = 65536

[pid  3900] semop(65536, 0xbfee120c, 2) = 0

[pid  3900] open("/sys/kernel/config/cluster", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3

[pid  3900] fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0

[pid  3900] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0

[pid  3900] getdents(3, /* 3 entries */, 4096) = 52

[pid  3900] getdents(3, /* 0 entries */, 4096) = 0

[pid  3900] close(3)                    = 0

[pid  3900] 
mkdir("/sys/kernel/config/cluster/cldisk/heartbeat/B6DE7123640A47FFA77A6C5F33A9302A", 
0755) = 0

[pid  3900] 
open("/sys/kernel/config/cluster/cldisk/heartbeat/B6DE7123640A47FFA77A6C5F33A9302A/block_bytes", 
O_WRONLY) = 3

[pid  3900] write(3, "512", 3)          = 3

[pid  3900] close(3)                    = 0

[pid  3900] 
open("/sys/kernel/config/cluster/cldisk/heartbeat/B6DE7123640A47FFA77A6C5F33A9302A/start_block", 
O_WRONLY) = 3

[pid  3900] write(3, "1920", 4)         = 4

[pid  3900] close(3)                    = 0

[pid  3900] 
open("/sys/kernel/config/cluster/cldisk/heartbeat/B6DE7123640A47FFA77A6C5F33A9302A/blocks", 
O_WRONLY) = 3

[pid  3900] write(3, "255", 3)          = 3

[pid  3900] close(3)                    = 0

[pid  3900] open("/dev/drbd0", O_RDWR|O_LARGEFILE) = 3

[pid  3900] 
open("/sys/kernel/config/cluster/cldisk/heartbeat/B6DE7123640A47FFA77A6C5F33A9302A/dev", 
O_WRONLY) = 4

[pid  3900] write(4, "3", 1)            = 1

[pid  3900] close(4)                    = 0

[pid  3900] close(3)                    = 0

[pid  3900] semop(65536, 0xbfee121e, 1) = 0

[pid  3900] semop(65536, 0xbfee121e, 1) = 0

[pid  3900] rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 
0

[pid  3900] exit_group(0)               = ?

Process 3899 resumed

Process 3900 detached

[pid  3899] <... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 
0) = 3900

[pid  3899] mount("/dev/drbd0", "/clusterdisk", "ocfs2", 0, 
"heartbeat=local") = -1 EINVAL (Invalid argument)

[pid  3899] clone(Process 3903 attached

child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0xb7e68708) = 3903

[pid  3899] waitpid(3903, Process 3899 suspended

 <unfinished ...>

[pid  3903] execve("/sbin/ocfs2_hb_ctl", ["/sbin/ocfs2_hb_ctl", "-K", "-d", 
"/dev/drbd0"], [/* 29 vars */]) = 0

[pid  3903] brk(0)                      = 0x8052000

[pid  3903] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fa0000

[pid  3903] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or 
directory)

[pid  3903] open("/etc/ld.so.cache", O_RDONLY) = 3

[pid  3903] fstat64(3, {st_mode=S_IFREG|0644, st_size=88580, ...}) = 0

[pid  3903] mmap2(NULL, 88580, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8a000

[pid  3903] close(3)                    = 0

[pid  3903] open("/usr/lib/libcom_err.so.3", O_RDONLY) = 3

[pid  3903] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\v\0"..., 512) = 512

[pid  3903] fstat64(3, {st_mode=S_IFREG|0644, st_size=42942, ...}) = 0

[pid  3903] mmap2(NULL, 14188, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f86000

[pid  3903] mmap2(0xb7f89000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7f89000

[pid  3903] close(3)                    = 0

[pid  3903] open("/lib/libc.so.6", O_RDONLY) = 3

[pid  3903] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 at _\1\000"..., 512) = 512

[pid  3903] fstat64(3, {st_mode=S_IFREG|0755, st_size=1528742, ...}) = 0

[pid  3903] mmap2(NULL, 1316260, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e44000

[pid  3903] mmap2(0xb7f80000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13c) = 0xb7f80000

[pid  3903] mmap2(0xb7f83000, 9636, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f83000

[pid  3903] close(3)                    = 0

[pid  3903] open("/usr/lib/tls/i686/sse2/libkrb5support.so.0", O_RDONLY) 
= -1 ENOENT (No such file or directory)

[pid  3903] stat64("/usr/lib/tls/i686/sse2", 0xbfae07e8) = -1 ENOENT (No 
such file or directory)

[pid  3903] open("/usr/lib/tls/i686/libkrb5support.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)

[pid  3903] stat64("/usr/lib/tls/i686", 0xbfae07e8) = -1 ENOENT (No such 
file or directory)

[pid  3903] open("/usr/lib/tls/sse2/libkrb5support.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)

[pid  3903] stat64("/usr/lib/tls/sse2", 0xbfae07e8) = -1 ENOENT (No such 
file or directory)

[pid  3903] open("/usr/lib/tls/libkrb5support.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)

[pid  3903] stat64("/usr/lib/tls", 0xbfae07e8) = -1 ENOENT (No such file or 
directory)

[pid  3903] open("/usr/lib/i686/sse2/libkrb5support.so.0", O_RDONLY) = -1 
ENOENT (No such file or directory)

[pid  3903] stat64("/usr/lib/i686/sse2", 0xbfae07e8) = -1 ENOENT (No such 
file or directory)

[pid  3903] open("/usr/lib/i686/libkrb5support.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)

[pid  3903] stat64("/usr/lib/i686", 0xbfae07e8) = -1 ENOENT (No such file or 
directory)

[pid  3903] open("/usr/lib/sse2/libkrb5support.so.0", O_RDONLY) = -1 ENOENT 
(No such file or directory)

[pid  3903] stat64("/usr/lib/sse2", 0xbfae07e8) = -1 ENOENT (No such file or 
directory)

[pid  3903] open("/usr/lib/libkrb5support.so.0", O_RDONLY) = 3

[pid  3903] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 
\n\0\000"..., 512) = 512

[pid  3903] fstat64(3, {st_mode=S_IFREG|0644, st_size=41566, ...}) = 0

[pid  3903] mmap2(NULL, 8832, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e41000

[pid  3903] mmap2(0xb7e43000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7e43000

[pid  3903] close(3)                    = 0

[pid  3903] open("/usr/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)

[pid  3903] open("/lib/libresolv.so.2", O_RDONLY) = 3

[pid  3903] read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`!\0\000"..., 512) = 512

[pid  3903] fstat64(3, {st_mode=S_IFREG|0755, st_size=77439, ...}) = 0

[pid  3903] mmap2(NULL, 75976, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e2e000

[pid  3903] mmap2(0xb7e3d000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xb7e3d000

[pid  3903] mmap2(0xb7e3f000, 6344, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e3f000

[pid  3903] close(3)                    = 0

[pid  3903] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e2d000

[pid  3903] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e2c000

[pid  3903] set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e2c6c0, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, 
seg_not_present:0, useable:1}) = 0

[pid  3903] mprotect(0xb7f80000, 4096, PROT_READ) = 0

[pid  3903] munmap(0xb7f8a000, 88580)   = 0

[pid  3903] brk(0)                      = 0x8052000

[pid  3903] brk(0x8073000)              = 0x8073000

[pid  3903] open("/sys/o2cb/interface_revision", O_RDONLY) = 3

[pid  3903] read(3, "5\n", 15)          = 2

[pid  3903] read(3, "", 13)             = 0

[pid  3903] close(3)                    = 0

[pid  3903] stat64("/sys/kernel/config", {st_mode=S_IFDIR|0755, st_size=0, 
...}) = 0

[pid  3903] statfs64("/sys/kernel/config", 84, {f_type=0x62656570, 
f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, 
f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0

[pid  3903] open("/dev/drbd0", O_RDONLY|O_DIRECT|O_LARGEFILE) = 3

[pid  3903] pread64(3, "\2\2\2\2\2\2\2\2this is an ocfs2 volume\0"..., 512, 
0) = 512

[pid  3903] pread64(3, "\2\2\2\2\2\2\2\2this is an ocfs2 volume\0"..., 512, 
0) = 512

[pid  3903] pread64(3, 
"\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2"..., 512, 1024) = 
512

[pid  3903] pread64(3, 
"\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2"..., 1024, 2048) = 
1024

[pid  3903] pread64(3, 
"\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2\2"..., 2048, 4096) = 
2048

[pid  3903] pread64(3, 
"OCFSV2\0\0B|\21^\377\377\377\377\0\0\0\0\263\236o\0\0\0"..., 4096, 8192) = 
4096

[pid  3903] open("/dev/drbd0", O_RDONLY|O_LARGEFILE) = 4

[pid  3903] ioctl(4, BLKSSZGET, 0xbfae1060) = 0

[pid  3903] close(4)                    = 0

[pid  3903] pread64(3, 
"INODE01\0B|\21^\377\377\2\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0"..., 4096, 73728) = 
4096

[pid  3903] pread64(3, 
"INODE01\0B|\21^\377\377\2\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0"..., 4096, 73728) = 
4096

[pid  3903] pread64(3, 
"\22\0\0\0\0\0\0\0\20\0\1\2.\0\0\0\22\0\0\0\0\0\0\0\20\0"..., 4096, 950272) 
= 4096

[pid  3903] pread64(3, "INODE01\0B|\21^\377\377\6\0\0\0\0\0 
\0\0\0\0\0\0\0\0\0"..., 4096, 90112) = 4096

[pid  3903] close(3)                    = 0

[pid  3903] rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0

[pid  3903] semget(0xbb390e5a, 2, IPC_CREAT|0) = 65536

[pid  3903] semop(65536, 0xbfadff4c, 2) = 0

[pid  3903] semctl(65536, 1, IPC_64|GETVAL, 0xbfadff38) = 1

[pid  3903] semop(65536, 0xbfadff5e, 1) = 0

[pid  3903] open("/sys/kernel/config/cluster", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3

[pid  3903] fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0

[pid  3903] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0

[pid  3903] getdents(3, /* 3 entries */, 4096) = 52

[pid  3903] getdents(3, /* 0 entries */, 4096) = 0

[pid  3903] close(3)                    = 0

[pid  3903] 
rmdir("/sys/kernel/config/cluster/cldisk/heartbeat/B6DE7123640A47FFA77A6C5F33A9302A") 
= 0

[pid  3903] semctl(65536, 0, IPC_64|IPC_RMID, 0xbfadff48) = 0

[pid  3903] rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 
0

[pid  3903] exit_group(0)               = ?

Process 3899 resumed

Process 3903 detached

----- Original Message ----- 
From: "Florian Haas" <florian.haas at linbit.com>
To: <drbd-user at linbit.com>
Sent: Tuesday, December 11, 2007 9:36 AM
Subject: Re: [DRBD-user] ocfs2 over drbd


> On Tuesday 11 December 2007 12:17:10 Carlos Xavier wrote:
>> and my OCFS@ status:
>> root at apolo1:~# /etc/init.d/o2cb status
>> Module "configfs": Loaded
>> Filesystem "configfs": Mounted
>> Module "ocfs2_nodemanager": Loaded
>> Module "ocfs2_dlm": Loaded
>> Module "ocfs2_dlmfs": Loaded
>> Filesystem "ocfs2_dlmfs": Mounted
>> Checking O2CB cluster cldisk: Online
>> Heartbeat dead threshold = 7
>>   Network idle timeout: 10000
>>   Network keepalive delay: 5000
>>   Network reconnect delay: 2000
>> Checking O2CB heartbeat: Not active
>
> What about this? Is OCFS2 supposed to allow you to mount the device while 
> its
> heartbeat isn't active?
>
>> root at apolo1:~# mount -t ocfs2 /dev/drbd0 /clusterdisk
>> mount.ocfs2: Invalid argument while mounting /dev/drbd0 on /clusterdisk.
>> Check 'dmesg' for more information on this error.
>
> And may I ask why you chose to withhold that dmesg information from us?
>
> IIRC Phil's OCFS2 patch doesn't apply here, as it was merged into 2.6.20, 
> and
> you're on 2.6.21, so that fix should already be included in your kernel. 
> If
> I'm not misinformed, that is.
>
> Cheers,
> Florian
>
> -- 
> : Florian G. Haas
> : LINBIT Information Technologies GmbH
> : Vivenotgasse 48, A-1120 Vienna, Austria
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 




More information about the drbd-user mailing list