Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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×÷Ϊ±¸·ÝÉ豸£¬ÆäËûΪ»î¶¯É豸¡£±¸·ÝÉ豸Ö÷ÒªÆð±¸ÓÃ×÷Óã¬Ò»µ©Ä³Ò»É豸Ë𻵿ÉÒÔÁ¢¼´Óñ¸·ÝÉ豸Ìæ»»£¬µ±


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

linux ¶¨Ê±ÈÎÎñ crontab Ïêϸ½âÊÍ

cron ÊÇlinuxµÄÄÚÖ÷þÎñ£¬µ«Ëü²»×Ô¶¯ÆðÀ´£¬¿ÉÒÔÓÃÒÔϵķ½·¨Æô¶¯¡¢¹Ø±ÕÕâ¸ö·þÎñ£º 
ÒýÓÃ: 
/sbin/service crond start //Æô¶¯·þÎñ 
/sbin/service crond stop //¹Ø±Õ·þÎñ 
/sbin/service crond restart //ÖØÆô·þÎñ 
/sbin/service crond reload //ÖØÐÂÔØÈëÅäÖà
//============= ......

Ïê½âLinuxÄÚºË֮˫ÏòÑ­»·Á´±í(ת)

ÕªÒª: ±¾ÎÄÏê½âÁËÄÚºËÖÐÃæÏò¶ÔÏóµÄlist½á¹¹µÄÔ­Àí£¬ÒÔ¼°ÈçºÎÒÔlistΪÄÚǶ¶ÔÏóÀ´¹¹Ôì×Ô¼ºµÄÁ´±í½á¹¹£¬ÈçºÎ´ÓÄÚǶlist¶ÔÏó»ñµÃ×Ô¶¨ÒåµÄ¶ÔÏóÖ¸Õ룻̽ÌÖÁ˸÷ÖÖºê»òÕߺ¯ÊýµÄÏêϸʹÓ÷½·¨¼°ÔõÑùÒÔͨÓÃlist½á¹¹À´²Ù×÷×Ô¶¨Òå¶ÔÏó¡£
¹Ø¼ü×Ö:Ë«ÏòÑ­»·Á´±í£¬list£¬list_entry£¬typeof£¬containerof£¬list_for_each,list_for_each ......

linux c and asm ͬʱʹÓÃ

from: ¡¶×Ô¼º¶¯ÊÖд²Ù×÷ϵͳ¡·
1. ÖжÏÏòÁ¿±í ²é¿´ linux/init/main.c in http://lxr.linux.no/#linux+v2.6.32/init/main.c
2.
; [root@XXX XXX]# nasm -f elf foo.asm -o foo.o
; [root@XXX XXX]# gcc -c bar.c -o bar.o
; [root@XXX XXX]# ld -s foo.o bar.o -o foobar
; [root@XXX XXX]# ./foobar
; the 2nd on ......

´Ówindows xp¶ÁÈ¡linux ext4·ÖÇøµÄÎļþ

ÓÃÁ˺þõÄlinux£¬ firefoxµÄ²å¼þ¶¼·ÅÔÚlinuxµÄext4·ÖÇøÉÏ¡£ ÏëÒªÔÚwindows xpÖжÁÈ¡ext4·ÖÇøµÄÎļþ£¬½ÓמÍÓÐÁËÒ»¶Î¾ªÐĶ¯Æǵľ­Àú¡£
Ê×ÏÈÊǵ½googleÉÏËÑË÷“reading linux ext4 from windows”£¬ÕÒµ½ºÃ¼¸¸öÍøҳ˵¿ÉÒÔÓÃext2fsd»òÕßlinux readerµÄ£¬ext2fsdºÍlinux reader¶¼ºÅ³ÆÖ§³Öext4, µ«¶¼Ã»Óгɹ¦¶ÁÈ¡¡£ ¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