Herbert, I'm sorry, perhaps I've gotten off track. This goes back to the df command not working in the vserver.
:df df: cannot read table of mounted filesystems you mentioned the following to me and I started chasing that rabbit. > > 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) I was thinking that I needed an entry in /etc/fstab on the vserver to get df to work. My strace is in a previous posting. thanks sig -----Original Message----- From: Herbert Poetzl [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 2:51 PM To: Magnuson, Sig Cc: [email protected] Subject: Re: [Vserver] a couple of beginner questions On Wed, Apr 06, 2005 at 12:58:09PM -0600, [EMAIL PROTECTED] wrote: > If I add the following to the vserver fstab file and restart vserver. > cat /etc/fstab > /dev/root / ext3 rw 0 0 > > Then df command works for the vserver partition > df -h > Filesystem Size Used Avail Use% Mounted on > /dev/root 22G 2.5G 18G 13% / > > I have not gotten any other entries to work well, what _would_ you like to add there? I'm still not able to see what you try to accomplish ... please either try to provide some more details, or pay a visit at the irc channel #vserver @ irc.oftc.net TIA, Herbert > But doing the above breaks the df command on the host server. > df -h > Filesystem Size Used Avail Use% Mounted on > /dev/hdv1 198M 23M 166M 12% / > none 2.0G 33M 1.9G 2% /tmp > > any suggestions on how this should be done? > thanks > sig > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Magnuson, > Sig > Sent: Wednesday, April 06, 2005 8:31 AM > To: [email protected] > Subject: RE: [Vserver] a couple of beginner questions > > > Sorry, looking at my previous post I realized many may not look further down. > Please scroll down. > > > >> 1) When inside a guest OS the "df" command does not work. > >> Is this normal? Here is my output: > >> [EMAIL PROTECTED] / > >> :df > >> df: cannot read table of mounted filesystems > >> [EMAIL PROTECTED] / > >> :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 > [email protected] > http://list.linux-vserver.org/mailman/listinfo/vserver > _______________________________________________ > Vserver mailing list > [email protected] > http://list.linux-vserver.org/mailman/listinfo/vserver _______________________________________________ Vserver mailing list [email protected] http://list.linux-vserver.org/mailman/listinfo/vserver
