LinuxÂß¼¾í¹ÜÀíLVMÏê½â
Ò»¡¢ ǰÑÔ
LVMÊÇÂß¼¾í¹ÜÀí£¨Logical Volume Manager£©µÄ¼ò³Æ£¬ËûÊǽ¨Á¢ÔÚÎïÀí´æ´¢É豸֮ÉϵÄÒ»¸ö³éÏó²ã£¬ÔÊÐíÄãÉú³ÉÂß¼´æ´¢¾í,ºÍÖ±½ÓʹÓÃÎïÀí´æ´¢ÔÚ¹ÜÀíÉÏÏà±È,ÌṩÁ˸üºÃÁé»îÐÔ¡£
LVM½«´æ´¢ÐéÄ⻯,ʹÓÃÂß¼¾í,Äã²»»áÊÜÏÞÓÚÎïÀí´ÅÅ̵ĴóС,ÁíÍâ,ºÍÓ²¼þÏà¹ØµÄ´æ´¢ÉèÖñ»ÆäÒþ²Ø,ÄãÄܲ»ÓÃÍ£Ö¹Ó¦ÓûòÐ¶ÔØÎļþϵͳÀ´µ÷Õû¾í´óС»òÊý¾ÝÇ¨ÒÆ.ÕâÑùÄܼõÉÙ²Ù×÷³É±¾.
LVMºÍÖ±½ÓʹÓÃÎïÀí´æ´¢Ïà±È,ÓÐÒÔϺô¦:
1. Áé»îµÄÈÝÁ¿.
µ±Ê¹ÓÃÂß¼¾íʱ,ÎļþϵͳÄÜÀ©Õ¹µ½¶à¸ö´ÅÅÌÉÏ,ÄãÄܾۺ϶à¸ö´ÅÅÌ»ò´ÅÅÌ·ÖÇø³Éµ¥Ò»µÄÂß¼¾í.
2.¿ÉÉìËõµÄ´æ´¢³Ø.
ÄãÄÜʹÓüòµ¥µÄÃüÁîÀ´À©´ó»òËõСÂß¼¾í´óС,²»ÓÃÖØÐ¸ñʽ»¯»ò·ÖÇø´ÅÅÌÉ豸.
3.ÔÚÏßµÄÊý¾ÝÔÙ·ÖÅä.
ÄãÄÜÔÚÏßÒÆ¶¯Êý¾Ý,Êý¾ÝÄÜÔÚ´ÅÅÌÔÚÏßµÄÇé¿öÏÂÖØÐ·ÖÅä.±ÈÈç,ÄãÄÜÔÚÏ߸ü»»¿ÉÈȲå°ÎµÄ´ÅÅÌ.
4. ·½±ãµÄÉ豸ÃüÃû
Âß¼¾íÄܰ´Äã¾õµÃ·½±ãµÄ·½Ê½À´ÆðËùÓÐÃû³Æ.
5.´ÅÅÌÌõ¿é»¯.
ÄãÄÜÉú³ÉÒ»¸öÂß¼ÅÌ,ËûµÄÊý¾ÝÄܱ»Ìõ¿é»¯´æ´¢ÔÚ2¸ö»ò¸ü¶àµÄ´ÅÅÌÉÏ.ÕâÑùÄÜÃ÷ÏÔÌáÉýÊý¾ÝÍÌÍÂÁ¿.
6.Ó³Ïñ¾í
Âß¼¾íÌṩ·½±ãµÄ·½·¨À´Ó³ÏñÄãµÄÊý¾Ý.
7.¾í¿ìÕÕ
ʹÓÃÂß¼¾í,ÄãÄÜ»ñµÃÉ豸¿ìÕÕÓÃÀ´Ò»ÖÂÐÔ±¸·Ý»ò²âÊÔÊý¾Ý¸üÐÂЧ¹û¶ø²»Ó°ÏìÕæÊµÊý¾Ý.
¶þ¡¢ LVM»ù±¾ÊõÓï
Ç°ÃæÌ¸µ½£¬LVMÊÇÔÚÎïÀí´æ´¢ÉÏÌí¼ÓµÄÒ»¸öÂß¼²ã£¬À´ÎªÎļþϵͳÆÁ±ÎÏÂÃæµÄÓ²¼þ´æ´¢É豸£¬ÌṩÁËÒ»¸ö³éÏóµÄÅÌ¾í£¬ÔÚÅ̾íÉϽ¨Á¢Îļþϵͳ¡£Ê×ÏÈÎÒÃÇÌÖÂÛÒÔϼ¸¸öLVMÊõÓ
* ÎïÀí´æ´¢½éÖÊ£¨The Physical Media£©
ÕâÀïָϵͳµÄ´æ´¢É豸£¬È磺/dev/hda1¡¢/dev/sdaµÈµÈ£¬ÊǴ洢ϵͳ×îµÍ²ãµÄ´æ´¢µ¥Ôª¡£
* ÎïÀí¾í£¨PV, Physical Volume£©
ÎïÀí¾í¾ÍÊÇÖ¸´ÅÅÌ,´ÅÅÌ·ÖÇø»ò´ÓÂß¼ÉϺʹÅÅÌ·ÖÇø¾ßÓÐͬÑù¹¦ÄܵÄÉ豸(ÈçRAID)£¬ÊÇLVMµÄ»ù±¾´æ´¢Âß¼¿é£¬µ«ºÍ»ù±¾µÄÎïÀí´æ´¢½éÖÊ£¨Èç·ÖÇø¡¢´ÅÅ̵ȣ©±È½Ï£¬È´°üº¬ÓкÍLVMÏà¹ØµÄ¹ÜÀí²ÎÊý¡£µ±Ç°LVMÔÊÐíÄãÔÚÿ¸öÎïÀí¾íÉϱ£´æÕâ¸öÎïÀí¾íµÄ0ÖÁ2·ÝÔªÊý¾Ý¿½±´.ĬÈÏΪ1,±£´æÔÚÉ豸µÄ¿ªÊ¼´¦.Ϊ2ʱ,ÔÚÉ豸½áÊø´¦±£´æµÚ¶þ·Ý±¸·Ý.
* ¾í×飨VG, Volume Group£©
LVM¾í×éÀàËÆÓÚ·ÇLVMϵͳÖеÄÎïÀíÓ²ÅÌ£¬ÆäÓÉÎïÀí¾í×é³É¡£ÄÜÔÚ¾í×éÉÏ´´½¨Ò»¸ö»ò¶à¸ö“LVM·ÖÇø”£¨Âß¼¾í£©£¬LVM¾í×éÓÉÒ»¸ö»ò¶à¸öÎïÀí¾í×é³É¡£
* Âß¼¾í£¨LV, Logical Volume£©
LVMµÄÂß¼¾íÀàËÆÓÚ·ÇLVMϵͳÖеÄÓ²ÅÌ·ÖÇø£¬ÔÚÂß¼¾íÖ®ÉÏÄܽ¨Á¢Îļþϵͳ(±ÈÈç/home»ò/usrµÈ)¡£
*ÏßÐÔÂß¼¾í (Linear Volumes)
Ò»¸öÏßÐÔÂß¼¾í¾ÛºÏ¶à¸öÎïÀí¾í³ÉΪһ¸öÂß¼¾í.±ÈÈç,Èç¹ûÄãÓÐÁ½¸ö60GBÓ²ÅÌ,ÄãÄÜÉú³É120GBµÄÂß¼¾í.
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâÆª·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´Ë×ªÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨ÕâÆª²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
limits.conf Îļþʵ¼ÊÊÇ Linux PAM£¨²åÈëʽÈÏ֤ģ¿é£¬Pluggable Authentication Modules£©ÖÐ pam_limits.so µÄÅäÖÃÎļþ£¬¶øÇÒÖ»Õë¶ÔÓÚµ¥¸ö»á»°¡£
limits.confµÄ¸ñʽÈçÏ£º
username|@groupname type resource limit
username|@groupname£ºÉèÖÃÐèÒª±»ÏÞÖÆµÄÓû§Ãû£¬×éÃûÇ°Ãæ¼Ó@ºÍÓû§ÃûÇø±ð¡£Ò²¿ÉÒÔÓÃͨÅä·û*À´×öËùÓÐÓû§ ......
Áí£ºÒªÊµÏÖijһЩlinux×Ô´øÃüÁîÏàͬµÄ¹¦ÄÜ£¬£¨±ÈÈ磺ҪʵÏÖÔÚlinuxϲéѯcpuµÄÕ¼ÓÃÂÊ£¬linuxµÄÃüÁîÊÇtop£©, ¿ÉÒԲο¼Ò»Ï¸ÃÃüÁî(top)µÄlinuxÔ´Â룬
ת×Ôhttp://hi.baidu.com/yanjinbin/blog/item/3d25ebdd29756fea76c6381f.html
# which reboot <---whichÖ¸Áî»áÔÚ»·¾³±äÁ¿$PATHÉèÖõÄĿ¼Àï²éÕÒ·ûºÏÌõ¼þµÄ ......
Õë¶ÔºÃ¶àLinux °®ºÃÕß¶ÔÄں˺ÜÓÐÐËȤȴÎÞ´ÓÏ¿ڣ¬±¾ÎÄÖ¼ÔÚ½éÉÜÒ»ÖÖ½â¶ÁlinuxÄÚºËÔ´ÂëµÄÈëÃÅ·½·¨£¬¶ø²»Êǽâ˵linux¸´ÔÓµÄÄں˻úÖÆ£» £¨²Î¿¼×ÊÁÏÀ´Ô´£º·ÉÁè http://www.witech.com.cn/£©
Ò»£®ºËÐÄÔ´³ÌÐòµÄÎļþ×éÖ¯£º
1£®LinuxºËÐÄÔ´³ÌÐòͨ³£¶¼°²×°ÔÚ/usr/src/linuxÏ£¬¶øÇÒËüÓÐÒ»¸ö·Ç³£¼òµ¥µÄ±àºÅÔ¼¶¨£ºÈκÎżÊýµÄºËÐÄ£ ......