16.4. RAID

16.4.1. ¥½¥Õ¥È¥¦¥§¥¢ RAID

16.4.1.1. Concatenated Disk Driver (CCD) ¤ÎÀßÄê

¸¶ºî: Christopher Shumway. ²þÄû: Jim Brown.

ÂçÍÆÎ̵­Ï¿¤Ë´Ø¤¹¤ë²ò·èË¡¤òÁªÂò¤¹¤ëºÝ¤Ë¤â¤Ã¤È¤â½Å»ë¤¹¤Ù¤­Í×ÁǤϡ¢ ®ÅÙ¡¢¿®ÍêÀ­¡¢¤½¤·¤ÆÈñÍѤǤ¹¡£ »°¤Ä¤òƱ»þ¤Ë¥Ð¥é¥ó¥¹¤è¤¯¼Â¸½¤¹¤ë¤³¤È¤Ïµ©¤Ç¤¹¡£ Ä̾®¤¯¤Æ¿®ÍêÀ­¤Î¤¢¤ëÂçÍÆÎ̵­Ï¿ÁõÃ֤Ϲâ²Á¤Ç¤¢¤ê¡¢ ÈñÍѤòÍÞ¤¨¤è¤¦¤È¤¹¤ë¤È®ÅÙ¤Þ¤¿¤Ï¿®ÍêÀ­¤Î¤É¤Á¤é¤«¤¬µ¾À·¤Ë¤Ê¤ê¤Þ¤¹¡£

¤³¤³¤ÇÎã¤Ë¤¢¤²¤ë¥·¥¹¥Æ¥à¤ÎÀ߷פˤª¤¤¤Æ¤Ï¡¢ ÈñÍѤ¬ºÇ¤â½ÅÍפÊÍ×ÁǤȤ·¤Æ¡¢¼¡¤Ë®ÅÙ¡¢ºÇ¸å¤Ë¿®ÍêÀ­¤¬ÁªÂò¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤³¤Î¥·¥¹¥Æ¥à¤Ç¤Î¥Ç¡¼¥¿Å¾Á÷®Å٤Ϸë¶É¤Î¤È¤³¤í¥Í¥Ã¥È¥ï¡¼¥¯¤Ë¤è¤Ã¤ÆÀ©¸Â¤µ¤ì¤Þ¤¹¡£ ¿®ÍêÀ­¤ÏÂçÊѽÅÍפǤ¹¡£¤¿¤À¤·¡¢°Ê²¼¤ÇÀâÌÀ¤¹¤ë CCD ¥É¥é¥¤¥Ö¤Ï¡¢ ¥Ç¡¼¥¿¼«ÂΤϤ¹¤Ç¤Ë CD-R ¤Ë´°Á´¤Ë¥Ð¥Ã¥¯¥¢¥Ã¥×¤·¤Æ¤¢¤ë¤â¤Î (¤·¤¿¤¬¤Ã¤Æ¸ò´¹¤Ï´Êñ¤Ë¤Ç¤­¤Þ¤¹) ¤Î¡¢¥ª¥ó¥é¥¤¥ó¥Ç¡¼¥¿¤ÎÌò³ä¤ò¤µ¤»¤Æ¤¤¤Þ¤¹¡£

¤¢¤Ê¤¿¼«¿È¤ÎÍ×µá»ö¹à¤ò·èÄꤹ¤ë¤³¤È¤Ï¡¢ ÂçÍÆÎ̵­Ï¿¤Ë´Ø¤¹¤ë²ò·èË¡¤òÁªÂò¤¹¤ë¤³¤È¤ÎºÇ½é¤ÎÃʳ¬¤Ç¤¹¡£ ¤â¤·¤¢¤Ê¤¿¤ÎÍ×µá»ö¹à¤¬ÈñÍѤè¤ê®ÅÙ¤Þ¤¿¤Ï¿®ÍêÀ­¤òÍ¥À褹¤ë¤Ê¤é¡¢ ²ò·èË¡¤Ï¤³¤Î¥·¥¹¥Æ¥à¤È¤Ï°ã¤¦¤â¤Î¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£

