chen guihua
2011-Oct-25 15:24 UTC
[Lustre-discuss] can not create VHD format file in the client''s shared directory using lustre FS ??
Hello I have??configured lustre 1.6.5 FS, and in the client,i tried??to create a VHD file in the shared directory , using command strace ?Co logfile vhd-tuil create ?Cn vhd.img ?Cs 2048, and execute the command to test whether the lustre support the VHD-format file or not?, I find some information as follows:(all command are excuted in client ) 1 in the lustre share directory,logfile records: execve("/usr/sbin/vhd-util", ["vhd-util", "create", "-n", "vhd.img", "-s", "2048"], [/* 22 vars */]) = 0 brk(0) = 0x602000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b321cf4a000 uname({sys="Linux", node="node34", ...}) = 0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=73642, ...}) = 0 mmap(NULL, 73642, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b321cf4b000 close(3) = 0 open("/usr/lib64/libvhd.so.1.0", 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\340< \0030\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=376324, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b321cf5d000 mmap(0x3003200000, 2198912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3003200000 mprotect(0x3003218000, 2097152, PROT_NONE) = 0 mmap(0x3003418000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x3003418000 close(3) = 0 open("/lib64/libuuid.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\25\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=15360, ...}) = 0 mmap(NULL, 2110488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 0x2b321cf5e000 mprotect(0x2b321cf62000, 2093056, PROT_NONE) = 0 mmap(0x2b321d161000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x2b321d161000 close(3) = 0 open("/lib64/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\220\332a\0010\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1718120, ...}) = 0 mmap(0x3001600000, 3498328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3001600000 mprotect(0x300174e000, 2093056, PROT_NONE) = 0 mmap(0x300194d000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14d000) = 0x300194d000 mmap(0x3001952000, 16728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3001952000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b321d162000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b321d163000 arch_prctl(ARCH_SET_FS, 0x2b321d162dc0) = 0 mprotect(0x300194d000, 16384, PROT_READ) = 0 mprotect(0x300141b000, 4096, PROT_READ) = 0 munmap(0x2b321cf4b000, 73642) = 0 brk(0) = 0x602000 brk(0x623000) = 0x623000 open("vhd.img", O_WRONLY|O_CREAT|O_TRUNC|O_DIRECT, 0644) = 3 stat("vhd.img", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 time(NULL) = 1319410058 open("/etc/localtime", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b321cf4b000 read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., 4096) = 405 lseek(4, -240, SEEK_CUR) = 165 read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., 4096) = 240 close(4) = 0 munmap(0x2b321cf4b000, 4096) = 0 gettimeofday({1319410058, 344663}, NULL) = 0 open("/dev/urandom", O_RDONLY) = 4 fcntl(4, F_GETFD) = 0 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 getpid() getuid() = 0 getppid() = 31097 gettimeofday({1319410058, 346012}, NULL) = 0 gettimeofday({1319410058, 346216}, NULL) = 0 read(4, "\266#\216\21#\215\354\33\266\255\340\360D?\242\244", 16) = 16 gettid() lseek(3, 0, SEEK_SET) = 0 write(3, "conectix\0\0\0\2\0\1\0\0\0\0\0\0\0\0\2\0\0267\306\212tap\0"..., 512) = -1 EINVAL (Invalid argument) close(3) = 0 unlink("vhd.img") = 0 exit_group(22) = ? 2 in non-shared directory: (everything is normal) execve("/usr/sbin/vhd-util", ["vhd-util", "create", "-n", "vhd.img", "-s", "2048"], [/* 22 vars */]) = 0 brk(0) = 0x602000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b766ea44000 uname({sys="Linux", node="node34", ...}) = 0 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=73642, ...}) = 0 mmap(NULL, 73642, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b766ea45000 close(3) = 0 open("/usr/lib64/libvhd.so.1.0", 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\340< \0030\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=376324, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b766ea57000 mmap(0x3003200000, 2198912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3003200000 mprotect(0x3003218000, 2097152, PROT_NONE) = 0 mmap(0x3003418000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x3003418000 close(3) = 0 open("/lib64/libuuid.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\25\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=15360, ...}) = 0 mmap(NULL, 2110488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) 0x2b766ea58000 mprotect(0x2b766ea5c000, 2093056, PROT_NONE) = 0 mmap(0x2b766ec5b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x2b766ec5b000 close(3) = 0 open("/lib64/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\220\332a\0010\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1718120, ...}) = 0 mmap(0x3001600000, 3498328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3001600000 mprotect(0x300174e000, 2093056, PROT_NONE) = 0 mmap(0x300194d000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14d000) = 0x300194d000 mmap(0x3001952000, 16728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3001952000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b766ec5c000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b766ec5d000 arch_prctl(ARCH_SET_FS, 0x2b766ec5cdc0) = 0 mprotect(0x300194d000, 16384, PROT_READ) = 0 mprotect(0x300141b000, 4096, PROT_READ) = 0 munmap(0x2b766ea45000, 73642) = 0 brk(0) = 0x602000 brk(0x623000) = 0x623000 open("vhd.img", O_WRONLY|O_CREAT|O_TRUNC|O_DIRECT, 0644) = 3 stat("vhd.img", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 time(NULL) = 1319411057 open("/etc/localtime", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 0x2b766ea45000 read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., 4096) = 405 lseek(4, -240, SEEK_CUR) = 165 read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., 4096) = 240 close(4) = 0 munmap(0x2b766ea45000, 4096) = 0 gettimeofday({1319411057, 55555}, NULL) = 0 open("/dev/urandom", O_RDONLY) = 4 fcntl(4, F_GETFD) = 0 fcntl(4, F_SETFD, FD_CLOEXEC) = 0 getpid() getuid() = 0 getppid() = 31167 gettimeofday({1319411057, 56604}, NULL) = 0 gettimeofday({1319411057, 56766}, NULL) = 0 read(4, "\275A\20\351\201o\10}\230\345J\34\272\n}\r", 16) = 16 gettid() lseek(3, 0, SEEK_SET) = 0 write(3, "conectix\0\0\0\2\0\1\0\0\0\0\0\0\0\0\2\0\0267\312qtap\0"..., 512) = 512 lseek(3, 512, SEEK_SET) = 512 write(3, "cxsparse\377\377\377\377\377\377\377\377\0\0\0\0\0\0\6\0\0\1\0\0\0\0\4\0"..., 1024) = 1024 lseek(3, 6144, SEEK_SET) = 6144 write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512 lseek(3, 5632, SEEK_SET) = 5632 write(3, "tdbatmap\0\0\0\0\0\0\30\0\0\0\0\1\0\1\0\2\377\377\377\377\0\0\0\0"..., 512) = 512 lseek(3, 1536, SEEK_SET) = 1536 lseek(3, 1536, SEEK_SET) = 1536 write(3, "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 4096) = 4096 lseek(3, 512, SEEK_SET) = 512 write(3, "cxsparse\377\377\377\377\377\377\377\377\0\0\0\0\0\0\6\0\0\1\0\0\0\0\4\0"..., 1024) = 1024 lseek(3, 0, SEEK_END) = 6656 lseek(3, 0, SEEK_CUR) = 6656 lseek(3, 6656, SEEK_SET) = 6656 write(3, "conectix\0\0\0\2\0\1\0\0\0\0\0\0\0\0\2\0\0267\312qtap\0"..., 512) = 512 close(3) = 0 exit_group(0) I don??t know the reason , I really hope you can help me, thanks so much -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20111025/c35cb27d/attachment.html
Colin Faber
2011-Oct-25 18:14 UTC
[Lustre-discuss] can not create VHD format file in the client''s shared directory using lustre FS ??
Hi, 1.6 is totally deprecated and no longer actively developed or supported. It''s HIGHLY recommended that you upgrade to 1.8.6 (or preferably 2.1). Once upgraded please retest and post your results. Good Luck! -cf On 10/25/2011 09:24 AM, chen guihua wrote:> > > Hello > I have??configured lustre 1.6.5 FS, and in the client,i > tried??to create a VHD file in the shared directory , using command > strace ?Co logfile vhd-tuil create ?Cn vhd.img ?Cs 2048, and execute > the command to test whether the lustre support the VHD-format file or > not?, I find some information as follows:(all command are excuted in > client ) > > 1 in the lustre share directory,logfile records: > execve("/usr/sbin/vhd-util", ["vhd-util", "create", "-n", "vhd.img", > "-s", "2048"], [/* 22 vars */]) = 0 > brk(0) = 0x602000 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b321cf4a000 > uname({sys="Linux", node="node34", ...}) = 0 > access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or > directory) > open("/etc/ld.so.cache", O_RDONLY) = 3 > fstat(3, {st_mode=S_IFREG|0644, st_size=73642, ...}) = 0 > mmap(NULL, 73642, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b321cf4b000 > close(3) = 0 > open("/usr/lib64/libvhd.so.1.0", 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\340< > \0030\0\0\0"..., 832) = 832 > fstat(3, {st_mode=S_IFREG|0644, st_size=376324, ...}) = 0 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b321cf5d000 > mmap(0x3003200000, 2198912, PROT_READ|PROT_EXEC, > MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3003200000 > mprotect(0x3003218000, 2097152, PROT_NONE) = 0 > mmap(0x3003418000, 4096, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x3003418000 > close(3) = 0 > open("/lib64/libuuid.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\25\0\0\0\0\0\0"..., 832) > = 832 > fstat(3, {st_mode=S_IFREG|0755, st_size=15360, ...}) = 0 > mmap(NULL, 2110488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, > 3, 0) = 0x2b321cf5e000 > mprotect(0x2b321cf62000, 2093056, PROT_NONE) = 0 > mmap(0x2b321d161000, 4096, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x2b321d161000 > close(3) = 0 > open("/lib64/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\220\332a\0010\0\0\0"..., > 832) = 832 > fstat(3, {st_mode=S_IFREG|0755, st_size=1718120, ...}) = 0 > mmap(0x3001600000, 3498328, PROT_READ|PROT_EXEC, > MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3001600000 > mprotect(0x300174e000, 2093056, PROT_NONE) = 0 > mmap(0x300194d000, 20480, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14d000) = 0x300194d000 > mmap(0x3001952000, 16728, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3001952000 > close(3) = 0 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b321d162000 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b321d163000 > arch_prctl(ARCH_SET_FS, 0x2b321d162dc0) = 0 > mprotect(0x300194d000, 16384, PROT_READ) = 0 > mprotect(0x300141b000, 4096, PROT_READ) = 0 > munmap(0x2b321cf4b000, 73642) = 0 > brk(0) = 0x602000 > brk(0x623000) = 0x623000 > open("vhd.img", O_WRONLY|O_CREAT|O_TRUNC|O_DIRECT, 0644) = 3 > stat("vhd.img", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 > time(NULL) = 1319410058 > open("/etc/localtime", O_RDONLY) = 4 > fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 > fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b321cf4b000 > read(4, > "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., > 4096) = 405 > lseek(4, -240, SEEK_CUR) = 165 > read(4, > "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., > 4096) = 240 > close(4) = 0 > munmap(0x2b321cf4b000, 4096) = 0 > gettimeofday({1319410058, 344663}, NULL) = 0 > open("/dev/urandom", O_RDONLY) = 4 > fcntl(4, F_GETFD) = 0 > fcntl(4, F_SETFD, FD_CLOEXEC) = 0 > getpid() > getuid() = 0 > getppid() = 31097 > gettimeofday({1319410058, 346012}, NULL) = 0 > gettimeofday({1319410058, 346216}, NULL) = 0 > read(4, "\266#\216\21#\215\354\33\266\255\340\360D?\242\244", 16) = 16 > gettid() > lseek(3, 0, SEEK_SET) = 0 > write(3, > "conectix\0\0\0\2\0\1\0\0\0\0\0\0\0\0\2\0\0267\306\212tap\0"..., 512) > = -1 EINVAL (Invalid argument) > close(3) = 0 > unlink("vhd.img") = 0 > exit_group(22) = ? > > 2 in non-shared directory: (everything is normal) > execve("/usr/sbin/vhd-util", ["vhd-util", "create", "-n", > "vhd.img", "-s", "2048"], [/* 22 vars */]) = 0 > brk(0) = 0x602000 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b766ea44000 > uname({sys="Linux", node="node34", ...}) = 0 > access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or > directory) > open("/etc/ld.so.cache", O_RDONLY) = 3 > fstat(3, {st_mode=S_IFREG|0644, st_size=73642, ...}) = 0 > mmap(NULL, 73642, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b766ea45000 > close(3) = 0 > open("/usr/lib64/libvhd.so.1.0", 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\340< > \0030\0\0\0"..., 832) = 832 > fstat(3, {st_mode=S_IFREG|0644, st_size=376324, ...}) = 0 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b766ea57000 > mmap(0x3003200000, 2198912, PROT_READ|PROT_EXEC, > MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3003200000 > mprotect(0x3003218000, 2097152, PROT_NONE) = 0 > mmap(0x3003418000, 4096, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x3003418000 > close(3) = 0 > open("/lib64/libuuid.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\25\0\0\0\0\0\0"..., 832) > = 832 > fstat(3, {st_mode=S_IFREG|0755, st_size=15360, ...}) = 0 > mmap(NULL, 2110488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, > 3, 0) = 0x2b766ea58000 > mprotect(0x2b766ea5c000, 2093056, PROT_NONE) = 0 > mmap(0x2b766ec5b000, 4096, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x2b766ec5b000 > close(3) = 0 > open("/lib64/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\220\332a\0010\0\0\0"..., > 832) = 832 > fstat(3, {st_mode=S_IFREG|0755, st_size=1718120, ...}) = 0 > mmap(0x3001600000, 3498328, PROT_READ|PROT_EXEC, > MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3001600000 > mprotect(0x300174e000, 2093056, PROT_NONE) = 0 > mmap(0x300194d000, 20480, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14d000) = 0x300194d000 > mmap(0x3001952000, 16728, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3001952000 > close(3) = 0 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b766ec5c000 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b766ec5d000 > arch_prctl(ARCH_SET_FS, 0x2b766ec5cdc0) = 0 > mprotect(0x300194d000, 16384, PROT_READ) = 0 > mprotect(0x300141b000, 4096, PROT_READ) = 0 > munmap(0x2b766ea45000, 73642) = 0 > brk(0) = 0x602000 > brk(0x623000) = 0x623000 > open("vhd.img", O_WRONLY|O_CREAT|O_TRUNC|O_DIRECT, 0644) = 3 > stat("vhd.img", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 > time(NULL) = 1319411057 > open("/etc/localtime", O_RDONLY) = 4 > fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 > fstat(4, {st_mode=S_IFREG|0644, st_size=405, ...}) = 0 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0x2b766ea45000 > read(4, > "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., > 4096) = 405 > lseek(4, -240, SEEK_CUR) = 165 > read(4, > "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0\0\0\0"..., > 4096) = 240 > close(4) = 0 > munmap(0x2b766ea45000, 4096) = 0 > gettimeofday({1319411057, 55555}, NULL) = 0 > open("/dev/urandom", O_RDONLY) = 4 > fcntl(4, F_GETFD) = 0 > fcntl(4, F_SETFD, FD_CLOEXEC) = 0 > getpid() > getuid() = 0 > getppid() = 31167 > gettimeofday({1319411057, 56604}, NULL) = 0 > gettimeofday({1319411057, 56766}, NULL) = 0 > read(4, "\275A\20\351\201o\10}\230\345J\34\272\n}\r", 16) = 16 > gettid() > lseek(3, 0, SEEK_SET) = 0 > write(3, > "conectix\0\0\0\2\0\1\0\0\0\0\0\0\0\0\2\0\0267\312qtap\0"..., 512) = 512 > lseek(3, 512, SEEK_SET) = 512 > write(3, > "cxsparse\377\377\377\377\377\377\377\377\0\0\0\0\0\0\6\0\0\1\0\0\0\0\4\0"..., > 1024) = 1024 > lseek(3, 6144, SEEK_SET) = 6144 > write(3, > "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., > 512) = 512 > lseek(3, 5632, SEEK_SET) = 5632 > write(3, > "tdbatmap\0\0\0\0\0\0\30\0\0\0\0\1\0\1\0\2\377\377\377\377\0\0\0\0"..., 512) > = 512 > lseek(3, 1536, SEEK_SET) = 1536 > lseek(3, 1536, SEEK_SET) = 1536 > write(3, > "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., > 4096) = 4096 > lseek(3, 512, SEEK_SET) = 512 > write(3, > "cxsparse\377\377\377\377\377\377\377\377\0\0\0\0\0\0\6\0\0\1\0\0\0\0\4\0"..., > 1024) = 1024 > lseek(3, 0, SEEK_END) = 6656 > lseek(3, 0, SEEK_CUR) = 6656 > lseek(3, 6656, SEEK_SET) = 6656 > write(3, > "conectix\0\0\0\2\0\1\0\0\0\0\0\0\0\0\2\0\0267\312qtap\0"..., 512) = 512 > close(3) = 0 > exit_group(0) > > > I don??t know the reason , I really hope you can help me, thanks so much > > > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss at lists.lustre.org > http://lists.lustre.org/mailman/listinfo/lustre-discuss
Andreas Dilger
2011-Oct-26 07:47 UTC
[Lustre-discuss] can not create VHD format file in the client''s shared directory using lustre FS ??
On 2011-10-25, at 9:24 AM, chen guihua wrote:> I have??configured lustre 1.6.5 FS, and in the client,i tried??to create a VHD file in the shared directory , using command strace ?Co logfile vhd-tuil create ?Cn vhd.img ?Cs 2048, and execute the command to test whether the lustre support the VHD-format file or not?, I find some information as follows:(all command are excuted in client ) > > 1 in the lustre share directory,logfile records: > open("vhd.img", O_WRONLY|O_CREAT|O_TRUNC|O_DIRECT, 0644) = 3 > lseek(3, 0, SEEK_SET) = 0 > write(3, "conectix\0\0\0\2\0\1\0\0\0\0\0\0\0\0\2\0\0267\306\212tap\0"..., 512) = -1 EINVAL (Invalid argument)The "sector size" for Lustre is 4096 bytes (actually PAGE_SIZE), not 512 bytes. You are using O_DIRECT (which, by the way, is _really_ slow with such small IO sizes), so the IO needs to be sized and aligned at 4096-byte boundaries. This will be true of newer "advanced format" disk drives as well, so you need to update your code to use 4kB IOs, or better yet to just use buffered IO. Cheers, Andreas -- Andreas Dilger Principal Engineer Whamcloud, Inc.