Bug 48771 - Input/output errors will almost all file operations over NFS4
Summary: Input/output errors will almost all file operations over NFS4
Status: CLOSED DOCUMENTED
Alias: None
Product: File System
Classification: Unclassified
Component: NFS (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Trond Myklebust
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-14 12:13 UTC by Mehmet Giritli
Modified: 2012-10-14 15:03 UTC (History)
0 users

See Also:
Kernel Version: 3.4.9
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg (66.02 KB, text/plain)
2012-10-14 12:18 UTC, Mehmet Giritli
Details

Description Mehmet Giritli 2012-10-14 12:13:38 UTC
I use GNOME's nautilus as my file manager, but I tested this with commandline tools (cp, rm etc.) as well. It is the same.

I have an NFS4 server running and I very frequently get an "Input/output Error" whenever I am trying to remove or upload or even download files over nfs, even though *sometimes* the action, like deleting, is completed successfully. I don't get crashes or anything in server logs, so I don't know what to provide you except my dmesg. If you tell me how to get extra info, I'll gladly do it.
Comment 1 Mehmet Giritli 2012-10-14 12:18:44 UTC
Created attachment 83421 [details]
dmesg
Comment 2 Trond Myklebust 2012-10-14 14:23:06 UTC
Can you please post the contents of "cat /proc/mounts"?
Comment 3 Mehmet Giritli 2012-10-14 14:39:58 UTC
Of course. Here you go:

rootfs / rootfs rw 0 0
/dev/root / ext4 rw,noatime,data=ordered 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
rc-svcdir /lib64/rc/init.d tmpfs rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sda6 /var ext4 rw,noatime,data=ordered 0 0
/dev/sdd1 /usr/portage/distfiles ext4 rw,noatime,data=ordered 0 0
/dev/sdd2 /mnt/media/backups ext4 rw,noatime,data=ordered 0 0
/dev/sda7 /home ext4 rw,noatime,data=ordered 0 0
/dev/mapper/donkey-downloads /mnt/media/donkey ext4 rw,noatime,data=ordered 0 0
/dev/sdb1 /mnt/media/library/main ext4 rw,noatime,data=ordered 0 0
/dev/sdb2 /mnt/media/library/sub-1 ext4 rw,noatime,data=ordered 0 0
/dev/sdb3 /mnt/media/library/sub-2 ext4 rw,noatime,data=ordered 0 0
/dev/sdd1 /exports/distfiles ext4 rw,noatime,data=ordered 0 0
/dev/root /exports/portage ext4 rw,noatime,data=ordered 0 0
/dev/sda6 /exports/www ext4 rw,noatime,data=ordered 0 0
/dev/sda6 /exports/dav ext4 rw,noatime,data=ordered 0 0
/dev/root /exports/media ext4 rw,noatime,data=ordered 0 0
/dev/sdd2 /exports/media/backups ext4 rw,noatime,data=ordered 0 0
/dev/mapper/donkey-downloads /exports/media/donkey ext4 rw,noatime,data=ordered 0 0
/dev/sdb1 /exports/media/library/main ext4 rw,noatime,data=ordered 0 0
/dev/sdb2 /exports/media/library/sub-1 ext4 rw,noatime,data=ordered 0 0
/dev/sdb3 /exports/media/library/sub-2 ext4 rw,noatime,data=ordered 0 0
/dev/sda7 /exports/home ext4 rw,noatime,data=ordered 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
nfsd /proc/fs/nfsd nfsd rw,nosuid,nodev,noexec,relatime 0 0
Comment 4 Trond Myklebust 2012-10-14 14:43:35 UTC
Sorry. I should have been more specific: I meant on the NFSv4 client.
Comment 5 Mehmet Giritli 2012-10-14 14:45:57 UTC
No problem. Here is the content:

rootfs / rootfs rw 0 0
/dev/root / ext4 rw,noatime,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=4050612k,nr_inodes=1012653,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
cgroup_root /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0
openrc /sys/fs/cgroup/openrc cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc 0 0
cpu /sys/fs/cgroup/cpu cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0
cpuacct /sys/fs/cgroup/cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct 0 0
blkio /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sdb3 /boot ext4 rw,noatime,data=ordered 0 0
/dev/sdb6 /home ext3 rw,noatime,data=ordered 0 0
/dev/mapper/media-musica /mnt/media/musica ext4 rw,noatime,data=ordered 0 0
/dev/mapper/media-videos /mnt/media/videos ext4 rw,noatime,data=ordered 0 0
/dev/sdb8 /mnt/media/Documents ext3 rw,noatime,data=ordered 0 0
/dev/sdc1 /mnt/media/Data ext4 rw,noatime,data=ordered 0 0
/dev/mapper/media-musica /exports/musica ext4 rw,relatime,data=ordered 0 0
/dev/sdb8 /exports/documents ext3 rw,relatime,data=ordered 0 0
/dev/mapper/media-videos /exports/videos ext4 rw,relatime,data=ordered 0 0
/dev/sdc1 /exports/data ext4 rw,relatime,data=ordered 0 0
/dev/sdb6 /exports/home ext3 rw,relatime,data=ordered 0 0
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/autofs/auto.misc /mnt/autofs autofs rw,relatime,fd=6,pgrp=2463,timeout=600,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw,nosuid,nodev,noexec,relatime 0 0
smeagol:/portage/ /usr/portage nfs4 rw,nosuid,nodev,noexec,relatime,vers=4.0,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.2.3,local_lock=none,addr=192.168.2.2 0 0
smeagol:/distfiles/ /usr/portage/distfiles nfs4 rw,nosuid,nodev,noexec,relatime,vers=4.0,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.2.3,local_lock=none,addr=192.168.2.2 0 0
smeagol:/media/ /mnt/autofs/gollum-media nfs4 rw,relatime,vers=4.0,rsize=131072,wsize=8192,namlen=255,soft,proto=tcp,port=0,timeo=10,retrans=2,sec=sys,clientaddr=192.168.2.3,local_lock=none,addr=192.168.2.2 0 0
smeagol:/media/donkey/ /mnt/autofs/gollum-media/donkey nfs4 rw,relatime,vers=4.0,rsize=131072,wsize=8192,namlen=255,soft,proto=tcp,port=0,timeo=10,retrans=2,sec=sys,clientaddr=192.168.2.3,local_lock=none,addr=192.168.2.2 0 0
smeagol:/ /mnt/autofs/gollum-home nfs4 rw,relatime,vers=4.0,rsize=131072,wsize=8192,namlen=255,soft,proto=tcp,port=0,timeo=10,retrans=2,sec=sys,clientaddr=192.168.2.3,local_lock=none,addr=192.168.2.2 0 0
Comment 6 Trond Myklebust 2012-10-14 14:55:42 UTC
The reason for the EIO is that you are using soft mounts (which return
EIO when the server is unresponsive) in combination with a 1 second timeout.

Please leave the timeout at 60seconds (timeo=600) when using a TCP connection.
TCP provides reliability guarantees that make resends unnecessary, except in
the event of a disconnection.
Comment 7 Mehmet Giritli 2012-10-14 15:01:19 UTC
Thanks man. I have been focusing so mush on the server side of things that I completely forgot to have a look at the client settings. Thanks a lot.
Comment 8 Trond Myklebust 2012-10-14 15:03:43 UTC
No problem. Closing this bug then...

Note You need to log in before you can comment on or make changes to this bug.