16.4.1.1.1. ¥Ï¡¼¥É¥¦¥§¥¢¤Î¥¤¥ó¥¹¥È¡¼¥ë

IDE ¥·¥¹¥Æ¥à¥Ç¥£¥¹¥¯¤Ë²Ã¤¨¤Æ¡¢Western Digital À½¤Î 30GB, 5400RPM ¤Î IDE ¥Ç¥£¥¹¥¯»°Âæ¤ò»È¤Ã¤Æ¡¢ °Ê²¼¤ËÀâÌÀ¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤ÊÌó 90GB ¤Î¥ª¥ó¥é¥¤¥ó¥¹¥È¥ì¡¼¥¸¤È¤Ê¤ë CCD ¥Ç¥£¥¹¥¯¤òºîÀ®¤·¤Þ¤·¤¿¡£³Æ IDE ¥Ç¥£¥¹¥¯¤¬¤½¤ì¤¾¤ì¤Î IDE ¥³¥ó¥È¥í¡¼¥é¤È¥±¡¼¥Ö¥ë¤ò¤â¤Ã¤Æ¤¤¤ë¤³¤È¤¬ÍýÁÛŪ¤Ç¤¹¤¬¡¢ ÈñÍѤòºÇÄã¸Â¤Ë¤¹¤ë¤¿¤á¤Ë¡¢ IDE ¥³¥ó¥È¥í¡¼¥é¤òÄɲ䷤Ƥ¤¤Þ¤»¤ó¡£¤½¤ÎÂå¤ï¤ê¡¢¤½¤ì¤¾¤ì¤Î IDE ¥³¥ó¥È¥í¡¼¥é¤¬¥Þ¥¹¥¿¥Ç¥Ð¥¤¥¹¤ò°ì¤Ä¡¢ ¥¹¥ì¡¼¥Ö¥Ç¥Ð¥¤¥¹¤ò°ì¤Ä»ý¤Ä¤è¤¦¤Ë¡¢ ¥Ç¥£¥¹¥¯¤Ï¥¸¥ã¥ó¥Ñ¤ò»È¤Ã¤ÆÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£

ºÆµ¯Æ°¤ÎºÝ¤Ë¡¢¥·¥¹¥Æ¥à BIOS ¤¬Àܳ¤µ¤ì¤¿¥Ç¥£¥¹¥¯¤ò¼«Æ°Åª¤Ë¸¡½Ð¤¹¤ë¤è¤¦¤ËÀßÄꤵ¤ì¤Þ¤·¤¿¡£ ¤è¤ê½ÅÍפʤ³¤È¤Ï¡¢FreeBSD ¤¬ºÆµ¯Æ°¤ÎºÝ¤Ë¤½¤ì¤é¤ò¸¡½Ð¤¹¤ë¤³¤È¤Ç¤¹¡£

ad0: 19574MB <WDC WD205BA> [39770/16/63] at ata0-master UDMA33
ad1: 29333MB <WDC WD307AA> [59598/16/63] at ata0-slave UDMA33
ad2: 29333MB <WDC WD307AA> [59598/16/63] at ata1-master UDMA33
ad3: 29333MB <WDC WD307AA> [59598/16/63] at ata1-slave UDMA33

注意: FreeBSD ¤¬¥Ç¥£¥¹¥¯¤ò¤¹¤Ù¤Æ¸¡½Ð¤·¤Ê¤¤¤È¤­¤Ï¡¢ ¥¸¥ã¥ó¥Ñ¤òÀµ¤·¤¯ÀßÄꤷ¤Æ¤¢¤ë¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£Â¿¤¯¤Î IDE ¥É¥é¥¤¥Ö¤Ï “¥±¡¼¥Ö¥ë¥»¥ì¥¯¥È” ¥¸¥ã¥ó¥Ñ¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï¥Þ¥¹¥¿/¥¹¥ì¡¼¥Ö¤Î´Ø·¸¤òÀßÄꤹ¤ë¥¸¥ã¥ó¥Ñ¤Ç¤Ï ¤¢¤ê¤Þ¤»¤ó¡£¥É¥é¥¤¥Ö¤Îʸ½ñ¤ò»²¾È¤·¤Æ¡¢ Àµ¤·¤¤¥¸¥ã¥ó¥ÑÀßÄê¤ò¸«¤Ä¤±¤Æ¤¯¤À¤µ¤¤¡£

