|
ºÎÆ® ÇÁ·Î¼¼½º
ºÎÆà ¸Þ½ÃÁö
ºÎÆ® ÇÁ·Î¼¼½º
¨ç ºÎÆ® PROM ´Ü°è
©Í PROMÀÌ POST¸¦ ½ÇÇà
©Î ºÎÆ® µð¹ÙÀ̽º¸¦ °áÁ¤
©Ï ºÎÆ® ÇÁ·Î±×·¥ÀÎ bootblk¸¦ ·Îµå
¨è ºÎÆ® ÇÁ·Î±×·¥ ´Ü°è
©Ð bootblk´Â µÎ ¹ø° ºÎÆ® ÇÁ·Î±×·¥ÀÎ ufsboot¸¦ ·Îµå
©Ñ ufsbootÀº Ä¿³ÎÀ» ·Îµå(32/64bit) : isainfo -kv
¨é Ä¿³Î ÃʱâÈ ´Ü°è
©Ò Ä¿³ÎÀº ÀÚ½ÅÀ» ÃʱâÈÇÏ°í ¸ðµâÀ» ·Îµå
©Ó configuration ÆÄÀÏÀÎ /etc/systemÀ» Àд´Ù.
¨ê init ´Ü°è
©Ô Ä¿³ÎÀÌ /sbin/initÀ» ½ÇÇà
- Ä¿³ÎÀº /sbin/init ÇÁ·Î¼¼½º¸¦ ½ÇÇà½ÃÅ°°í, /sbin/init ÇÁ·Î¼¼½º´Â /etc/inittab ÆÄÀÏÀÇ µî·ÏµÈ Á¤º¸¸¦ Âü°í·Î ÇÏ¿© rc script ¶Ç´Â ½ÇÇà °¡´ÉÇÑ ´Ù¸¥ ½ºÅ©¸³Æ®µéÀ» Â÷·Ê·Î ½ÇÇà ½ÃŲ´Ù. Init ´Ü°è°¡ ¼º°øÀûÀ¸·Î ¼öÇàµÇ°í ³ª¸é ½Ã½ºÅÛ È¸é¿¡ login ÇÁ·ÎÇÁÆ®¸¦ º¸¿©ÁØ´Ù.
/etc/inittab ÆÄÀÏ
• init ÇÁ·Î¼¼½º´Â inittab ÆÄÀÏÀ» Àд´Ù.
• init ÇÁ·Î¼¼½º´Â default run level 3À¸·Î Á¤ÀÇµÈ initdefault entry¸¦ Àд´Ù.
• init ÇÁ·Î¼¼½º´Â /sbin/autopush¿Í °°Àº action entry¿¡¼ sysinit¸¦ °¡Áø entryµéÀÇ ¸í·ÉÀ̳ª ½ºÅ©¸³Æ®¸¦ ¼öÇàÇÑ´Ù.
• init ÇÁ·Î¼¼½º´Â rstate entry¿¡¼ 3À» °¡Áø entry¿¡ ´ëÇÑ ½ºÅ©¸³Æ®µé(/sbin/rc2, /sbin/rc3, /usr/lib/saf/sac, /usr/lib/saf/ttymon µî)À» ¼öÇàÇÑ´Ù. Sac¿Í ttymonÀº console°ú tty deviceÀÇ ·Î±×ÀÎ ¼ºñ½º¸¦ Á¦°øÇÑ´Ù.
Run Control ½ºÅ©¸³Æ®
Solaris run level
Run level ¼³ ¸í
Run level 0 PROM monitor level, ºÎÆ® PROMÀÇ ok ÇÁ·ÒÇÁÆ® »óÅ·Π½Ã½ºÅÛÀ» Á¾·áÇϱâ À§ÇÑ levelÀÌ´Ù.
Run level s, S Single user »óÅ·μ ¸¶¿îÆ®µÈ ¸ðµç ÆÄÀÏ ½Ã½ºÅÛÀ» Á¢±ÙÇÒ ¼ö ÀÖ´Ù.
Run level 1 Single user °ü¸® »óÅ·μ »ç¿ë °¡´ÉÇÑ ¸ðµç ÆÄÀÏ ½Ã½ºÅÛÀ» Á¢±ÙÇÒ ¼ö ÀÖ´Ù.
Run level 2 Multi user »óÅ·μ µ¿½Ã¿¡ ¿©·¯ ¸íÀÇ »ç¿ëÀÚ°¡ Á¢±Ù °¡´ÉÇÑ »óÅÂÀÌ´Ù. NFS ¼¹ö µ¥¸óÀ» Á¦¿ÜÇÑ ½Ã½ºÅÛÀÇ ¸ðµç µ¥¸óÀÌ ¼öÇàµÈ´Ù.
Run level 3 NFS »ç¿ëÀÌ °¡´ÉÇÑ multi user »óÅ·μ µ¿½Ã¿¡ ¿©·¯¸íÀÇ »ç¿ëÀÚ°¡ Á¢±ÙÇÒ¼ö ÀÖ°í, /etc/inittab ÆÄÀÏ¿¡ ±âº» run level·Î Á¤ÀǵǾî ÀÖ´Ù.
Run level 4 ÇöÀç »ç¿ëµÇÁö ¾Ê´Â´Ù.
Run level 5 Solaris¸¦ Á¤ÁöÇÏ°í ½Ã½ºÅÛÀ» Á¾·áÇÏ´Â »óÅÂÀÌ´Ù.
Run level 6 ½Ã½ºÅÛÀ» run level 0 À¸·Î ÀüȯÇß´Ù°¡ ´Ù½Ã multi user »óÅ·ΠÀçºÎÆÃÇÑ´Ù.
Run control ½ºÅ©¸³Æ®
/sbin µð·ºÅ丮
/etc/rc#.d µð·ºÅ丮
/etc/init.d µð·ºÅ丮
run control ½ºÅ©¸³Æ®ÀÇ ±â´É
rc ½ºÅ©¸³Æ® ±â ´É
/sbin/rc0 /etc/rc0.d/K*ÀÇ ½ºÅ©¸³Æ®(PROM level·Î ½Ã½ºÅÛÀ» down)• Á¦°øµÇ°í ÀÖ´Â ¸ðµç ¼ºñ½º¿Í µ¥¸óÀ» Á¤Áö½ÃŲ´Ù.• ¸ðµç ÇÁ·Î¼¼½º°¡ µ¿ÀÛÀ» ¸ØÃá´Ù.• ¸ðµç ÆÄÀÏ ½Ã½ºÅÛÀº ¾ð¸¶¿îÆ®µÈ´Ù.
/sbin/rc1 /etc/rc1.dÀÇ ½ºÅ©¸³Æ®(run level 1·Î ½Ã½ºÅÛÀ» down)• Á¦°øµÇ°í ÀÖ´Â ¸ðµç ¼ºñ½º¿Í µ¥¸óÀ» Á¤Áö½ÃŲ´Ù.• ¸ðµç ÇÁ·Î¼¼½º°¡ µ¿ÀÛÀ» ¸ØÃá´Ù.• ¸ðµç ÆÄÀÏ ½Ã½ºÅÛÀº ¾ð¸¶¿îÆ®µÈ´Ù.
/sbin/rc2 /etc/rc2.dÀÇ ½ºÅ©¸³Æ®(run level 2 – ÆÄÀÏ ¸®¼Ò½º °øÀ¯¸¸À» Á¦¿ÜÇÑ multi user »ó´ë)• ¸ðµç ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®ÇÑ´Ù.• /tmp µð·ºÅ丮 ¾ÈÀÇ ¸ðµç ÆÄÀÏÀ» Á¦°ÅÇÑ´Ù.• ½Ã½ºÅÛ accounting À» ±¸¼ºÇÑ´Ù.• ±âº» ¶ó¿ìÅÍ ±¸¼º ¹× ³×Æ®¿öÅ© ¼ºñ½º¸¦ ½ÃÀÛÇÑ´Ù.• NFS ¼ºñ½º¸¦ Á¦¿ÜÇÑ ¸ðµç ½Ã½ºÅÛ µ¥¸óÀ» ½ÃÀÛÇÑ´Ù.
/sbin/rc3 /etc/rc3.dÀÇ ½ºÅ©¸®Æ®(run level 3 – ÆÄÀÏ ¸®¼Ò½º¸¦ °øÀ¯ÇÒ ¼ö ÀÖ´Â multi user »óÅÂ)• NFS ¼¹ö ÇÁ·Î¼¼½º¸¦ ½ÃÀÛÇÑ´Ù.
/sbin/rc5/sbin/rc6 /etc/rc0.d/K* ½ºÅ©¸³Æ®• ¸ðµç ÇÁ·Î¼¼½º°¡ µ¿ÀÛÀ» ¸ØÃá´Ù.• ¸ðµç ÆÄÀÏ ½Ã½ºÅÛÀº ¾ð¸¶¿îÆ®µÈ´Ù.
/sbin/rcS /ect/rcS.dÀÇ ½ºÅ©¸³Æ®• ÃÖ¼ÒÇÑÀÇ ³×Æ®¿öÅ©¸¦ ±¸¼ºÇÑ´Ù.• ÇÊ¿ä¿¡ µû¶ó /usr ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®ÇÑ´Ù.• ½Ã½ºÅÛ À̸§À» ¼³Á¤ÇÑ´Ù.• /(root)¿Í /usr ÆÄÀÏ ½Ã½ºÅÛÀ» Á¡°ËÇÑ´Ù.• pseudo ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®ÇÑ´Ù.(/proc¿Í /dev/fd)• reconfiguration ºÎÆÃÀ» À§ÇØ device entryµéÀ» rebuild ÇÑ´Ù.• single user ¸ðµå·Î ¸¶¿îÆ®µÈ ´Ù¸¥ ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®ÇÑ´Ù.
Shutdown ÇÁ·Î¼¼½º
/sbin/init ¸í·É : »ç¿ëÀÚÀÇ ¿ä±¸¿¡ µû¶ó ½Ã½ºÅÛÀ» Á¤Áö, Power-Off ¶Ç´Â ÀçºÎÆÃÇÒ ¼ö ÀÖ´Ù. ¶ÇÇÑ, ·Î±×ÀÎÇÑ ¸ðµç »ç¿ëÀÚ¿¡°Ô °æ°í ¸Þ½ÃÁö³ª ´ë±â ½Ã°£ ¾øÀÌ rc0 kill ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÑ´Ù.(init s, init 0, init 5, init 6)
/usr/sbin/shutdown ¸í·É : init ¸í·É¾î¸¦ ºÒ·¯ ½Ã½ºÅÛÀÇ Á¤Áö, Power-Off ¶Ç´Â ÀçºÎÆà »óÅ·Π¸¸µç´Ù. rc0 kill ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇϸç init°ú ´Þ¸® ·Î±×ÀÎÇÑ ¸ðµç »ç¿ëÀÚ¿¡°Ô °æ°í ¸Þ½ÃÁö¸¦ º¸¿©ÁÖ¸ç, ±âº»ÀûÀ¸·Î 60ÃÊÀÇ ´ë±â ½Ã°£À» ÁØ´Ù.
¡Ø sync ¸í·É¾î : shutdown ¸í·É¾î¸¦ »ç¿ëÇÒ ¶§ Ä¿³Î ¸Þ¸ð¸® µ¥ÀÌÅ͸¦ µð½ºÅ©¿¡ µ¿±âÈ ÇÏ´Â ¸í·É¾îÀÎ sync ¸í·É¾î¸¦ 2-3¹ø ¼öÇàÇÑ ÈÄ¿¡ Á¾·áÇÑ´Ù.
/usr/sbin/halt ¸í·É : »ç¿ëÀÚ¿¡°Ô °æ°í ¾øÀÌ ¹Ù·Î ½Ã½ºÅÛÀ» Á¤Áö½ÃŲ´Ù.
/usr/sbin/poweroff ¸í·É : ½Ã½ºÅÛÀ» Á¤Áö½ÃÅ°°í Àü¿øÀ» Â÷´ÜÇÑ´Ù.
/usr/sbin/reboot ¸í·É : ½Ã½ºÅÛÀ» Á¤ÁöÇÏ°í run level 3¿¡¼ ½Ã½ºÅÛÀ» ÀçºÎÆÃÇÑ´Ù. rc0 kill ½ºÅ©¸³Æ®¸¦ ¼öÇàÇÏÁö ¾ÊÀ½..
|