Linux NFS Read-only File system

Source: Internet
Author: User

[email protected]/4 # touch 1touch: cannot touch  ' 1 ': Read-only  File systemmount no permissions? [email protected]/0 # mount/dev/sda2 on / type ext4  (rw) proc on  /proc type proc  (rw) sysfs on /sys type sysfs  (rw) devpts on  /dev/pts type devpts  (rw,gid=5,mode=620) Tmpfs on /dev/shm type tmpfs   (rw,rootcontext= "System_u:object_r:tmpfs_t:s0")/dev/sda1 on /boot type ext4  (rw ) none on /proc/sys/fs/binfmt_misc type binfmt_misc  (rw) sunrpc on /var/lib/ nfs/rpc_pipefs type rpc_pipefs  (rw) 192.168.0.71:/vol/vol2 on /share type  nfs  (rw,addr=192.168.0.71)/dev/sdb1 on /backup type xfs  (rw) nfsd on / proc/fs/nfsd type nfsd  (rw) 192.168.3.150:/tmp/sem on /tmp/sem type nfs  (rw,vers=4,addr=192.168.3.150,clientaddr=192.168.2.127) is the RW permission. What's the situation? Look at the permissions, 755, no problem. [email protected]/4 # lltotal 16drwxr-xr-x 4 root root  4096 dec  3 11:30 clientdrwxr-xr-x 2 root root 4096 dec  25 15:17 flashdrwxr-xr-x 6 root root 4096 dec  3 16:46  touchdrwxr-xr-x 7 root root 4096 dec  3 15:47 web
Assign a value of 777 permission to try? [email protected]/4 # chmod -r 777 /tmp/sem/chmod: changing  permissions of  '/tmp/sem/client ': read-only file systemchmod: changing  permissions of  '/tmp/sem/flash ': read-only file systemchmod: changing  permissions of  '/tmp/sem/web/model2 ':  read-only file system server's file system corrupted? Verify the next [email protected]/1 # mkdir 1192.168.3.150 [/tmp/sem] 2014-12-26  12:08:18[email protected]/1 # ls1  client  flash  touch   web server side no problem ah. Is it an NFS problem? [email protected]/1 # vim /etc/exports /tmp/htdocs/sem *  (RW) did not see, restart NFS under the test? 192.168.3.150 [/www/youyuan.com.1/htdocs/sem] 2014-12-26 12:49:59[email protected]/1  # /etc/init.d/nfs restartshutting down nfs daemon:                                    [  OK  ]Shutting down NFS  mountd:                                   [   OK  ]Shutting down NFS quotas:                                    [  OK  ]Shutting down NFS  services:                                 [   Ok  ]starting&nbSp nfs services:  exportfs: no options for /www/youyuan.com.1/htdocs/sem  *: suggest * (Sync)  to avoid warningexportfs: no host name given  with /www/youyuan.com.1/htdocs/sem  (rw),  suggest * (rw)  to avoid  warningexportfs: incompatible duplicated export entries:exportfs:        *:/www/youyuan.com.1/htdocs/sem  (0x424)  [IGNORED]exportfs:        *:/www/youyuan.com.1/htdocs/sem  (0x425)                                                               [  ok   ]starting&nbSp nfs quotas:                                         [  OK  ]Starting NFS mountd:                                          [  OK  ]Starting NFS daemon:                                         [  OK   ] There are no spaces between * and (RW). Fix it, the "*" range is too big [email protected]/1 # vim /etc/exports /tmp/htdocs/sem 192.168.0.0/ 22 (Rw,sync,no_root_squash) Restart nfs:[email protected]/1 # /etc/init.d/nfs restartshutting  down nfs daemon:                                    [  OK  ]Shutting down NFS mountd:                                    [  OK  ]Shutting  down nfs quotas:                                    [  OK  ]Shutting down NFS services:                                  [  OK  ]Starting NFS services:                                       [   OK  ]Starting NFS quotas:                                         [  ok  ]starting  NFS mountd:                                         [  ok  ]starting nfs daemon:                                         [  OK   ] is the client trying? [email protected]/4 # touch 1touch: cannot touch  ' 1 ': Permission  Denied this newspaper access denied, this is related to the authority, again assigned a value of 777 to try? [email protected]/4 # touch 1192.168.0.193 [/tmp/sem] 2014-12-26 13:01:47[ email protected]/4 # ls1  client  flash  touch  web[ email protected]/4 # rm 1 Yes, correct permission is 755[email protected]/4 # touch  1192.168.0.193 [/tmp/sem] 2014-12-26 13:02:14[email protected]/4 # ls1   client  flash  touch  web problem Solving;


This article is from the Linux system maintenance blog, so be sure to keep this source http://linuxadmin.blog.51cto.com/2683824/1596198

Linux NFS Read-only File system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.