¼¡¤Ë¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î°ìÉôʬ¤È¤·¤Æ¡¢ ¤½¤ì¤é¤ò¤É¤Î¤è¤¦¤ËÀܳ¤¹¤ë¤Î¤«¤ò¹Íθ¤·¤Þ¤¹¡£vinum(8) ¤ª¤è¤Ó ccd(4) ¤ÎξÊý¤ò¸¡Æ¤¤¹¤Ù¤­¤Ç¤·¤ç¤¦¡£¤³¤ÎÀßÄê¤Ç¤Ï¡¢ccd(4) ¤òÁªÂò¤·¤Þ¤·¤¿¡£

16.4.1.1.2. CCD ¤ÎÀßÄê

ccd(4) ¥É¥é¥¤¥Ð¤Ï¡¢¤¤¤¯¤Ä¤«¤ÎƱ¤¸¥Ç¥£¥¹¥¯¤ò»È¤Ã¤Æ¡¢ °ì¤Ä¤ÎÏÀÍýŪ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÏ¢·ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ccd(4) ¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢¥«¡¼¥Í¥ë¤¬ ccd(4) ¤ËÂбþ¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¼¡¤Î¹Ô¤ò¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤ËÄɲ䷤ơ¢ ¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ¤·¡¢ºÆ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£

pseudo-device   ccd     4

5.X ¥·¥¹¥Æ¥à¤Ç¤Ï¡¢ ¾åµ­¤ÎÂå¤ï¤ê¤Ë¼¡¤Î¹Ô¤òÄɲ䷤ʤ±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

device   ccd

注意: FreeBSD 5.X ¤Ç¤Ï ccd(4) ¥Ç¥Ð¥¤¥¹¤Î¿ô¤ò»ØÄꤹ¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£ccd(4) ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤Ï¼«¸ÊÊ£À½¤¹¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿ — ¿·¤·¤¤¥Ç¥Ð¥¤¥¹¥¤¥ó¥¹¥¿¥ó¥¹¤Ï¡¢ ɬÍפ˱þ¤¸¤Æ¤½¤ÎÅÔÅÙ¼«Æ°Åª¤ËºîÀ®¤µ¤ì¤Þ¤¹¡£

FreeBSD 3.0 °Ê¹ß¤Ç¤Ï¡¢ ¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤òÆɤ߹þ¤ó¤Ç ccd(4) ¤ËÂбþ¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£

ccd(4) ¤òÀßÄꤹ¤ë¤¿¤á¤Ë¡¢¤Þ¤º disklabel(8) ¤ò»ÈÍѤ·¤Æ¥Ç¥£¥¹¥¯¤Ë¥é¥Ù¥ë¤ò½ñ¤­¹þ¤Þ¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡£

disklabel -r -w ad1 auto
disklabel -r -w ad2 auto
disklabel -r -w ad3 auto

¤³¤Î¥³¥Þ¥ó¥É¤Ï¥Ç¥£¥¹¥¯Á´ÂΤò¼¨¤¹ ad1c, ad2c ¤ª¤è¤Ó ad3c ¤ËÂФ¹¤ë¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤òºîÀ®¤·¤Þ¤¹¡£

注意: FreeBSD 5.1-RELEASE ¤«¤é¡¢½¾Íè¤Î disklabel(8) ¥×¥í¥°¥é¥à¤Ï bsdlabel(8) ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ËÃÖ¤­´¹¤¨¤é¤ì¤Þ¤·¤¿¡£bsdlabel(8) ¤Ç¤Ï¡¢ »ÈÍѤµ¤ì¤Æ¤¤¤Ê¤¤¿ô¿¤¯¤Î¥ª¥×¥·¥ç¥ó¤ä¥Ñ¥é¥á¥¿¤¬ºï½ü¤µ¤ì¤Þ¤·¤¿¡£ ¤¿¤È¤¨¤Ð -r ¥ª¥×¥·¥ç¥ó¤Ï bsdlabel(8) ¤Ç¤Ï¼è¤ê½ü¤«¤ì¤Þ¤·¤¿¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï bsdlabel(8) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

