LinuxÏÂͨ¹ýmdadm½øÐÐÈíraidÉèÖÃ
LinuxÏÂͨ¹ýmdadm½øÐÐÈíraidÉèÖã¨×ª£©
×¢£ºÕâÊÇһƪ¿ìËÙÈëÃÅ£¬ÈôÏë¸üÏêϸµÄÁ˽âmdadmµÄ֪ʶ£¬¿É·ÃÎÊ
1¡¢LinuxÏÂÈíraidµÄʵÏÖ£ºhttp://www.ibm.com/developerworks/cn/linux/l-cn-raid/
2¡¢³£¼ûÎÊÌâ½â¾ö£ºhttp://www.ibm.com/developerworks/cn/linux/l-cn-raid2/
**********************
×÷Ϊһ¸öÃæÏò·þÎñÆ÷µÄÍøÂçÐͲÙ×÷ϵͳ£¬Linux¶ÔÊý¾ÝµÄ°²È«ºÍ´æÈ¡ËٶȸøÓèÁ˸߶ÈÖØÊÓ£¬´Ó2.4°æÄں˿ªÊ¼Linux¾ÍʵÏÖÁ˶ÔÈí¼þRAIDµÄÖ§³Ö£¨¹ØÓÚ RAIDµÄ±³¾°ÖªÊ¶Çë¼û¸½ÎÄ£©£¬ÕâÈÃÎÒÃÇ¿ÉÒÔ²»±Ø¹ºÂò°º¹óµÄÓ²¼þRAIDÉ豸£¬¾ÍÄÜÏíÊܵ½ÔöÇ¿µÄ´ÅÅÌI/OÐÔÄܺͿɿ¿ÐÔ£¬½øÒ»²½½µµÍÁËϵͳµÄ×ÜÌåÓµÓÐ³É ±¾¡£ÏÂÃæ¾ÍÈÃÎÒÃÇ¿´Ò»¸öRedhat Linux AS 4ϵÄÈí¼þRAIDÅäÖÃʵÀý°É¡£
ϵͳÅäÖÃÇé¿ö
¼ÙÉèijµ¥Î»ÐÂÉÏ ÁËÒ»Ì×ʹÓÃOracleÊý¾Ý¿âµÄÄÜÁ¿²É¼¯ÏµÍ³£¬¸ÃϵͳÊý¾ÝÁ¿¼«´ó²¢ÇÒ¶Áд·Ç³£Æµ·±£¬ÊµÊ±ÐÔÒªÇó¸ß£¬¸ß·åʱÓнü40ÃûÓû§ÔÚÏߣ¬¶ÔÊý¾Ý¿â·þÎñÆ÷µÄ´ÅÅÌ×Óϵͳ Ìá³öÁ˺ܸߵÄÒªÇó¡£ÓÉÓÚÔ¤Ëã±È½Ï½ôÕÅ£¬¾¹ý¶à·½±È½Ï£¬×îÖÕÑ¡ÔñÁ˲ÉÓÃLinuxϵͳ×öÈí¼þRAID5µÄ·½°¸¡£
ÆäÅäÖÃÇé¿öÈçÏ£º
¡ñ ²Ù×÷ϵͳΪRedHat Linux AS 4£»
¡ñ Äں˰汾Ϊ2.6.9-5.EL£»
¡ñ Ö§³ÖRAID0¡¢RAID1¡¢RAID4¡¢RAID5¡¢RAID6£»
¡ñ Îå¿é36GB SCSI½Ó¿ÚµÄ´ÅÅÌ£¬ÆäÖÐRedHat AS 4°²×°ÔÚµÚÒ»¿é´ÅÅÌ£¬ÆäËüËÄ¿é×é³ÉRAID 5ÓÃÀ´´æ·ÅOracleÊý¾Ý¿â¡£
ÔÚRedHat AS 4ÏÂʵÏÖÈí¼þRAIDÊÇͨ¹ýmdadm¹¤¾ßʵÏֵģ¬Æä°æ±¾Îª1.6.0£¬ËüÊÇÒ»¸öµ¥Ò»µÄ³ÌÐò£¬´´½¨¡¢¹ÜÀíRAID¶¼·Ç³£·½±ã£¬¶øÇÒÒ²ºÜÎȶ¨¡£¶øÔÚÔçÆÚ LinuxÏÂʹÓõÄraidtools£¬ÓÉÓÚά»¤ÆðÀ´ºÜÀ§ÄÑ£¬¶øÇÒÆäÐÔÄÜÓÐÏÞ£¬ÔÚRedHat AS 4ÏÂÒѾ²»Ö§³ÖÁË¡£
ʵÏÖ¹ý³Ì
1£®´´½¨·ÖÇø
Îå ¿éSCSI´ÅÅÌ·Ö±ð¶ÔÓ¦/dev/sda¡¢/dev/sdb¡¢/dev/sdc¡¢/dev/sdd¡¢/dev/sde¡£ÆäÖеÚÒ»¿é´ÅÅÌ/dev/sda·Ö Á½¸öÇø£¬ÓÃÓÚ°²×°RedHat AS 4ºÍ×ö½»»»·ÖÇø£¬ÆäËûËÄ¿é´ÅÅÌÿ¿éÖ»·ÖÒ»¸öÖ÷·ÖÇø£¬·Ö±ðΪ/dev/sdb1¡¢/dev/sdc1¡¢/dev/sdd1¡¢/dev/sde1£¬²¢ÇÒ½«·ÖÇø ÀàÐÍÖ¸¶¨Îª“fd”£¬Õ⽫ʹLinuxÄÚºËÄܽ«ËüÃÇʶ±ðΪRAID·ÖÇø£¬ÇÒÔÚÿ´ÎÒýµ¼Ê±×Ô¶¯±»¼ì²â²¢Æô¶¯¡£´´½¨·ÖÇøʹÓÃfdiskÃüÁî¡£
# fdisk /dev/sdb
½øÈëfdiskÃüÁîÐкó£¬Ê¹ÓÃÃüÁîn´´½¨·ÖÇø£¬ÃüÁît¸Ä±ä·ÖÇøÀàÐÍ£¬ÃüÁîw±£´æ·ÖÇø±í²¢Í˳ö£¬ÃüÁîmΪ°ïÖú¡£
2£®´´½¨RAID 5
Õâ ÀïʹÓÃÁË/dev/sdb1¡¢/dev/sdc1¡¢/dev/sdd1¡¢/dev/sde1ËĸöÉ豸´´½¨RAID 5£¬ÆäÖÐ/dev/sde1×÷Ϊ±¸·ÝÉ豸£¬ÆäËûΪ»î¶¯É豸¡£±¸·ÝÉ豸Ö÷ÒªÆð±¸ÓÃ×÷Óã¬Ò»µ©Ä³Ò»É豸Ë𻵿ÉÒÔÁ¢¼´Óñ¸·ÝÉ豸Ìæ»»£¬µ±
Ïà¹ØÎĵµ£º
ÕâôÄã¾ÍÐèÒªÐÞ¸ÄÒ»ÏÂ×Ö·û±àÂëµÄÅäÖá£
# cd /etc/sysconfig
# vi i18n
-------------------ÎļþÄÚÈÝ------------------
LANG="zh_CN.GB18030"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en:zh_CN.GB18030"
SYSFONT="latarcyrheb-sun16"
-----------------------£ºqw ±£´æÍ ......
ÕªÒª: ±¾ÎÄÏê½âÁËÄÚºËÖÐÃæÏò¶ÔÏóµÄlist½á¹¹µÄÔÀí£¬ÒÔ¼°ÈçºÎÒÔlistΪÄÚǶ¶ÔÏóÀ´¹¹Ôì×Ô¼ºµÄÁ´±í½á¹¹£¬ÈçºÎ´ÓÄÚǶlist¶ÔÏó»ñµÃ×Ô¶¨ÒåµÄ¶ÔÏóÖ¸Õ룻̽ÌÖÁ˸÷ÖÖºê»òÕߺ¯ÊýµÄÏêϸʹÓ÷½·¨¼°ÔõÑùÒÔͨÓÃlist½á¹¹À´²Ù×÷×Ô¶¨Òå¶ÔÏó¡£
¹Ø¼ü×Ö:Ë«ÏòÑ»·Á´±í£¬list£¬list_entry£¬typeof£¬containerof£¬list_for_each,list_for_each ......
SyslogÉ豸ÒÀ¾ÝÁ½¸öÖØÒªµÄÎļþ£º/etc/syslogd£¨ÊØ»¤½ø³Ì£©ºÍ/etc/syslog.confÅäÖÃÎļþ£¬Ï°¹ßÉÏ£¬¶àÊýsyslog ÐÅÏ¢±»Ð´µ½/var/adm»ò/var/logĿ¼ÏµÄÐÅÏ¢ÎļþÖУ¨messages.*£©¡£Ò»¸öµäÐ͵Äsyslog¼Í¼°üÀ¨Éú³É³ÌÐòµÄÃû×ÖºÍÒ»¸öÎı¾ÐÅÏ¢¡£Ëü»¹°üÀ¨Ò»¸öÉ豸ºÍÒ»¸öÓÅÏȼ¶·¶Î§£¨µ«²»ÔÚÈÕÖ®ÖгöÏÖ£©¡£
¡¡¡¡Ã¿¸ösyslogÏûÏ¢±»¸³ÓèÏ ......
ÉùÃ÷£º¸ÃÎļþÊǶÔÎÒ2009Äê×îºóÁ½ÖÜѧϰ¹ý³ÌµÄ×ܽᣬϣÍûÄÜ°ïÖúµ½Ñ§Ï°ÖеÄÈËÃÇ¡£¸ÃÎĵµ°´ÕÕµ±Ç°ÈÕÆÚµÄ×îаæGPLÐÒé·¢²¼¡£»¶ÓתÔØ£¬µ«Ðë×¢Ã÷×÷Õß¼°³ö´¦¡£
×÷ÕߣºJim Zheng¡£½Ó´¥Linux 4Ä꣬µ«ÊÇÒ»Ö±´¦ÓÚ×Ôѧ״̬£¬Ã»Óлú»á²ÎÓëLinuxƽ̨µÄ²úÆ·¿ª·¢¡£ºÜÏ£ÍûÄÜÓÃÉÏLinuxƽ̨×÷ʵ¼Ê¿ª·¢¡£ÁªÏµ·½Ê½:zhengweishang@google.com
......