[Ocfs2-users] mv error moving files from local partitiontoocfs2

Gaetano Giunta giunta.gaetano at sea-aeroportimilano.it
Wed May 2 10:10:33 PDT 2007


Thanks. It works!

Besides disabling selinux, we updated to 1.2.5-1 today, since it plays nicer to oracle RAC (installed on the same 2 node cluster) by way of rebooting instead of panicing the kernel when one of the private nics is disconnetcted.


While I'm on that topic, do you know it there is any possibility of telling the ocfs2 daemon which node is the preferred one to kill in a split-brain situation? 

It would really help in a (cheap) 2 node RAC + OCFS2 cluster, eg:

a - node 1 breaks its public nic
b - crsd moves services to node 2
c - NEW: crsd signals ocfs2 that the 'preferred' node to be saved in split-brain is now not node 1 anymore, but node 2 instead
d - node 2 breaks its private nic
e => as of now, ocfs2 will power-cycle node 2, preserving access to ocfs storage from node 1, but bringing some downtime to rac. If, otoh, ocfs2 has recieved signal in point c, it will shut down node 1 instead.

PS: yes I know the 'best' solution to this situation involves getting two more nics and using a bonded interface for private lans, or adinng a 3rd node to the cluster so that ocfs would use majority-voting to decide who survives split-brains, but right now we don'nt have either of those.

Bye
Gaetano Giunta

