{"id":4636,"date":"2018-01-09T09:16:26","date_gmt":"2018-01-09T09:16:26","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=4636"},"modified":"2018-09-25T09:39:32","modified_gmt":"2018-09-25T09:39:32","slug":"configuring-nfs-to-access-the-files-from-remote-linux-machine-as-a-mount-point","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/configuring-nfs-to-access-the-files-from-remote-linux-machine-as-a-mount-point\/","title":{"rendered":"Configuring NFS to access the files from remote Linux machine as a mount point"},"content":{"rendered":"<div>I have a 2Tb of storage on a linux box, and i want to use that storage as a mount point from another machine.<\/div>\n<div>As a root user on the remote machine, specify the mount point details<\/div>\n<div>\n<div><strong>$cat \/etc\/exports<\/strong><\/div>\n<div>\/scratch *(rw)<\/div>\n<div>\/fusionapps *(rw,no_root_squash)<\/div>\n<\/div>\n<div>And restart the NFS<\/div>\n<div><strong>sudo \/etc\/rc.d\/init.d\/nfs restart<\/strong>\u00a0(All services should be in \u00a0running condition)<\/div>\n<div><strong>sudo \/etc\/rc.d\/init.d\/nfs status<\/strong>\u00a0(All services should be \u00a0in running condition)<\/div>\n<div>And on the local machine, perfrom the following steps<\/div>\n<div>1. Create the stage dir under \/ as a root user and assign 777 permissions<\/div>\n<div>2. Ad the entry to \/etc\/fstab file<\/div>\n<div>slcai664.us.oracle.com:\/fusionapps \/stage nfs rw,hard,nointr,rsize=131072,wsize=131072,timeo=600,noacl,noatime,nodiratime,lock 0 0<\/div>\n<div>3. Then try &#8220;mount -a&#8221;<\/div>\n<div>If there are any mount point issues, say even as root user, you are not able to modify the files<\/div>\n<div>\n<h1><strong>Unable to mount Read-Only file System<\/strong><\/h1>\n<p>then use<\/p>\n<pre><code>sudo mount -n -o remount,rw \/<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I have a 2Tb of storage on a linux box, and i want to use that storage as a mount point from another machine. As a root user on the&#8230; <\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4957],"tags":[254,460,4612,4428,819,230],"class_list":["post-4636","post","type-post","status-publish","format-standard","hentry","category-linux","tag-configure","tag-linux","tag-mount-point","tag-nfs","tag-remotely","tag-setup"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/4636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=4636"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/4636\/revisions"}],"predecessor-version":[{"id":4637,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/4636\/revisions\/4637"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=4636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=4636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=4636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}