±âº»ÀûÀÎ »ý°¢Àº ´ÙÀ½°ú °°´Ù. ; PC´Â tftp ÇÁ·ÎÅäÄÝÀ» °æÀ¯ÇÏ¿© Ä¿³Î°ú Ãʱâ IP Áּҷμ 0.0.0.0À» »ç¿ëÇÑ bootp ÇÁ·ÎÅäÄÝ¿¡ ÀÇÇÑ ºÎÆ®¼¹ö·ÎºÎÅÍ IPÁÖ¼Ò¸¦ ¾òÀ» °ÍÀÌ´Ù.
(¶ó¿ìÅ͸¦ °æÀ¯ÇÏ¿©)±³Â÷µÈ ¼¼±×¸ÕÆ®·Î ºÎÆà ÇÏ´Â °ÍÀº ½¬¿î ¹®Á¦°¡ ¾Æ´Ï´Ù. ±×·¡¼, ¼¹ö¿Í µð½ºÅ© ¾ø´Â ¸®´ª½º ¹Ú½º¸¦ °°Àº ·£ ¼¼±×¸ÕÆ®¿¡ µÎ°Å³ª ¼¹öÀÇ ÁÖ¼Ò¿Í °ü°èµÈ ´ç½ÅÀÇ ¶ó¿ìÅÍ¿¡¼ UDP HelperÀÇ ÁÖ¼Ò¸¦ ¼³Á¤Ç϶ó. ´õÀÚ¼¼ÇÑ Á¤º¸¿¡ °üÇؼ´Â ¶ó¿ìÅÍÀÇ ¸Å´º¾óÀ» Âü°íÇϱ⠹ٶõ´Ù.
¾Æ·¡¿¡´Â ÀÌ °úÁ¤µéÀ» ¿°ÅÇÑ °ÍÀÌ´Ù.
nfs ÆÐÅ°Áö ( À¯¸íÇÑ ¸®´ª½ºÀÇ ¹Ì·¯»çÀÌÆ®ÀÇ /pub/Linux/system/Linux-boot
µð·ºÅ丮¿¡¼
ãÀ» ¼ö ÀÖ´Â )¸¦ ¾ò¾î¶ó.
¿©±â¿¡¼ Áï½Ã »ç¿ëÇÒ ¼ö ÀÖ´Â wd8013 Ä«µå¿¡ °üÇÑ booteprom¿¡ °üÇÑ À̹ÌÁö°¡ Æ÷ÇԵǾîÀÖ´Ù.
PC¸¦ ÁغñÇϴµ¥´Â ¿©·¯ °¡Áö ¹æ¹ýÀÌ ÀÖ´Ù. ;
ÀÌ À̹ÌÁöµéÀº bootp¿Í tftp Ŭ¶óÀ̾ðÆ®¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Ù. ´ç½ÅÀº nfs-root¿É¼ÇÀ» Æ÷ÇÔÇÑ ¸®´ª½º Ä¿³Î¶ÇÇÑ ÁغñÇÒ ÇÊ¿ä°¡ ÀÖ´Ù.
ÆÐÄ¡(1)¸¦ Âü°íÇ϶ó
¸¸¾à´ç½ÅÀÌ bootpd-2.4.tar.gz
(´ç½ÅÀÇ ÁÖ¿ä ¸®´ª½º ¹Ì·¯»çÀÌÆ®ÀÎ
/pub/Linux/system/Network/boot.net
µð·ºÅ丮)ÆÐÅ°Áö¸¦ ¹ß°ßÇÑ´Ù¸é, ÆÐÅ°Áö¸¦ ¾ò°í, ÄÄÆÄÀÏÇÑÈÄ ÀνºÅçÇ϶ó.
¸¸¾à ´ç½ÅÀÇ À¯´Ð½º ¹Ú½º°¡ ½½·¢¿þ¾î ¸®´ª½º ¹èÆ÷ÆÇÀ̶ó¸é bootpd¸¦ Æ÷ÇÔÇÏ°í ÀÖÀ¸¹Ç·Î ÀÌ °úÁ¤À» »ý·«
Ç϶ó.
µ¥¸óÀº ´ÙÀ½ ¸í·É¿¡ ÀÇÇؼ Áï½Ã ½ÇÇàµÈ´Ù.
bootpd -s
¶Ç´Â inetd¸¦ »ç¿ëÇÏ¿©, ÀÌ·± °æ¿ì¿¡´Â ´ÙÀ½À» ÆíÁýÇؾßÇÑ´Ù.
# tftp dgram udp wait root /usr/sbin/in.tftpd tftpd /export
# bootps dgram udp wait root /usr/sbin/in.bootpd bootpd
bootps 67/tcp # BOOTP server
tftp 69/udp # TFTP server
kill -HUP <process id of inetd>.
¹«¾ùº¸´Ùµµ, bootpd´Â /etc µð·ºÅ丮¿¡¼ bootptabÀ̶ó ºÒ¸®´Â ¼³Á¤ ÆÄÀÏÀ» °¡Áö°í ÀÖ´Ù. ´ç½ÅÀº ÀÌ ÆÄÀÏ¿¡¼ °ÔÀÌÆ®¿þÀÌ, µµ¸ÞÀÎ ³×ÀÓ ¼¹ö, ±×¸®°í ´ç½ÅÀÇ µð½ºÅ© ¾ø´Â ¸Ó½ÅÀÇ ÀÌ´õ³Ý ÁÖ¼Ò µîÀ» ¼öÁ¤ÇÏ¿©¾ß¸¸ ÇÑ´Ù. ´ÙÀ½Àº /etc/bootptabÀÇ ÇÑ ¿¹ÀÌ´Ù.
global.prof:\
:sm=255.255.255.0:\
:ds=192.168.1.5:\
:gw=192.168.1.19:\
:ht=ethernet:\
:bf=linux:
machine1:hd=/export/root/machine1:tc=global.prof:ha=0000c0863d7a:ip=192.168.1.140:
machine2:hd=/export/root/machine2:tc=global.prof:ha=0800110244e1:ip=192.168.1.141:
machine3:hd=/export/root/machine3:tc=global.prof:ha=0800110244de:ip=192.168.1.142:
global.conf´Â ÀϹÝÀûÀΠȣ½ºÆ®¿¡ °üÇÑ ³»¿ëµéÀ» °¡Áö°íÀÖ´Â ÆÄÀÏÀÌ°í ¿©±â¿¡¼,
ÀÌ°ÍÀÌ ³¡³ ÈÄ¿¡, °¢ ¸Ó½ÅµéÀº ´ÙÀ½ÀÇ ¶óÀÎÀ» °¡Áö°í ÀÖ¾î¾ß ÇÑ´Ù. ;
TFTP (Trivial File Transfer Protocol
) Àº ftp¿Í °°Àº ÆÄÀÏ Àü¼Û ÇÁ·ÎÅäÄÝÀÌÁö¸¸,
EPROM¿¡ ÀÖ¾î¼ ÄÚµùÀ» Çϴµ¥ ÈξÀ °£´ÜÇÏ´Ù. TFTP´Â ´ÙÀ½ÀÇ µÎ °¡Áö ¹æ¹ý¿¡ ÀÇÇØ »ç¿ëµÉ ¼ö ÀÖ´Ù.
°ÅÀÇ ¸ðµç À¯´Ð½ºÀÇ ±¸Çö¿¡ ÀÖ¾î¼ tftp ¼¹ö¸¦ Æ÷ÇÔÇÏ°í, ¾Æ¸¶ ½º½º·Î ÀνºÅçÇÒ ÀÏÀº ¾øÀ» °ÍÀÌ´Ù.
ÀÌ°ÍÀº ½½·¢¿þ¾î ¹èÆ÷ º»¿¡¼ a, ap, n°ú xÀÇ ÆÐÅ°Áö¿¡ Æ÷ÇԵǾîÀÖ´Ù. ¸ðµÎ ÀνºÅçÇÏ´Â °ÍÀº ÁÁ´Ù. ; ±×·¯³ª À§ÀÇ ÆÐÅ°ÁöµéÀº µð½ºÅ© ¾ø´Â X Å͹̳ημÀÇ ¸ñÀûÀº ÃæºÐÇÏ´Ù. ÀνºÅç¿¡ °üÇؼ, ´ç½ÅÀº ¸®´ª½º ½Ã½ºÅÛÀ» ÀÌ¿ëÇؾßÇÑ´Ù. ¿ø°Ý ¸Ó½ÅÀÇ µð½ºÅ© °ø°£À» È®ÀÎÇÏ°í ±×°ÍÀº Àбâ-¾²±â·Î export Ç϶ó. ¸®´ª½º ¹Ú½ºÀÇ ÆÄÀϽýºÅÛ¿¡¼ ¾î¶² (/mnt)°°Àº exportµÈ µð·ºÅ丮¸¦ ¸¶¿îÆ®ÇÑ´Ù. ¸®´ª½º ¼³Ä¡¸¦ ½ÃÀÛÇÏ°í /·ÎºÎÅÍ /mnt·ÎÀÇ ¼³Ä¡¿¡¼ ·çÆ® ¿É¼ÇÀ» º¯°æÇ϶ó. ±×ÈÄ ÀϹæÀûÀ¸·Î ÆÐÅ°Áö¸¦ ¼³Ä¡Ç϶ó. ¸¸¾à ´ç½ÅÀÌ ÇϳªÀÇ µð½ºÅ© ¾ø´Â ¸®´ª½º ¹Ú½º¸¸À» ½ÇÇàÇϱ⸦ ¿øÇÑ´Ù¸é, ¹Ù²Ü ÇÊ¿ä°¡ ¾Æ¹« °Íµµ ¾ø´Ù. ´Ù¸¥ ÇÑÆíÀ¸·Î, ¸¸¾à ´ç½ÅÀÌ ÇϳªÀÇ µð½ºÅ© ¾ø´Â ¸Ó½Å ÀÌ»óÀ» »ç¿ëÇϱ⸦ ¿øÇÑ´Ù¸é, ÇÑ ¸Ó½Å¿¡ °üÇÑ °³ÀÎÀûÀÎ ÆÄÀÏ°ú µð·ºÅ丮¸¸À» Æ÷ÇÔÇϹǷΠÀ§ÀÇ ¼³Ä¡´Â ÀÛµ¿ÇÏÁö ¾ÊÀ» °ÍÀÌ´Ù. ¹®Á¦´Â /usr (°³ÀÎÀûÀÎ µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÏÁö ¾ÊÀº ºÎºÐ)À» ¿Å±â°í °¢°¢ÀÇ µð½ºÅ© ¾ø´Â ¸Ó½ÅÀÇ µð·ºÅ丮¸¦ ¼³Á¤ÇϹǷΠÇÇÇÒ ¼ö ¾ø°ÔµÈ´Ù. ¿¹¸¦ µé¾î, ¸¸¾à /export/linux/machine/ ÀÌ /mnt¿¡ ¸¶¿îÆ®µÇ¾î ÀÖ´Ù¸é, ÃʱâÀÇ ¼³Ä¡¸¦ ÇÑ ÈÄ¿¡ µð·ºÅ丮 ±¸Á¶°¡ ´ÙÀ½°ú °°À» °ÍÀÌ´Ù.
/export/linux/machine1/bin
/export/linux/machine1/sbin
/export/linux/machine1/lib
/export/linux/machine1/etc
/export/linux/machine1/var
/export/linux/machine1/usr
¼³Á¤À» º¯°æÇÑ ÈÄ¿¡´Â ´ÙÀ½°ú °°À» °ÍÀÌ´Ù.
/export/linux/machine1/bin
/export/linux/machine1/sbin
/export/linux/machine1/lib
/export/linux/machine1/etc
/export/linux/machine1/var
/export/linux/usr
Áö±Ý ´Ù¸¥ ¸Ó½Å¿¡ °üÇÑ ¼ºêµð·ºÅ丮¸¦ ¸¸µé¶ó. Áö±Ý, ´ç½ÅÀÇ µð½ºÅ© ¾ø´Â ¸Ó½ÅÀÌ machine1, machine2, machine3µîÀ̶ó°í °¡Á¤ÇÑ´Ù. ±×·¯¸é ´ç½ÅÀÇ ´Ù¸¥ µð·ºÅ丮¸¦ ¼³Á¤ÇÒ ¶§¿¡ ´ÙÀ½ÀÇ bash ½ºÅ©¸³Æ®¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
cd /export/linux
for x in machine2 machine3 ; do
mkdir $x; cd $x
(cd ../machine1; tar cf - *) | tar xvf -
done
±×·¯¸é ¾Æ·¡ÀÇ/exportµéÀº
¾Æ·¡¿¡¼
¾Æ·¡ÀÇ Çü½ÄÀº SunOS 4.1.3ÀÇ exportsÀÇ ÆÄÀÏ ±ÔÄ¢À» µû¸¦ °ÍÀÌ´Ù.
# This file is /etc/export
# for remote linux X terminals by Buci
# this line is only once
/export/root/usr -access=linuxnet
# these lines once for every host
/export/root/machine1 rw=machine1,root=machine1
/export/root/machine2 rw=machine2,root=machine2
/export/root/machine3 rw=machine3,root=machine3
exportfs -a ÇÏ´Â °ÍÀ» ÀØÁö ¸»¾Æ¶ó.
Áö±Ý tftp ¼¹ö¸¦ ¼³Á¤ÇÒ ¶§ÀÌ´Ù. ¸¸¾à ´ç½ÅÀÌ ¾ÈÀüÇÑ tftp¸¦ ÇÊ¿ä·Î ÇÏÁö ¾Ê´Â´Ù¸é ´ç½ÅÀÇ Å¬¶óÀ̾ðÆ®¿¡ °üÇØ ¸ðµç °ÍÀÌ °£´ÜÇÏ¿© /export µð·ºÅ丮·ÎºÎÅÍ ºÎÆÃÇÒ¼ö ÀÖÀ» °ÍÀÌ´Ù.
¸¸¾à, ¾ÈÀüÇÑ ftp¸¦ »ç¿ëÇÑ´Ù¸é (´ÜÀÏÀÇ ½ÇÁ¦ Ä¿³Î°ú ´Ù¸¥ ¸Ó½Åµé°ú ½Éº¼¸¯ ¸µÅ©µÈ°Í)¾Æ·¡ /export/linux µð·ºÅ丮 ±¸Á¶¸¦ ¸¸µé°ÍÀÌ´Ù. ¶Ç´Â, /export µð·ºÅ丮¸¦ ¾ÈÀüÇÑ tftpdÀÇ ºÎÆ® µð·ºÅ丮 °¡ µÇ°Ô ÇÏ¿©¶ó. ±×¸®°í À¯»çÇÏ°Ô, ´Ù¸¥°ÍµéÀ» À§ÇÑ ´ÜÀ§ÀÇ Ä¿³Î°ú ½Éº¼¸¯ ¸µÅ©µéÀÇ ¿ø·¡ µð·ºÅ丮 ±¸Á¶¸¦ ÇÊ¿ä·ÎÇϰԵȴÙ. ´ç½ÅÀÇ ´ÙÀ½À» ŸÀÌÇÎ ÇÔÀ¸·Î¼ ÀÌ °úÁ¤À» ¼öÇàÇÒ ¼ö ÀÖ´Ù.
mkdir -p /tftpboot/export/linux/machine1
cd /tftpboot/export/linux/machine1
cp /export/linux/machine1/<name of the kernel> .
±×ÈÄ ´ÙÀ½À» ŸÀÌÇÎÇ϶ó.
mkdir -p /tftpboot/export/linux/machine2
cd ../machine2
ln -s ../machine2/<name of the kernel>
¸¶Áö¸·À¸·Î, ´ç½ÅÀº ´ÙÀ½À» ¼öÁ¤ÇÏ¿©¾ß ÇÏ°í
/sbin/mount nfs_server:/export/linux/usr /usr
as the first line of
/export/linux/<machinex>/etc/rc.d/rc.S
¿©±â¿¡¼ <machinex> ´Â ¸Ó½Å1, ¸Ó½Å2, ¸Ó½Å3µîÀ» ³ªÅ¸³½´Ù.