I have two servers, one disk server (DS) with 3.7 TiB NFS share and one application server (AS) running OpenVZ. I have multiple VEs on the AS running from the NFS and some running from local disk.
The VEs running from ASs disks (2 GiB RAID 1) works without any problem, however the VEs running from the NFS share has problems with displaying disk size; df fails on ‘Unknown error 521’:
Thufir / # LANG=C df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 4076832 0 4076832 0% /lib/init/rw
tmpfs 4076832 0 4076832 0% /dev/shm
df: `/': Unknown error 521
The same problem occurs even on the AS (the host) itself; note that the NFS itself works fine:
Mentat samba # LANG=C df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 48K 3.9G 1% /dev
/dev/mapper/Mentat 1.9G 1.1G 685M 62% /union/ro
none 3.9G 17M 3.9G 1% /union/rw
union 3.9G 17M 3.9G 1% /
tmpfs 3.9G 0 3.9G 0% /lib/init/rw
tmpfs 3.9G 4.0K 3.9G 1% /dev/shm
/dev/md0 69M 9.5M 56M 15% /boot
/dev/md0 69M 9.5M 56M 15% /union/ro/boot
udev 3.9G 48K 3.9G 1% /union/ro/dev
/var/lib/vz/private/22002
3.9G 17M 3.9G 1% /var/lib/vz/root/22002
/dev/mapper/Mentat 1.9G 1.1G 685M 62% /var/lib/vz/root/22002/ro
tmpfs 3.9G 0 3.9G 0% /var/lib/vz/root/22002/lib/init/rw
tmpfs 3.9G 0 3.9G 0% /var/lib/vz/root/22002/dev/shm
192.168.193.2:/pool/Miles
3.7T 484G 3.2T 13% /pool/Miles
df: `/var/lib/vz/root/74002': Unknown error 521
tmpfs 3.9G 0 3.9G 0% /var/lib/vz/root/74002/lib/init/rw
tmpfs 3.9G 0 3.9G 0% /var/lib/vz/root/74002/dev/shm
192.168.193.2:/pool/Hayt
3.7T 484G 3.2T 13% /pool/Hayt
df: `/var/lib/vz/root/74003': Unknown error 521
and many similar errors differing only in VEID and server name
There are no information in dmesg or syslog regarding this. The OpenVZ kernel I’m running is 2.6.22-ovz005 with MadWifi and UnionFS patches. The kernel on the DS is 2.6.22.14 vanilla.
UPDATE: Both servers are dual core AMD64 with 64bit Debian. All VEs are 64bit Debian as well.
/etc/exports on the DS
/pool 192.168.193.1(rw,sync,no_subtree_check,no_root_squash)
The VEs has no quota at all.
ANOTHER UPDATE: When the VE is run from smaller (local) drive and the NFS is mounted inside it, it works fine. I haven’t tested whether the problem remains when simfsing such disk array directly.
If the problem would affect only the df, it would be inconvinient but one could live with it, but it affects all applications that wants to know how big the share is. So the big deal that’s killing me is that Samba running in one such VE permanently crashes when anyone tries to open any file in RW mode (and that it does not report the disk size at all).
So the question is:
is there any possibility to fix some configuration and make simfs happy? or is this a bug somewhere in something?
[Updated on: Fri, 14 December 2007 00:19]
Report message to a moderator