{"id":524,"date":"2022-01-05T20:07:39","date_gmt":"2022-01-05T11:07:39","guid":{"rendered":"https:\/\/blog.nishinari.or.jp\/?p=524"},"modified":"2022-01-06T00:38:34","modified_gmt":"2022-01-05T15:38:34","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e5%86%8d%e6%a7%8b%e7%af%89%e8%a6%9a%e6%9b%b8%ef%bc%88008%ef%bc%89%e3%83%bcnfs%ef%bc%88%e3%83%8d%e3%83%83%e3%83%88%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%b7","status":"publish","type":"post","link":"https:\/\/blog.nishinari.or.jp\/?p=524","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u518d\u69cb\u7bc9\u899a\u66f8\uff08008\uff09\u30fcNFS\uff08\u30cd\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\uff09\u306e\u69cb\u7bc9"},"content":{"rendered":"<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3001\u30af\u30e9\u30c3\u30b7\u30e5\u6642\u306b\u5fc5\u8981\u4e0d\u53ef\u6b20\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u4ed8\u3051HD\u306b\u30b3\u30d4\u30fc\u3057\u3001\u5fa9\u65e7\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u3059\u308b\u305f\u3081\u3001\u5404\u30b5\u30fc\u30d0\u30fc\u306e\u65e5\u3005\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u5fc5\u8981\u3067\u3059\u3002\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u3092\u7c21\u4fbf\u306b\u3059\u308b\u305f\u3081\u3001NFS \u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002<br \/>\n\u30fb\u5916\u4ed8\u3051HD\u306f\u3001\u5341\u5206\u306a\u5bb9\u91cf\u3092\u78ba\u4fdd\u3059\u308b\u3068\u3068\u3082\u306b\u3001MS-Windows \u3084\u3001MacOS \u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u306a\u304f\u3001Linux \u306e ext4 \u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u30fb\u4ee5\u4e0b\u3001\u300c<a href=\"https:\/\/www.server-world.info\/query?os=Ubuntu_20.04&amp;p=nfs&amp;f=1\">\u30b5\u30fc\u30d0\u30fc\u30ef\u30fc\u30eb\u30c9<\/a>\u300d\u304b\u3089\u306e\u56f3\u89e3\u3092\u6539\u5909\u3002<\/p>\n<pre>+----------------------+               |               +----------------------+\r\n| [    NFS Server    ] |XXX.XXX.XXX.210|YYY.YYY.YYY.212| [    NFS Client    ] |\r\n|   nishinari.or.jp    +---------------+---------------+   yyy.nishinari.or.jp|\r\n|                      |                               |                      |\r\n+----------------------+                               +----------------------+<\/pre>\n<p>\u30fbNFS \u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a<br \/>\n<code><br \/>\n# apt -y install nfs-kernel-server<\/code><\/p>\n<p># jed \/etc\/idmapd.conf<br \/>\n# 6\u884c\u76ee\uff1a\u30b3\u30e1\u30f3\u30c8\u89e3\u9664\u3057\u3066\u81ea\u30c9\u30e1\u30a4\u30f3\u540d\u306b\u5909\u66f4<br \/>\nDomain = nishinari.or.jp<\/p>\n<p>\u5916\u4ed8\u3051HD\u306f\u3001USB\u63a5\u7d9a\u3059\u308b\u3068\u3001Ubuntu\u5074\u3067\u3001\u81ea\u52d5\u8a8d\u8b58\u3057\u3001\/media\/zzzz\/1&#8230;.. \u306b\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002<br \/>\n<code><br \/>\n# jed \/etc\/exports<br \/>\n# \u6700\u7d42\u884c\u306b\u30de\u30a6\u30f3\u30c8\u8a2d\u5b9a\u3092\u8a18\u8ff0<br \/>\n# \u4f8b\u3068\u3057\u3066 [\/media\/zzzz\/1..... ] \u3092 NFS \u5171\u6709\u306b\u8a2d\u5b9a<br \/>\n\/media\/zzzz\/1..... xxx.xxx.xxx.208\/28(rw,no_root_squash)<br \/>\n<\/code><br \/>\n<code><br \/>\n# systemctl restart nfs-server<br \/>\n<\/code><\/p>\n<p>\u30fbNFS \u30af\u30e9\u30a4\u30a8\u30f3\u30c8\u306e\u8a2d\u5b9a<br \/>\n<code><br \/>\n# apt -y install nfs-common<br \/>\n<\/code><br \/>\n<code><br \/>\nvi \/etc\/idmapd.conf<br \/>\n# 6\u884c\u76ee\uff1a\u30b3\u30e1\u30f3\u30c8\u89e3\u9664\u3057\u30c9\u30e1\u30a4\u30f3\u540d\u5909\u66f4<br \/>\nDomain = nishinari.or.jp<br \/>\n<\/code><br \/>\n\u30de\u30a6\u30f3\u30c8\u3059\u308b\u306b\u306f\u3001<br \/>\n<code><br \/>\nmount -t nfs nishinari.or.jp:\/media\/zzzz\/1..... \/mnt<br \/>\n<\/code><br \/>\n\u8d77\u52d5\u6642\u304b\u3089\u3001\u81ea\u52d5\u7684\u306b\u30de\u30a6\u30f3\u30c8\u3059\u308b\u306b\u306f<br \/>\n<code><br \/>\n# jed \/etc\/fstab<br \/>\n# \u6700\u7d42\u884c\u306b\u8ffd\u8a18\uff1a\u30de\u30a6\u30f3\u30c8\u3059\u308b\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092NFS\u30b5\u30fc\u30d0\u30fc\u306e\u3082\u306e\u306b\u5909\u66f4<br \/>\nnishinari.or.jp:\/media\/zzzz\/1.....  \/mnt    nfs   defaults        0 0<br \/>\n<\/code><br \/>\n\u78ba\u8a8d\u3059\u308b\u306b\u306f<br \/>\n<code><br \/>\n# df -hT<br \/>\nFilesystem                                    Type   Size  Used Avail Use% Mounted on<br \/>\ntmpfs                                         tmpfs  1.6G  1.7M   1.6G  1% \/run<br \/>\n\/dev\/sda3                                      ext4   xxxG   20G  xxxG xx% \/<br \/>\n...<br \/>\nnishinari.or.jp:\/media\/zzzz\/1.....             nfs4   x.xT    XXG x.xT xx% \/mnt<br \/>\n<\/code> <\/p>\n<p>\u5b9f\u969b\u306b\u306f\u3001\/mnt\/nfs \u306bNFS\uff08\u300c\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u30fc\u300d\u304c\u6e96\u5099\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n<code><br \/>\n# ls -l \/mnt\/nfs\/<br \/>\n\u5408\u8a08 20<br \/>\n...<br \/>\ndrwxr-xr-x 6 root root 4096 11\u6708 28 14:05 takeru<br \/>\n...<br \/>\ndrwxr-xr-x 3 root root 4096 12\u6708 27 23:24 zephyr<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3001\u30af\u30e9\u30c3\u30b7\u30e5\u6642\u306b\u5fc5\u8981\u4e0d\u53ef\u6b20\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u4ed8\u3051HD\u306b\u30b3\u30d4\u30fc\u3057\u3001\u5fa9\u65e7\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u3059\u308b\u305f\u3081\u3001\u5404\u30b5\u30fc\u30d0\u30fc\u306e\u65e5\u3005\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u5fc5\u8981\u3067\u3059\u3002\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u3092\u7c21\u4fbf\u306b\u3059\u308b\u305f\u3081\u3001NFS \u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002 \u30fb\u5916\u4ed8\u3051HD\u306f\u3001 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.nishinari.or.jp\/?p=524\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30b5\u30fc\u30d0\u30fc\u518d\u69cb\u7bc9\u899a\u66f8\uff08008\uff09\u30fcNFS\uff08\u30cd\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\uff09\u306e\u69cb\u7bc9&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[14,13],"tags":[22],"class_list":["post-524","post","type-post","status-publish","format-standard","hentry","category-ubuntu","category-13","tag-nfs"],"_links":{"self":[{"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/posts\/524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=524"}],"version-history":[{"count":5,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions"}],"predecessor-version":[{"id":529,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/posts\/524\/revisions\/529"}],"wp:attachment":[{"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}