Tuesday, October 22, 2013

Howto solve NFS mounting permission issue

1.       In root mode, ensure your Filesystem path is exported to allow NFS mounting. Type “exportfs –v” to list the current export paths.
[root@pgext01 ~]# exportfs -v
/swsea_reflash  (rw,async,wdelay,no_root_squash)
/qsscm_reflash  (rw,async,wdelay,no_root_squash)
/desg_reflash   (rw,async,wdelay,no_root_squash)
/swse_reflash   (rw,async,wdelay,no_root_squash)
/scm3_reflash   (rw,async,wdelay,no_root_squash)
/tftpboot       (rw,async,wdelay,no_root_squash)
/targetfs       (rw,async,wdelay,no_root_squash)
/devnfs         (rw,async,wdelay,no_root_squash)
/xfer           (rw,async,wdelay,no_root_squash)
2.       To modify, the export FS list, type “vi /etc/exports
      //devnfs *(rw,async,no_root_squash,no_all_squash)
//xfer *(rw,async,no_root_squash,no_all_squash)
//tftpboot *(rw,async,no_root_squash,no_all_squash)
//targetfs *(rw,async,no_root_squash,no_all_squash)
//desg_reflash *(rw,async,no_root_squash,no_all_squash)
//swse_reflash *(rw,async,no_root_squash,no_all_squash)
//swsea_reflash *(rw,async,no_root_squash,no_all_squash)
//qsscm_reflash *(rw,async,no_root_squash,no_all_squash)
//scm3_reflash *(rw,async,no_root_squash,no_all_squash)
//users *(rw,async,no_root_squash,no_all_squash)
3.       After update the path you want to export, save and exit.
4.       To make this changes take effect, type “exportfs –r
5. To confirm again, type "exportfs -v"
[root@pgext01 ~]# exportfs -v
/swsea_reflash  (rw,async,wdelay,no_root_squash)
/qsscm_reflash  (rw,async,wdelay,no_root_squash)
/desg_reflash   (rw,async,wdelay,no_root_squash)
/swse_reflash   (rw,async,wdelay,no_root_squash)
/scm3_reflash   (rw,async,wdelay,no_root_squash)
/tftpboot       (rw,async,wdelay,no_root_squash)
/targetfs       (rw,async,wdelay,no_root_squash)
/devnfs         (rw,async,wdelay,no_root_squash)
/users          (rw,async,wdelay,no_root_squash)/xfer           (rw,async,wdelay,no_root_squash)

No comments: