我正在使用Ubuntu Server 64bit.我已经安装了一个nfs作为rw,但每当我尝试在有问题的mountpoint上编辑任何东西时,我都会得到一个只读文件系统错误
我的etc / fstab读取:
# <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 /dev/mapper/product-root / ext4 errors=remount-ro 0 1 UUID=1cae6948-ca9d-4f0b-aec6-9e7a60bbbad8 /boot ext2 defaults 0 2 /dev/mapper/product-swap_1 none swap sw 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 vnxnfs1.company.com:/NFS2 /mnt/nfs2 nfs defaults 0 0
mount返回:
/dev/mapper/product-root on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,nosuid,nodev) sysfs on /sys type sysfs (rw,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,size=10%,mode=0755) none on /run/lock type tmpfs (rw,nodev,size=5242880) none on /run/shm type tmpfs (rw,nodev) /dev/sda1 on /boot type ext2 (rw) rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw) vnxnfs1.company.com:/NFS2 on /mnt/nfs2 type nfs (rw)
cat / proc / mounts返回:
rootfs / rootfs rw 0 0 sysfs /sys sysfs rw,relatime 0 0 proc /proc proc rw,relatime 0 0 udev /dev devtmpfs rw,relatime,size=16465812k,nr_inodes=4116453,mode=755 0 0 devpts /dev/pts devpts rw,mode=620,ptmxmode=000 0 0 tmpfs /run tmpfs rw,size=6590172k,mode=755 0 0 /dev/mapper/product-root / ext4 rw,errors=remount-ro,data=ordered 0 0 none /sys/fs/fuse/connections fusectl rw,relatime 0 0 none /sys/kernel/debug debugfs rw,relatime 0 0 none /sys/kernel/security securityfs rw,relatime 0 0 none /run/lock tmpfs rw,size=5120k 0 0 none /run/shm tmpfs rw,relatime 0 0 /dev/sda1 /boot ext2 rw,errors=continue 0 0 rpc_pipefs /run/rpc_pipefs rpc_pipefs rw,relatime 0 0 vnxnfs1.company.com:/NFS2 /mnt/nfs2 nfs rw,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.x.y.z,mountvers=3,mountport=1234,mountproto=udp,local_lock=none,addr=172.x.y.z 0 0
mnt上的文件读得很好,但每当我尝试更改任何内容时,我都会收到错误消息:
touch: cannot touch `/mnt/nfs2/path/to/test_file.txt': Read-only file system
我可以从其他服务器连接到有问题的nfs,并且可以正常读写.唯一的问题是在这台服务器上.我已经尝试了mount -o remount,rw vnxnfs1.company.com:/NFS2 / mnt / nfs2作为相关问题的答案,但无济于事.
对于数据转储,我只是试图包含任何可能产生线索的内容.
编辑:
更多细节
我一直在测试机器上的root用户遇到麻烦,写入nfs的工作原理是root用户以及其他用户(nfs-write-is-working)服务器.
来自工作服务器:ls -la / mnt / nfs2 /
total 76 drwxrwxrwx 12 root root 1024 2013-04-18 10:14 . drwxr-xr-x 24 root root 4096 2013-04-17 10:42 .. drwxrwxr-x 2 user user 80 2013-04-18 10:14 archives drwxrwxrwx 2 user user 1024 2012-08-15 10:13 assignee_dealiasing_temp_folder drwxrwxr-x 9 user user 1024 2013-03-11 13:50 data_runs drwxrwxrwx 2 user user 2048 2013-04-19 14:54 db_transfer_dumps drwxrwxrwx 2 root daemon 1024 2013-08-22 01:00 .etc drwxrwxrwx 2 root root 8192 2012-08-16 14:47 lost+found drwxr-xr-x 13 user user 1024 2013-08-16 13:37 projects drwxr-xr-x 35 user user 2048 2013-05-10 16:34 reports drwxrwxrwx 6 root root 1024 2013-04-17 16:47 saved_logs
来自vnxnfs1 server_export server_2 -list
server_2 : export "/NFS3" rw=172.16.0.0/24 root=172.16.0.0/24 export "/NFS2" rw=172.16.0.0/24:172.16.9.0/24 root=172.16.0.0/24:172.16.9.0/24 export "/NFS1" rw=172.16.0.0/24:172.16.9.0/24 root=172.16.0.0/24:172.16.9.0/24 export "/ISO" rw=172.16.9.16:172.16.9.18:172.16.9.20 root=172.16.9.16:172.16.9.18:172.16.9.20 export "/NFS0" rw=172.16.0.0/24 root=172.16.0.0/24 export "/" anon=0 access=128.221.252.100:128.221.253.100:128.221.252.101:128.221.253.101