NFS(Network File System)¤È¤Ï¥ê¥â¡¼¥È¥Þ¥·¥ó¤Î¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò ¥í¡¼¥«¥ë¤Î¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Î¤è¤¦¤Ë¥Þ¥¦¥ó¥È²Äǽ¤È¤¹¤ë¤â¤Î

ɬÍפʤâ¤Î

/etc/rc.d/init.d/portmap start
/etc/rc.d/init.d/nfs start

¥µ¡¼¥Ð¡¼¤ÎÀßÄê

/etc/exports¤òÊÔ½¸

¶¦Í­¤·¤¿¤¤¥Ç¥£¥ì¥¯¥È¥ê µö²Ä¤¹¤ëIP¤â¤·¤¯¤Ï¥É¥á¥¤¥ó(¥ª¥×¥·¥ç¥ó1,¥ª¥×¥·¥ç¥ó2) µö²Ä¤¹¤ëIP¤â¤·¤¯¤Ï¥É¥á¥¤¥ó(¥ª¥×¥·¥ç¥ó1,¥ª¥×¥·¥ç¥ó2)

/home/nfs ¤ò 192.168.0.2 ¤«¤éÆɤ߹þ¤ß¤Î¤ß¤Ç¶¦Í­¤¹¤ë¾ì¹ç

/home/nfs 192.168.0.2(ro)

/etc/hosts.allow ¤ä /etc/hosts.deny ¤ÎÆâÍƤòɬÍפ˱þ¤¸¤Æ½ñ¤­´¹¤¨

Ä󶡥µ¡¼¥Ó¥¹¤Î³Îǧ

$ /usr/sbin/rpcinfo -p

¥¯¥é¥¤¥¢¥ó¥È¤ÎÀßÄê

¥µ¡¼¥Ð¡¼¤ÇÀßÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ËÂФ·¤Æmount¤¹¤ë

# /etc/rc.d/init.d/portmap start
# mkdir /mnt/nfs
# mount -t nfs -o rsize=4096,wsize=4096 192.168.0.2:/home/nfs /mnt/nfs

µ¯Æ°»þ¤Ë¥Þ¥¦¥ó¥È¤¹¤ë¤è¤¦ÀßÄê netfs¤¬Î©¤Á¾å¤¬¤ë¤è¤¦¤Ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ë

# vi /etc/fstab
192.168.0.2:/home/nfs /mnt/nfs nfs rsize=4096,wsize=4096,hard 0 0

rsize,wsize¤Ï1024¤ÎÇÜ¿ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ë¤é¤·¤¤
¥ª¥×¥·¥ç¥ó¤Ç¤Ïsoft¤Èhard¤¬»ØÄê¤Ç¤­¤ë¤¬hard¤Ç¤Ê¤¤¤È¥Õ¥¡¥¤¥ë¤¬²õ¤ì¤ë²ÄǽÀ­¤¬¤¢¤ë¤é¤·¤¤
1¸ÄÌܤÎ0¤Ïdump¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¥Ð¥Ã¥¯¥¢¥Ã¥×¤¹¤ëɬÍפ¬¤Ê¤¤¤³¤È¤ò¼¨¤¹¤é¤·¤¤
2¸ÄÌܤÎ0¤Ïfsck¥³¥Þ¥ó¥É¤Ç¥Á¥§¥Ã¥¯¤¹¤ëɬÍפ¬Ìµ¤¤¤³¤È¤ò¼¨¤¹¤é¤·¤¤

»²¹Í¥Ú¡¼¥¸ Linux NFS-HOWTO


¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2021-09-19 (Æü) 19:09:26