¼¡¤Ë¡¢¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤Î¥¿¥¤¥×¤òÊѹ¹¤·¤Þ¤¹¡£ disklabel(8) ¤ò»ÈÍѤ·¤Æ¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤òÊÔ½¸¤·¤Æ¤¯¤À¤µ¤¤¡£

disklabel -e ad1
disklabel -e ad2
disklabel -e ad3

¤³¤Î¥³¥Þ¥ó¥É¤Ï EDITOR ´Ä¶­ÊÑ¿ô¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¥¨¥Ç¥£¥¿ (°ìÈÌŪ¤Ë¤Ï vi(1)) ¤Ç¤½¤ì¤¾¤ì¤Î¥Ç¥£¥¹¥¯¤Î¸½ºß¤Î¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤ò³«¤­¤Þ¤¹¡£

Êѹ¹¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 60074784        0    unused        0     0     0   # (Cyl.    0 - 59597)

ccd(4) ¤Ç»ÈÍѤ¹¤ë e ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºîÀ®¤·¤Þ¤¹¡£Ä̾ï¤Ç¤Ï c ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¹Ô¤ò¥³¥Ô¡¼¤¹¤ì¤ÐÎɤ¤¤Ç¤·¤ç¤¦¡£¤·¤«¤·¡¢ fstype ¤Ï 4.2BSD ¤Ç¤Ê¤±¤ì¤Ð ¤Ê¤ê¤Þ¤»¤ó¡£ ¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 60074784        0    unused        0     0     0   # (Cyl.    0 - 59597)
  e: 60074784        0    4.2BSD        0     0     0   # (Cyl.    0 - 59597)

16.4.1.1.3. ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¹½ÃÛ

ccd0c ¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤Ï¤Þ¤À¸ºß¤·¤Æ¤¤¤Ê¤¤¤«¤âÃΤì¤Þ¤»¤ó¡£ ¤½¤Î¤È¤­¤Ï¡¢¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤ÆºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£

cd /dev
sh MAKEDEV ccd0

注意: FreeBSD 5.0 ¤Ç¤Ï devfs(5) ¤¬ /dev °Ê²¼¤Î¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤ò¼«Æ°Åª¤Ë´ÉÍý¤¹¤ë¤Î¤Ç¡¢ MAKEDEV¤ò»ÈÍѤ¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

¤¹¤Ù¤Æ¤Î¥Ç¥£¥¹¥¯¤Ë¥é¥Ù¥ë¤ò½ñ¤­¹þ¤ó¤À¤Î¤Ç¡¢ ccd(4) ¤ò¹½ÃÛ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤ò¹Ô¤¦¤¿¤á¤Ë¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ê¥ª¥×¥·¥ç¥ó¤Ç ccdconfig(8) ¤ò»È¤¤¤Þ¤¹¡£

ccdconfig ccd0(1) 32(2) 0(3) /dev/ad1e(4) /dev/ad2e /dev/ad3e

³Æ¥ª¥×¥·¥ç¥ó¤Î»ÈÍÑË¡¤È°ÕÌ£¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£