> -----Original Message-----
> From: Sunil Mushran [mailto:sunil.mushran at oracle.com]
> Sent: Monday, April 30, 2007 7:38 PM
> To: Gaetano Giunta
> Subject: RE: [Ocfs2-users] mv error moving files from local
> partitiontoocfs2
> 
> 
> selinux is the cause of the problem. Currently ocfs2 does not support
> extended attributes. Is in our todo list.
> 
> Disable selinux (/etc/selinux/config) and it will work. You will have
> to reboot the box. 
> 
> On Mon, 2007-04-30 at 19:13 +0200, Gaetano Giunta wrote:
> > Ok, I attached the strace dumps below.
> > 
> > It's way too much hardcore for me to try to read them and 
> understand them too.
> > 
> > All I could get is mv is doing a 'rename' call with result 
> "-1 EXDEV (Invalid cross-device-link)".
> > 
> > Right after that it opens the source file read-only (result 
> 3 OK), and the dest file with O_WRONLY|OCREAT, 0100644, but 
> receives -1 EACCESS.
> > 
> > Otoh CP does open of the src in O_RDONLY OK and open of 
> target with O_WRONLY|OCREAT, 0100644 and receives back 4...
> > 
> > 
> > Thanks
> > Gaetano
> > 
> > 
> > 
> > [root at webdb01 ~]# strace mv QUORUMDUMP /home/SANstorage/web
> > execve("/bin/mv", ["mv", "QUORUMDUMP", 
> "/home/SANstorage/web"], [/* 33 vars */]) = 0
> > uname({sys="Linux", node="webdb01", ...}) = 0
> > brk(0)                                  = 0x510000
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95556000
> > access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No 
> such file or directory)
> > 
> open("/home/oracle/product/10.2.0/db_1/lib/tls/x86_64/libacl.s
> o.1", O_RDONLY) = -1 ENOENT (No such file or directory)
> > stat("/home/oracle/product/10.2.0/db_1/lib/tls/x86_64", 
> 0x7fbfffecb0) = -1 ENOENT (No such file or directory)
> > 
> open("/home/oracle/product/10.2.0/db_1/lib/tls/libacl.so.1", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > stat("/home/oracle/product/10.2.0/db_1/lib/tls", 
> 0x7fbfffecb0) = -1 ENOENT (No such file or directory)
> > 
> open("/home/oracle/product/10.2.0/db_1/lib/x86_64/libacl.so.1"
> , O_RDONLY) = -1 ENOENT (No such file or directory)
> > stat("/home/oracle/product/10.2.0/db_1/lib/x86_64", 
> 0x7fbfffecb0) = -1 ENOENT (No such file or directory)
> > open("/home/oracle/product/10.2.0/db_1/lib/libacl.so.1", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > stat("/home/oracle/product/10.2.0/db_1/lib", 
> {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
> > open("tls/x86_64/libacl.so.1", O_RDONLY) = -1 ENOENT (No 
> such file or directory)
> > open("tls/libacl.so.1", O_RDONLY)       = -1 ENOENT (No 
> such file or directory)
> > open("x86_64/libacl.so.1", O_RDONLY)    = -1 ENOENT (No 
> such file or directory)
> > open("libacl.so.1", O_RDONLY)           = -1 ENOENT (No 
> such file or directory)
> > open("/etc/ld.so.cache", O_RDONLY)      = 3
> > fstat(3, {st_mode=S_IFREG|0644, st_size=192789, ...}) = 0
> > mmap(NULL, 192789, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95557000
> > close(3)                                = 0
> > open("/lib64/libacl.so.1", O_RDONLY)    = 3
> > read(3, 
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\31\240"...
> , 832) = 832
> > fstat(3, {st_mode=S_IFREG|0755, st_size=28688, ...}) = 0
> > mmap(0x318fa00000, 1073080, PROT_READ|PROT_EXEC, 
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x318fa00000
> > mprotect(0x318fa06000, 1048504, PROT_NONE) = 0
> > mmap(0x318fb05000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x318fb05000
> > close(3)                                = 0
> > 
> open("/home/oracle/product/10.2.0/db_1/lib/libselinux.so.1", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("tls/x86_64/libselinux.so.1", O_RDONLY) = -1 ENOENT 
> (No such file or directory)
> > open("tls/libselinux.so.1", O_RDONLY)   = -1 ENOENT (No 
> such file or directory)
> > open("x86_64/libselinux.so.1", O_RDONLY) = -1 ENOENT (No 
> such file or directory)
> > open("libselinux.so.1", O_RDONLY)       = -1 ENOENT (No 
> such file or directory)
> > open("/lib64/libselinux.so.1", O_RDONLY) = 3
> > read(3, 
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300+\0\220"...
> , 832) = 832
> > fstat(3, {st_mode=S_IFREG|0755, st_size=62520, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95587000
> > mmap(0x3190000000, 1111616, PROT_READ|PROT_EXEC, 
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3190000000
> > mprotect(0x319000e000, 1054272, PROT_NONE) = 0
> > mmap(0x319010e000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x319010e000
> > mmap(0x319010f000, 1600, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x319010f000
> > close(3)                                = 0
> > open("/home/oracle/product/10.2.0/db_1/lib/libc.so.6", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("tls/x86_64/libc.so.6", O_RDONLY)  = -1 ENOENT (No 
> such file or directory)
> > open("tls/libc.so.6", O_RDONLY)         = -1 ENOENT (No 
> such file or directory)
> > open("x86_64/libc.so.6", O_RDONLY)      = -1 ENOENT (No 
> such file or directory)
> > open("libc.so.6", O_RDONLY)             = -1 ENOENT (No 
> such file or directory)
> > open("/lib64/tls/libc.so.6", O_RDONLY)  = 3
> > read(3, 
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\304"..., 
> 832) = 832
> > fstat(3, {st_mode=S_IFREG|0755, st_size=1493409, ...}) = 0
> > mmap(0x318d100000, 2310088, PROT_READ|PROT_EXEC, 
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x318d100000
> > mprotect(0x318d22b000, 1085384, PROT_NONE) = 0
> > mmap(0x318d32b000, 20480, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b000) = 0x318d32b000
> > mmap(0x318d330000, 16328, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x318d330000
> > close(3)                                = 0
> > open("/home/oracle/product/10.2.0/db_1/lib/libattr.so.1", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("tls/x86_64/libattr.so.1", O_RDONLY) = -1 ENOENT (No 
> such file or directory)
> > open("tls/libattr.so.1", O_RDONLY)      = -1 ENOENT (No 
> such file or directory)
> > open("x86_64/libattr.so.1", O_RDONLY)   = -1 ENOENT (No 
> such file or directory)
> > open("libattr.so.1", O_RDONLY)          = -1 ENOENT (No 
> such file or directory)
> > open("/lib64/libattr.so.1", O_RDONLY)   = 3
> > read(3, 
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\17`"..., 
> 832) = 832
> > fstat(3, {st_mode=S_IFREG|0755, st_size=32234, ...}) = 0
> > mmap(0x318f600000, 1060120, PROT_READ|PROT_EXEC, 
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x318f600000
> > mprotect(0x318f603000, 1047832, PROT_NONE) = 0
> > mmap(0x318f702000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x318f702000
> > close(3)                                = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95588000
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95589000
> > mprotect(0x318d32b000, 8192, PROT_READ) = 0
> > arch_prctl(ARCH_SET_FS, 0x2a95588dc0)   = 0
> > munmap(0x2a95557000, 192789)            = 0
> > access("/etc/selinux/", F_OK)           = 0
> > brk(0)                                  = 0x510000
> > brk(0x531000)                           = 0x531000
> > open("/etc/selinux/config", O_RDONLY)   = 3
> > fstat(3, {st_mode=S_IFREG|0644, st_size=448, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95557000
> > read(3, "# This file controls the state o"..., 4096) = 448
> > close(3)                                = 0
> > munmap(0x2a95557000, 4096)              = 0
> > open("/proc/mounts", O_RDONLY)          = 3
> > fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95557000
> > read(3, "rootfs / rootfs rw 0 0\n/proc /pr"..., 1024) = 697
> > close(3)                                = 0
> > munmap(0x2a95557000, 4096)              = 0
> > open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
> > fstat(3, {st_mode=S_IFREG|0644, st_size=48528944, ...}) = 0
> > mmap(NULL, 48528944, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9558a000
> > close(3)                                = 0
> > geteuid()                               = 0
> > ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig 
> icanon echo ...}) = 0
> > open("/proc/filesystems", O_RDONLY)     = 3
> > read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 4095) = 383
> > open("/proc/self/attr/current", O_RDONLY) = 4
> > read(4, "root:system_r:unconfined_t\0", 4095) = 27
> > close(4)                                = 0
> > close(3)                                = 0
> > stat("/home/SANstorage/web", {st_mode=S_IFDIR|0755, 
> st_size=4096, ...}) = 0
> > lstat("QUORUMDUMP", {st_mode=S_IFREG|0644, 
> st_size=536753152, ...}) = 0
> > lstat("/home/SANstorage/web/QUORUMDUMP", 0x7fbffff430) = -1 
> ENOENT (No such file or directory)
> > rename("QUORUMDUMP", "/home/SANstorage/web/QUORUMDUMP") = 
> -1 EXDEV (Invalid cross-device link)
> > unlink("/home/SANstorage/web/QUORUMDUMP") = -1 ENOENT (No 
> such file or directory)
> > lgetxattr("QUORUMDUMP", "security.selinux", 
> "root:object_r:user_home_t", 255) = 26
> > open("/proc/self/attr/fscreate", O_RDWR) = 3
> > write(3, "root:object_r:user_home_t\0", 26) = 26
> > close(3)                                = 0
> > open("QUORUMDUMP", O_RDONLY)            = 3
> > fstat(3, {st_mode=S_IFREG|0644, st_size=536753152, ...}) = 0
> > open("/home/SANstorage/web/QUORUMDUMP", O_WRONLY|O_CREAT, 
> 0100644) = -1 EACCES (Permission denied)
> > open("/usr/share/locale/locale.alias", O_RDONLY) = 4
> > fstat(4, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a983d2000
> > read(4, "# Locale name alias data base.\n#"..., 4096) = 2528
> > read(4, "", 4096)                       = 0
> > close(4)                                = 0
> > munmap(0x2a983d2000, 4096)              = 0
> > 
> open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/coreutils.mo",
>  O_RDONLY) = -1 ENOENT (No such file or directory)
> > 
> open("/usr/share/locale/en_US.utf8/LC_MESSAGES/coreutils.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/locale/en_US/LC_MESSAGES/coreutils.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/locale/en.UTF-8/LC_MESSAGES/coreutils.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/locale/en.utf8/LC_MESSAGES/coreutils.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/locale/en/LC_MESSAGES/coreutils.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > write(2, "mv: ", 4mv: )                     = 4
> > write(2, "cannot create regular file `/hom"..., 60cannot 
> create regular file `/home/SANstorage/web/QUORUMDUMP') = 60
> > open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) 
> = -1 ENOENT (No such file or directory)
> > write(2, ": Permission denied", 19: Permission denied)     = 19
> > write(2, "\n", 1
> > )                       = 1
> > close(3)                                = 0
> > open("/proc/self/attr/fscreate", O_RDWR) = 3
> > write(3, NULL, 0)                       = 0
> > close(3)                                = 0
> > exit_group(1)                           = ?
> > Process 21879 detached
> > 
> > 
> > strace cp QUORUMDUMP /home/SANstorage/web
> > execve("/bin/cp", ["cp", "QUORUMDUMP", 
> "/home/SANstorage/web"], [/* 33 vars */]) = 0
> > uname({sys="Linux", node="webdb01", ...}) = 0
> > brk(0)                                  = 0x50f000
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95556000
> > access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No 
> such file or directory)
> > 
> open("/home/oracle/product/10.2.0/db_1/lib/tls/x86_64/libacl.s
> o.1", O_RDONLY) = -1 ENOENT (No such file or directory)
> > stat("/home/oracle/product/10.2.0/db_1/lib/tls/x86_64", 
> 0x7fbfffecb0) = -1 ENOENT (No such file or directory)
> > 
> open("/home/oracle/product/10.2.0/db_1/lib/tls/libacl.so.1", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > stat("/home/oracle/product/10.2.0/db_1/lib/tls", 
> 0x7fbfffecb0) = -1 ENOENT (No such file or directory)
> > 
> open("/home/oracle/product/10.2.0/db_1/lib/x86_64/libacl.so.1"
> , O_RDONLY) = -1 ENOENT (No such file or directory)
> > stat("/home/oracle/product/10.2.0/db_1/lib/x86_64", 
> 0x7fbfffecb0) = -1 ENOENT (No such file or directory)
> > open("/home/oracle/product/10.2.0/db_1/lib/libacl.so.1", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > stat("/home/oracle/product/10.2.0/db_1/lib", 
> {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
> > open("tls/x86_64/libacl.so.1", O_RDONLY) = -1 ENOENT (No 
> such file or directory)
> > open("tls/libacl.so.1", O_RDONLY)       = -1 ENOENT (No 
> such file or directory)
> > open("x86_64/libacl.so.1", O_RDONLY)    = -1 ENOENT (No 
> such file or directory)
> > open("libacl.so.1", O_RDONLY)           = -1 ENOENT (No 
> such file or directory)
> > open("/etc/ld.so.cache", O_RDONLY)      = 3
> > fstat(3, {st_mode=S_IFREG|0644, st_size=192789, ...}) = 0
> > mmap(NULL, 192789, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a95557000
> > close(3)                                = 0
> > open("/lib64/libacl.so.1", O_RDONLY)    = 3
> > read(3, 
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\31\240"...
> , 832) = 832
> > fstat(3, {st_mode=S_IFREG|0755, st_size=28688, ...}) = 0
> > mmap(0x318fa00000, 1073080, PROT_READ|PROT_EXEC, 
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x318fa00000
> > mprotect(0x318fa06000, 1048504, PROT_NONE) = 0
> > mmap(0x318fb05000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x318fb05000
> > close(3)                                = 0
> > 
> open("/home/oracle/product/10.2.0/db_1/lib/libselinux.so.1", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("tls/x86_64/libselinux.so.1", O_RDONLY) = -1 ENOENT 
> (No such file or directory)
> > open("tls/libselinux.so.1", O_RDONLY)   = -1 ENOENT (No 
> such file or directory)
> > open("x86_64/libselinux.so.1", O_RDONLY) = -1 ENOENT (No 
> such file or directory)
> > open("libselinux.so.1", O_RDONLY)       = -1 ENOENT (No 
> such file or directory)
> > open("/lib64/libselinux.so.1", O_RDONLY) = 3
> > read(3, 
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300+\0\220"...
> , 832) = 832
> > fstat(3, {st_mode=S_IFREG|0755, st_size=62520, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95587000
> > mmap(0x3190000000, 1111616, PROT_READ|PROT_EXEC, 
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3190000000
> > mprotect(0x319000e000, 1054272, PROT_NONE) = 0
> > mmap(0x319010e000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x319010e000
> > mmap(0x319010f000, 1600, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x319010f000
> > close(3)                                = 0
> > open("/home/oracle/product/10.2.0/db_1/lib/libc.so.6", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("tls/x86_64/libc.so.6", O_RDONLY)  = -1 ENOENT (No 
> such file or directory)
> > open("tls/libc.so.6", O_RDONLY)         = -1 ENOENT (No 
> such file or directory)
> > open("x86_64/libc.so.6", O_RDONLY)      = -1 ENOENT (No 
> such file or directory)
> > open("libc.so.6", O_RDONLY)             = -1 ENOENT (No 
> such file or directory)
> > open("/lib64/tls/libc.so.6", O_RDONLY)  = 3
> > read(3, 
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\304"..., 
> 832) = 832
> > fstat(3, {st_mode=S_IFREG|0755, st_size=1493409, ...}) = 0
> > mmap(0x318d100000, 2310088, PROT_READ|PROT_EXEC, 
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x318d100000
> > mprotect(0x318d22b000, 1085384, PROT_NONE) = 0
> > mmap(0x318d32b000, 20480, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b000) = 0x318d32b000
> > mmap(0x318d330000, 16328, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x318d330000
> > close(3)                                = 0
> > open("/home/oracle/product/10.2.0/db_1/lib/libattr.so.1", 
> O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("tls/x86_64/libattr.so.1", O_RDONLY) = -1 ENOENT (No 
> such file or directory)
> > open("tls/libattr.so.1", O_RDONLY)      = -1 ENOENT (No 
> such file or directory)
> > open("x86_64/libattr.so.1", O_RDONLY)   = -1 ENOENT (No 
> such file or directory)
> > open("libattr.so.1", O_RDONLY)          = -1 ENOENT (No 
> such file or directory)
> > open("/lib64/libattr.so.1", O_RDONLY)   = 3
> > read(3, 
> "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\17`"..., 
> 832) = 832
> > fstat(3, {st_mode=S_IFREG|0755, st_size=32234, ...}) = 0
> > mmap(0x318f600000, 1060120, PROT_READ|PROT_EXEC, 
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x318f600000
> > mprotect(0x318f603000, 1047832, PROT_NONE) = 0
> > mmap(0x318f702000, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x318f702000
> > close(3)                                = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95588000
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95589000
> > mprotect(0x318d32b000, 8192, PROT_READ) = 0
> > arch_prctl(ARCH_SET_FS, 0x2a95588dc0)   = 0
> > munmap(0x2a95557000, 192789)            = 0
> > access("/etc/selinux/", F_OK)           = 0
> > brk(0)                                  = 0x50f000
> > brk(0x530000)                           = 0x530000
> > open("/etc/selinux/config", O_RDONLY)   = 3
> > fstat(3, {st_mode=S_IFREG|0644, st_size=448, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95557000
> > read(3, "# This file controls the state o"..., 4096) = 448
> > close(3)                                = 0
> > munmap(0x2a95557000, 4096)              = 0
> > open("/proc/mounts", O_RDONLY)          = 3
> > fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> > mmap(NULL, 4096, PROT_READ|PROT_WRITE, 
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95557000
> > read(3, "rootfs / rootfs rw 0 0\n/proc /pr"..., 1024) = 697
> > close(3)                                = 0
> > munmap(0x2a95557000, 4096)              = 0
> > open("/proc/filesystems", O_RDONLY)     = 3
> > read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 4095) = 383
> > open("/proc/self/attr/current", O_RDONLY) = 4
> > read(4, "root:system_r:unconfined_t\0", 4095) = 27
> > close(4)                                = 0
> > close(3)                                = 0
> > open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
> > fstat(3, {st_mode=S_IFREG|0644, st_size=48528944, ...}) = 0
> > mmap(NULL, 48528944, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9558a000
> > close(3)                                = 0
> > geteuid()                               = 0
> > lstat("/home/SANstorage/web", {st_mode=S_IFDIR|0755, 
> st_size=4096, ...}) = 0
> > stat("/home/SANstorage/web", {st_mode=S_IFDIR|0755, 
> st_size=4096, ...}) = 0
> > stat("QUORUMDUMP", {st_mode=S_IFREG|0644, 
> st_size=536753152, ...}) = 0
> > stat("/home/SANstorage/web/QUORUMDUMP", 0x7fbffff2e0) = -1 
> ENOENT (No such file or directory)
> > open("QUORUMDUMP", O_RDONLY)            = 3
> > fstat(3, {st_mode=S_IFREG|0644, st_size=536753152, ...}) = 0
> > open("/home/SANstorage/web/QUORUMDUMP", O_WRONLY|O_CREAT, 
> 0100644) = 4
> > fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> > fstat(3, {st_mode=S_IFREG|0644, st_size=536753152, ...}) = 0
> > 
> > 
> > > -----Original Message-----
> > > From: Sunil Mushran [mailto:sunil.mushran at oracle.com]
> > > Sent: Monday, April 30, 2007 6:42 PM
> > > To: Gaetano Giunta
> > > Cc: ocfs2-users at oss.oracle.com
> > > Subject: Re: [Ocfs2-users] mv error moving files from 
> local partition
> > > toocfs2
> > > 
> > > 
> > > strace both processes. The answer will be in there.
> > > 
> > > On Mon, 2007-04-30 at 17:59 +0200, Gaetano Giunta wrote:
> > > > 
> > > > we recently deployed ocfs2 (rel 1.2.3) on a RH ES 4 
> update 4, x86_64
> > > > 
> > > > the ocfs2 partition is being mounted at the same time 
> by two nodes
> > > > 
> > > > while using cp to move data between local partitions and 
> > > the ocfs one
> > > > works, mv (/bin/mv) stubbornly refuses to do it, giving 
> a 'cannot
> > > > create file' error.
> > > > 
> > > > Is this a know issue? Did anybody else have the same problem?
> > > > 
> > > 
> > > 
> 
> 


More information about the Ocfs2-users mailing list