About this list Date view Thread view Subject view Author view Attachment view

From: smagnuson_at_forzani.com
Date: Wed 06 Apr 2005 - 15:24:22 BST


Herbert,
Thanks for the reply,

>> 1) When inside a guest OS the "df" command does not work.
>> Is this normal? Here is my output:
>> root_at_vcrux03 /
>> :df
>> df: cannot read table of mounted filesystems
>> root_at_vcrux03 /
>> :df -k
>> df: cannot read table of mounted filesystems

> no, that's not normal, but I suspect you are missing some
> file (maybe /etc/mtab or so) which is used by the df
> tool (using strace -fF on the df might shed some light
> on that)

>> Other commands like top, ps, du all work fine.
 

When on the host server
cat /usr/local/etc/vservers/crux03/fstab
none /proc proc defaults 0 0
none /tmp tmpfs size=16m,mode=1777 0 0
none /dev/pts devpts gid=5,mode=620 0 0

When on the vserver
ls -la /etc/mtab
-rw-r--r-- 1 root root 0 Apr 6 08:13 /etc/mtab

ls -la /etc/fstab
-rw-r--r-- 1 root root 0 Apr 6 08:12 /etc/fstab

should I be populating my fstab with something? Everytime I put something in it the versver won't start. Anyone have a example to share?

:strace -fF df
execve("/bin/df", ["df"], [/* 25 vars */]) = 0
uname({sys="Linux", node="vcrux03", ...}) = 0
brk(0) = 0x8051000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fea000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/sse2/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("i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("sse2/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("/usr/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/sse2", 0xbffff348) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbffff348) = -1 ENOENT (No such file or directory)
open("/usr/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/sse2", 0xbffff348) = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2", 0xbffff348) = -1 ENOENT (No such file or directory)
open("/lib/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", 0xbffff348) = -1 ENOENT (No such file or directory)
open("/lib/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2", 0xbffff348) = -1 ENOENT (No such file or directory)
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\340T\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1150376, ...}) = 0
mmap2(NULL, 1129964, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7ed6000
mmap2(0xb7fdf000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x109) = 0xb7fdf000
mmap2(0xb7fe8000, 7660, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fe8000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ed5000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7ed5280, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
brk(0) = 0x8051000
brk(0x8072000) = 0x8072000
brk(0) = 0x8072000
open("/etc/mtab", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ed4000
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7ed4000, 4096) = 0
write(2, "df: ", 4df: ) = 4
write(2, "cannot read table of mounted fil"..., 40cannot read table of mounted filesystems) = 40
write(2, "\n", 1
) = 1
exit_group(1) = ?
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Apr 2005 - 15:24:52 BST by hypermail 2.1.3