(1)
°ìÈÖÌܤΰú¿ô¤ÏÀßÄꤹ¤ë¥Ç¥Ð¥¤¥¹¤Ç¤¹¡£¤³¤ÎÎã¤Î¾ì¹ç¤Ï /dev/ccd0c ¤Ç¤¹¡£ /dev/ ¤ÎÉôʬ¤Ï¥ª¥×¥·¥ç¥ó¤Ç¤¹¡£
(2)
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÂФ¹¤ë¥¤¥ó¥¿¥ê¡¼¥Ö¤Ç¤¹¡£¥¤¥ó¥¿¥ê¡¼¥Ö¤Ï¡¢ ¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯Æâ¤Î¥¹¥È¥é¥¤¥×¥µ¥¤¥º¤òÄêµÁ¤·¤Þ¤¹¡£ ¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯¤ÏÄ̾ï 512 ¥Ð¥¤¥È¤Ç¤¹¡£¤·¤¿¤¬¤Ã¤Æ 32 ¥¤¥ó¥¿¥ê¡¼¥Ö¤Ï 16,384 ¥Ð¥¤¥È¤È¤Ê¤ê¤Þ¤¹¡£
(3)
¤³¤ì¤Ï ccdconfig(8) ¤ËÂФ¹¤ë¥Õ¥é¥°¤Ç¤¹¡£ ¥É¥é¥¤¥Ö¥ß¥é¡¼¥ê¥ó¥°¤òÍ­¸ú¤Ë¤·¤¿¤¤¾ì¹ç¡¢ ¤³¤³¤Ë¥Õ¥é¥°¤ò»ØÄꤷ¤Þ¤¹¡£ ¤³¤ÎÀßÄê¤Ç¤Ï ccd(4) ¤ËÂФ¹¤ë¥ß¥é¡¼¥ê¥ó¥°¤ÏÄ󶡤·¤Þ¤»¤ó¤Î¤Ç¡¢ 0 (¥¼¥í) ¤ò»ØÄꤷ¤Æ¤¤¤Þ¤¹¡£
(4)
¤³¤Î ccdconfig(8) ¤ËÂФ¹¤ëºÇ¸å¤Î°ú¿ô¤Ï¡¢ ¥¢¥ì¥¤Æâ¤ËÃÖ¤¯¥Ç¥Ð¥¤¥¹¤Ç¤¹¡£ ¤½¤ì¤¾¤ì¤Î¥Ç¥Ð¥¤¥¹¤ËÂФ¹¤ë´°Á´¤Ê¥Ñ¥¹Ì¾¤ò»ÈÍѤ·¤Þ¤¹¡£

ccdconfig(8) ¤ò¼Â¹Ô¤¹¤ë¤È ccd(4) ¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£ ¤³¤ì¤Ç¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£ ¥ª¥×¥·¥ç¥ó¤Ë¤Ä¤¤¤Æ newfs(8) ¤ò»²¾È¤¹¤ë¤«¡¢ ¼¡¤Î¤è¤¦¤Ë¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

newfs /dev/ccd0c

16.4.1.1.4. ¼«Æ°Åª¤ËÀßÄꤹ¤ë

°ìÈÌŪ¤Ë¡¢ºÆµ¯Æ°¤¹¤ë¤¿¤Ó¤Ë ccd(4) ¤ò¥Þ¥¦¥ó¥È¤·¤¿¤¤¤È»×¤¦¤Ç¤·¤ç¤¦¡£¤³¤ì¤ò¹Ô¤¦¤¿¤á¤Ë¡¢ ¤Þ¤ºÀßÄê¤ò¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£¼¡¤Î¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ¡¢ ¸½ºß¤ÎÀßÄê¤ò /etc/ccd.conf ¤Ë½ñ¤­½Ð¤·¤Þ¤¹¡£

ccdconfig -g > /etc/ccd.conf

/etc/ccd.conf ¤¬Â¸ºß¤¹¤ë¤È¡¢ ºÆµ¯Æ°¤ÎºÝ¤Ë /etc/rc ¥¹¥¯¥ê¥×¥È¤¬ ccdconfig -C ¤ò¼Â¹Ô¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢ ccd(4) ¤Ï¼«Æ°Åª¤ËÀßÄꤵ¤ì¤¿¸å¡¢¥Þ¥¦¥ó¥È¤µ¤ì¤Þ¤¹¡£

注意: ¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Çµ¯Æ°¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ ccd(4) ¤ò mount(8) ¤¹¤ëÁ°¤Ë¡¢ ¥¢¥ì¥¤¤òÀßÄꤹ¤ë¤¿¤á¤Ë¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

ccdconfig -C

¼«Æ°Åª¤Ë ccd(4) ¤ò¥Þ¥¦¥ó¥È¤¹¤ë¤Ë¤Ï¡¢ /etc/fstab ¤Ë ccd(4) ¤Î¥¨¥ó¥È¥êÄɲä·¤Þ¤¹¡£¤³¤Î¤è¤¦¤ËÀßÄꤹ¤ë¤Èµ¯Æ°»þ¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤Þ¤¹¡£

/dev/ccd0c              /media       ufs     rw      2       2

