{"id":973,"date":"2015-12-29T14:21:11","date_gmt":"2015-12-29T14:21:11","guid":{"rendered":"http:\/\/haisins.epac.to\/wordpress\/?p=973"},"modified":"2015-12-29T14:21:11","modified_gmt":"2015-12-29T14:21:11","slug":"nfs-%ed%8c%8c%ec%9d%bc%ea%b3%b5%ec%9c%a0-rw-%ea%b6%8c%ed%95%9c-%ea%b0%96%eb%8a%94-%eb%b0%a9%eb%b2%95","status":"publish","type":"post","link":"http:\/\/haisins.synology.me\/wordpress\/?p=973","title":{"rendered":"NFS \ud30c\uc77c\uacf5\uc720 RW \uad8c\ud55c \uac16\ub294 \ubc29\ubc95"},"content":{"rendered":"<p><P>nfs \ud30c\uc77c\uacf5\uc720 rw \uad8c\ud55c \uac16\ub294 \ubc29\ubc95<\/P><br \/>\n<P>\u203b root\uad8c\ud55c\uc73c\ub85c rw\uad8c\ud55c \uac16\uae30<\/P><br \/>\n<P>&lt;\uc11c\ubc84\uc138\ud305&gt;<\/P><br \/>\n<P><A href=\"mailto:1.root@sunny\">1.root@sunny<\/A> # df -k<br \/>&nbsp;\/dev\/dsk\/c0t1d0s3&nbsp;&nbsp;&nbsp; 10328404 7742729 2482391&nbsp;&nbsp;&nbsp; 76%&nbsp;&nbsp;&nbsp; \/mnt&nbsp;&nbsp; &lt;&#8211;\uc784\uc2dc\uacf5\uc720<\/P><br \/>\n<P><A href=\"mailto:2.root@sunny\">2.root@sunny<\/A> # vi \/etc\/dfs\/dfstab<br \/>&nbsp;share -F nfs -o root=kingdom1:kingdom2 -d &#8220;test dir&#8221; \/mnt<\/P><br \/>\n<P><A href=\"mailto:3.root@sunny\">3.root@sunny<\/A> # shareall<\/P><br \/>\n<P><A href=\"mailto:4.root@sunny\">4.root@sunny<\/A> # share<br \/>&nbsp;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/mnt&nbsp;&nbsp; root=kingdom1:kingdom2&nbsp;&nbsp; &#8220;test dir&#8221; <\/P><br \/>\n<P><A href=\"mailto:5.root@sunny\">5.root@sunny<\/A> # vi \/etc\/hosts<br \/>&nbsp;59.150.255.144&nbsp; kingdom1<br \/>&nbsp;59.150.255.143&nbsp; kingdom2<\/P><br \/>\n<P>6. <A href=\"mailto:root@sunny\">root@sunny<\/A> # svcs -a | grep nfs<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/cbd:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/mapid:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/status:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/nlockmgr:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/client:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/rquota:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\uc6d4_09&nbsp; svc:\/network\/nfs\/server:default&nbsp;&nbsp; &lt;&#8211;server\uac00 \uc628\ub77c\uc778\uc0c1\ud0dc\uc784\uc744 \ud655\uc778<\/P><br \/>\n<P><br \/>&lt;\ud074\ub77c\uc774\uc5b8\ud2b8\uc138\ud305&gt;<\/P><br \/>\n<P><A href=\"mailto:1.root@kingdom1\">1.root@kingdom1<\/A> # vi \/etc\/hosts<br \/>&nbsp;59.150.255.98&nbsp;&nbsp; sunny<\/P><br \/>\n<P><A href=\"mailto:2.root@kingdom1\">2.root@kingdom1<\/A> # ping sunny<br \/>&nbsp;sunny is alive<\/P><br \/>\n<P><A href=\"mailto:3.root@kingdom1\">3.root@kingdom1<\/A> # vi \/etc\/vfstab<br \/>sunny:\/mnt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nfs&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes&nbsp;&nbsp;&nbsp;&nbsp; soft,bg<\/P><br \/>\n<P><A href=\"mailto:4.root@kingdom1\">4.root@kingdom1<\/A> # mount \/a<br \/>\ub610\ub294 <br \/>&nbsp; <A href=\"mailto:root@kingdom1\">root@kingdom1<\/A> # mount -F nfs sunny:\/mnt \/a<\/P><br \/>\n<P><A href=\"mailto:5.root@kingdom1\">5.root@kingdom1<\/A> # cd \/a<\/P><br \/>\n<P><A href=\"mailto:6.root@kingdom1\">6.root@kingdom1<\/A> # touch 1 2 3&nbsp;&nbsp; &lt;&#8211; \ube48\ud30c\uc77c \uc50c\uc5ec\uc9c0\uba74 \uc131\uacf5<\/P><br \/>\n<P>&nbsp;<\/P><br \/>\n<P>\u203b \ud2b9\uc815 \uc720\uc800\ub85c rw\uad8c\ud55c\uac16\uae30<br \/>&lt;\uc11c\ubc84\uc138\ud305&gt;<\/P><br \/>\n<P>ex&gt; oracle \uc720\uc800\ub85c\uc758 \uad8c\ud55c (\uc2e4\uc81c \uc0ac\uc774\ud2b8\uc5d0\uc11c\ub294 \uad8c\ud55c gid\/uid \ud655\uc778\ud544\uc694)<br \/><A href=\"mailto:1.root@sunny\">1.root@sunny<\/A> # grouadd -g 100 dba<\/P><br \/>\n<P><A href=\"mailto:2.root@sunny\">2.root@sunny<\/A> # useradd -u 102 -g 100 -d \/datadisk\/oracle -m -s \/usr\/bin\/ksh oracle<\/P><br \/>\n<P><A href=\"mailto:3.root@sunny\">3.root@sunny<\/A> # df -k<br \/>&nbsp;\/dev\/dsk\/c0t1d0s3&nbsp;&nbsp;&nbsp; 10328404 7742729 2482391&nbsp;&nbsp;&nbsp; 76%&nbsp;&nbsp;&nbsp; \/mnt&nbsp;&nbsp; &lt;&#8211;\uc784\uc2dc\uacf5\uc720<\/P><br \/>\n<P><A href=\"mailto:4.root@sunny\">4.root@sunny<\/A> # ls -adl \/mnt<br \/>drwxr-xr-x&nbsp;&nbsp; 9 root&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512&nbsp; 1\uc6d4 10\uc77c&nbsp; 12:53 \/mnt<br \/>&nbsp;<br \/><A href=\"mailto:5.root@sunny\">5.root@sunny<\/A> # chown -R oracle:dba \/mnt<br \/>drwxr-xr-x&nbsp;&nbsp; 9 oracle&nbsp;&nbsp; dba&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512&nbsp; 1\uc6d4 10\uc77c&nbsp; 12:53 \/mnt<\/P><br \/>\n<P><A href=\"mailto:6.root@sunny\">6.root@sunny<\/A> # cat \/etc\/passwd<br \/>oracle:x:102:100::\/datadisk\/oracle:\/usr\/bin\/ksh<\/P><br \/>\n<P><A href=\"mailto:7.root@sunny\">7.root@sunny<\/A> # vi \/etc\/dfs\/dfstab<br \/>&nbsp;share -F nfs -o rw=kingdom1:kingdom2 -d &#8220;test dir&#8221; \/mnt<\/P><br \/>\n<P><A href=\"mailto:8.root@sunny\">8.root@sunny<\/A> # shareall<\/P><br \/>\n<P><A href=\"mailto:9.root@sunny\">9.root@sunny<\/A> # share<br \/>&nbsp;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/mnt&nbsp;&nbsp; rw=kingdom1:kingdom2&nbsp;&nbsp; &#8220;test dir&#8221; <\/P><br \/>\n<P><A href=\"mailto:10.root@sunny\">10.root@sunny<\/A> # vi \/etc\/hosts<br \/>&nbsp;59.150.255.144&nbsp; kingdom1<br \/>&nbsp;59.150.255.143&nbsp; kingdom2<\/P><br \/>\n<P>11. <A href=\"mailto:root@sunny\">root@sunny<\/A> # svcs -a | grep nfs<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/cbd:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/mapid:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/status:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/nlockmgr:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/client:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11\uc6d4_28&nbsp; svc:\/network\/nfs\/rquota:default<br \/>online&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1\uc6d4_09&nbsp; svc:\/network\/nfs\/server:default&nbsp;&nbsp; &lt;&#8211;server\uac00 \uc628\ub77c\uc778\uc0c1\ud0dc\uc784\uc744 \ud655\uc778<\/P><br \/>\n<P><br \/>&lt;\ud074\ub77c\uc774\uc5b8\ud2b8\uc138\ud305&gt;<\/P><br \/>\n<P><A href=\"mailto:1.root@kingdom1\">1.root@kingdom1<\/A> # vi \/etc\/hosts<br \/>&nbsp;59.150.255.98&nbsp;&nbsp; sunny<\/P><br \/>\n<P><A href=\"mailto:2.root@kingdom1\">2.root@kingdom1<\/A> # ping sunny<br \/>&nbsp;sunny is alive<\/P><br \/>\n<P><A href=\"mailto:3.root@kingdom1\">3.root@kingdom1<\/A> # vi \/etc\/vfstab<br \/>sunny:\/mnt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nfs&nbsp;&nbsp;&nbsp;&nbsp; &#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes&nbsp;&nbsp;&nbsp;&nbsp; soft,bg <br \/>&nbsp;<br \/><A href=\"mailto:4.root@kingdom1\">4.root@kingdom1<\/A> # mount \/a<br \/>\ub610\ub294 <br \/>&nbsp; <A href=\"mailto:root@kingdom1\">root@kingdom1<\/A> # mount -F nfs sunny:\/mnt \/a<\/P><br \/>\n<P><A href=\"mailto:5.root@kingdom1\">5.root@kingdom1<\/A> # ls -adl \/a<br \/>drwxr-xr-x+&nbsp; 9 oracle&nbsp;&nbsp; dba&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512&nbsp; 1\uc6d4 10\uc77c&nbsp; 13:12 \/a<\/P><br \/>\n<P><A href=\"mailto:6.root@kingdom1\">6.root@kingdom1<\/A> # cat \/etc\/passwd<br \/>&nbsp;oracle:x:102:100::\/oracle\/inst\/oracle:\/bin\/ksh<\/P><br \/>\n<P><A href=\"mailto:7.root@kingdom1\">7.root@kingdom1<\/A> # su &#8211; oracle&nbsp; &lt;&#8212;oracle user\ub85c switch<\/P><br \/>\n<P>8. $ cd \/a<\/P><br \/>\n<P>9. $ touch 1 2 3&nbsp; &lt;&#8212;\ube48\ud30c\uc77c 1 2 3 \uc50c\uc5ec\uc9c0\uba74 \uc131\uacf5<br \/>&nbsp;<br \/><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>nfs \ud30c\uc77c\uacf5\uc720 rw \uad8c\ud55c \uac16\ub294 \ubc29\ubc95 \u203b root\uad8c\ud55c\uc73c\ub85c rw\uad8c\ud55c \uac16\uae30 &lt;\uc11c\ubc84\uc138\ud305&gt; 1.root@sunny # df -k&nbsp;\/dev\/dsk\/c0t1d0s3&nbsp;&nbsp;&nbsp; 10328404 7742729 2482391&nbsp;&nbsp;&nbsp; 76%&nbsp;&nbsp;&nbsp; \/mnt&nbsp;&nbsp; &lt;&#8211;\uc784\uc2dc\uacf5\uc720 2.root@sunny # vi \/etc\/dfs\/dfstab&nbsp;share -F nfs -o root=kingdom1:kingdom2 -d &#8220;test dir&#8221; \/mnt 3.root@sunny # shareall 4.root@sunny # share&nbsp;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/mnt&nbsp;&nbsp; root=kingdom1:kingdom2&nbsp;&nbsp; &#8220;test dir&#8221; 5.root@sunny # vi \/etc\/hosts&nbsp;59.150.255.144&nbsp; kingdom1&nbsp;59.150.255.143&nbsp; kingdom2 6. root@sunny # svcs -a | [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"spay_email":""},"categories":[405],"tags":[509],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/973"}],"collection":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=973"}],"version-history":[{"count":0,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/973\/revisions"}],"wp:attachment":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}