16.4.1.2. Vinum ¥Ü¥ê¥å¡¼¥à¥Þ¥Í¡¼¥¸¥ã

Vinum ¥Ü¥ê¥å¡¼¥à¥Þ¥Í¡¼¥¸¥ã¤Ï¡¢ ²¾Áۥǥ£¥¹¥¯¥É¥é¥¤¥Ö¤ò¼ÂÁõ¤·¤¿¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤Ç¤¹¡£ Vinum ¤Ï¡¢¥Ç¥£¥¹¥¯¥Ï¡¼¥É¥¦¥§¥¢¤ò¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤«¤é ʬΥ¤·¡¢¥Ç¡¼¥¿¤òÇÛÃÖ¤·¤Þ¤¹¡£ ¤½¤Î·ë²Ì¡¢¥Ç¥£¥¹¥¯µ­²±ÁõÃÖ¤ò½¾Íè¤Î¥¹¥é¥¤¥¹¤Ç°·¤¦¤Î¤ÈÈæ³Ó¤·¤Æ¡¢ ½ÀÆðÀ­¡¢À­Ç½¤ª¤è¤Ó¿®ÍêÀ­¤¬¸þ¾å¤·¤Æ¤¤¤Þ¤¹¡£ vinum(8) ¤Ï RAID-0, RAID-1 ¤ª¤è¤Ó RAID-5 ¥â¥Ç¥ë¡¢ ¤½¤·¤Æ¤½¤ì¤¾¤ì¤ÎÁȹ礻¤ò¼ÂÁõ¤·¤Æ¤¤¤Þ¤¹¡£

vinum(8) ¤Î¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï Vinum ¥Ü¥ê¥å¡¼¥à¥Þ¥Í¥¸¥ã ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£

16.4.2. ¥Ï¡¼¥É¥¦¥§¥¢ RAID

FreeBSD ¤Ï¡¢¤µ¤Þ¤¶¤Þ¤Ê¥Ï¡¼¥É¥¦¥§¥¢ RAID ¥³¥ó¥È¥í¡¼¥é¤Ë¤âÂбþ¤·¤Æ¤¤¤Þ¤¹¡£¤³¤ì¤é¤Î¥Ç¥Ð¥¤¥¹¤Ï¥¢¥ì¥¤¤òÀ©¸æ¤¹¤ë¤¿¤á¤Î ÆÃÊ̤ʥ½¥Õ¥È¥¦¥§¥¢¤ò FreeBSD ¤ÇɬÍפ¹¤ë¤³¤È¤Ê¤¯¡¢ RAID ¥µ¥Ö¥·¥¹¥Æ¥à¤òÀ©¸æ¤·¤Þ¤¹¡£

¥«¡¼¥É¾å¤Î BIOS ¤ò»ÈÍѤ·¤Æ¡¢ ¥«¡¼¥É¤Ï¤½¤ì¼«¿È¤Ç¥Ç¥£¥¹¥¯Áàºî¤Î¤Û¤È¤ó¤É¤òÀ©¸æ¤·¤Þ¤¹¡£°Ê²¼¤Ï Promise IDE RAID ¥³¥ó¥È¥í¡¼¥é¤ò»ÈÍѤ·¤¿ÀßÄê¤Î´Êñ¤ÊÀâÌÀ¤Ç¤¹¡£ ¤³¤Î¥«¡¼¥É¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¡¢¥·¥¹¥Æ¥à¤¬µ¯Æ°¤·¤¿¤È¤­¤Ë¤Ï¡¢ ¾ðÊó¤ÎÆþÎϤòÂ¥¤¹¥×¥í¥ó¥×¥È¤òɽ¼¨¤·¤Þ¤¹¡£ »Ø¼¨¤Ë¤·¤¿¤¬¤Ã¤Æ¥«¡¼¥É¤ÎÀßÄê²èÌ̤˿ʤó¤Ç¤¯¤À¤µ¤¤¡£ Àܳ¤µ¤ì¤¿¥É¥é¥¤¥Ö¤òÁȤ߹ç¤ï¤»¤ë¤è¤¦¤ËÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ÀßÄê¸å¡¢¥Ç¥£¥¹¥¯¤Ï FreeBSD ¤ËÂФ·¤Æñ°ì¤Î¥É¥é¥¤¥Ö¤Î¤è¤¦¤Ë¸«¤¨¤Þ¤¹¡£ ¾¤Î RAID ¥ì¥Ù¥ë¤ÏŬµ¹ÀßÄê¤Ç¤­¤Þ¤¹¡£

16.4.3. ATA RAID1 ¥¢¥ì¥¤¤ÎºÆ¹½ÃÛ

FreeBSD ¤Ï¥¢¥ì¥¤Æâ¤Î¾ã³²¥Ç¥£¥¹¥¯¤òÆ°ºîÃæ¤Ë¸ò´¹¤Ç¤­¤Þ¤¹¡£ ¤¿¤À¤·¡¢ºÆµ¯Æ°Á°¤Ë¤½¤ì¤ò¸¡ÃΤ·¤Æ¤¤¤ë¤³¤È¤¬É¬ÍפǤ¹¡£

/var/log/messages ¤Þ¤¿¤Ï dmesg(8) ¤Î½ÐÎϤ˼¡¤Î¤è¤¦¤Ê¹Ô¤¬¤¢¤ë¤Ç¤·¤ç¤¦¡£

ad6 on monster1 suffered a hard error.
ad6: READ command timeout tag=0 serv=0 - resetting
ad6: trying fallback to PIO mode
ata3: resetting devices .. done
ad6: hard error reading fsbn 1116119 of 0-7 (ad6 bn 1116119; cn 1107 tn 4 sn 11) status=59 error=40
ar0: WARNING - mirror lost

atacontrol(8) ¤ò»ÈÍѤ·¤Æ¾ÜºÙ¤òÄ´¤Ù¤Æ¤¯¤À¤µ¤¤¡£

# atacontrol list
ATA channel 0:
	Master:      no device present
	Slave:   acd0 <HL-DT-ST CD-ROM GCR-8520B/1.00> ATA/ATAPI rev 0

ATA channel 1:
	Master:      no device present
	Slave:       no device present

ATA channel 2:
	Master:  ad4 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
	Slave:       no device present

ATA channel 3:
	Master:  ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
	Slave:       no device present

# atacontrol status ar0
ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
  1. ¥Ç¥£¥¹¥¯¤ò°ÂÁ´¤Ë¼è¤ê³°¤¹¤¿¤á¤Ë¡¢ ¤Þ¤º¥¢¥ì¥¤¤«¤éÀÚ¤êÎ¥¤·¤Þ¤¹¡£

    # atacontrol detach 3
    
  2. ¥Ç¥£¥¹¥¯¤ò¼è¤ê³°¤·¤Þ¤¹¡£

  3. ¥¹¥Ú¥¢¤Î¥Ç¥£¥¹¥¯¤ò¼è¤êÉÕ¤±¤Þ¤¹¡£

    # atacontrol attach 3
    Master:  ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
    Slave:   no device present
    
  4. ¥¢¥ì¥¤¤òºÆ¹½ÃÛ¤·¤Þ¤¹¡£

    # atacontrol rebuild ar0
    
  5. ºÆ¹½ÃÛ¥³¥Þ¥ó¥É¤Ï´°Î»¤¹¤ë¤Þ¤Ç¾¤ÎÁàºî¤ò¼õ¤±ÉÕ¤±¤Þ¤»¤ó¡£¤·¤«¤·¡¢ ¤â¤¦°ì¤ÄÊ̤Υ¿¡¼¥ß¥Ê¥ë¤ò (Alt+Fn ¤ò²¡¤·¤Æ) ³«¤­¡¢ ¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È¿Ê¹Ô¾õÂÖ¤ò³Îǧ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

    # dmesg | tail -10
    [output removed]
    ad6: removed from configuration
    ad6: deleted from ar0 disk1
    ad6: inserted into ar0 disk1 as spare
    
    # atacontrol status ar0
    ar0: ATA RAID1 subdisks: ad4 ad6 status: REBUILDING 0% completed
    
  6. Áàºî¤¬´°Î»¤¹¤ë¤Þ¤Ç¤ªÂÔ¤Á¤¯¤À¤µ¤¤¡£

ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥­¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç) Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç) Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£