linuxÂß¼¾í¹ÜÀí (LVM)
ʲôÊÇ LVM
LVM ÊÇÂß¼Å̾í¹ÜÀí£¨Logical Volume Manager£©µÄ¼ò³Æ£¬ËüÊÇ Linux »·¾³Ï¶ԴÅÅÌ·ÖÇø½øÐйÜÀíµÄÒ»ÖÖ»úÖÆ£¬LVM
Êǽ¨Á¢ÔÚÓ²Å̺ͷÖÇøÖ®ÉϵÄÒ»¸öÂß¼²ã£¬À´ÎªÎļþϵͳÆÁ±Îϲã´ÅÅÌ·ÖÇø²¼¾Ö£¬´Ó¶øÌá¸ß´ÅÅÌ·ÖÇø¹ÜÀíµÄÁé»îÐÔ¡£Í¨¹ý LVM
ϵͳ¹ÜÀíÔ±¿ÉÒÔÇáËɹÜÀí´ÅÅÌ·ÖÇø£¬È磺½«Èô¸É¸ö´ÅÅÌ·ÖÇøÁ¬½ÓΪһ¸öÕû¿éµÄ¾í×飨volume
group£©£¬ÐγÉÒ»¸ö´æ´¢³Ø¡£¹ÜÀíÔ±¿ÉÒÔÔÚ¾í×éÉÏËæÒâ´´½¨Âß¼¾í×飨logical
volumes£©£¬²¢½øÒ»²½ÔÚÂß¼¾í×éÉÏ´´½¨Îļþϵͳ¡£¹ÜÀíԱͨ¹ý LVM
¿ÉÒÔ·½±ãµÄµ÷Õû´æ´¢¾í×éµÄ´óС£¬²¢ÇÒ¿ÉÒÔ¶Ô´ÅÅÌ´æ´¢°´ÕÕ×éµÄ·½Ê½½øÐÐÃüÃû¡¢¹ÜÀíºÍ·ÖÅ䣬ÀýÈç°´ÕÕʹÓÃÓÃ;½øÐж¨Ò壺“development”ºÍ
“sales”£¬¶ø²»ÊÇʹÓÃÎïÀí´ÅÅÌÃû“sda”ºÍ“sdb”¡£¶øÇÒµ±ÏµÍ³Ìí¼ÓÁËеĴÅÅÌ£¬Í¨¹ý LVM
¹ÜÀíÔ±¾Í²»±Ø½«´ÅÅ̵ÄÎļþÒƶ¯µ½ÐµĴÅÅÌÉÏÒÔ³ä·ÖÀûÓÃеĴ洢¿Õ¼ä£¬¶øÊÇÖ±½ÓÀ©Õ¹Îļþϵͳ¿çÔ½´ÅÅ̼´¿É¡£
LVM »ù±¾ÊõÓï
ÎïÀí¾í (physical volume, PV)
ÎïÀí¾íÔÚ LVM ϵͳÖд¦ÓÚ×îµ×²ã
ÎïÀí¾í¿ÉÒÔÊÇÕû¸öÓ²ÅÌ¡¢Ó²ÅÌÉϵķÖÇø»ò´ÓÂß¼ÉÏÓë´ÅÅÌ·ÖÇø¾ßÓÐͬÑù¹¦ÄܵÄÉ豸£¨È磺RAID£©
ÎïÀí¾íÊÇ LVM µÄ»ù±¾´æ´¢Âß¼¿é£¬µ«ºÍ»ù±¾µÄÎïÀí´æ´¢½éÖÊ£¨Èç·ÖÇø¡¢´ÅÅ̵ȣ©±È½Ï£¬È´°üº¬ÓÐÓë LVM Ïà¹ØµÄ¹ÜÀí²ÎÊý
¾í×é (Volume Group, VG)
¾í×齨Á¢ÔÚÎïÀí¾íÖ®ÉÏ£¬ËüÓÉÒ»¸ö»ò¶à¸öÎïÀí¾í×é³É
¾í×é´´½¨Ö®ºó£¬¿ÉÒÔ¶¯Ì¬Ìí¼ÓÎïÀí¾íµ½¾í×éÖУ¬ÔÚ¾í×éÉÏ¿ÉÒÔ´´½¨Ò»¸ö»ò¶à¸ö“LVM ·ÖÇø”£¨Âß¼¾í£©
Ò»¸ö LVM ϵͳÖпÉÒÔÖ»ÓÐÒ»¸ö¾í×飬Ҳ¿ÉÒÔ°üº¬¶à¸ö¾í×é
LVM µÄ¾í×éÀàËÆÓÚ·Ç LVM ϵͳÖеÄÎïÀíÓ²ÅÌ
Âß¼¾í (Logical Volume, LV)
Âß¼¾í½¨Á¢ÔÚ¾í×éÖ®ÉÏ£¬ËüÊÇ´Ó¾í×éÖГÇгö”µÄÒ»¿é¿Õ¼ä
Âß¼¾í´´½¨Ö®ºó£¬Æä´óС¿ÉÒÔÉìËõ
LVM µÄÂß¼¾íÀàËÆÓÚ·Ç LVM ϵͳÖеÄÓ²ÅÌ·ÖÇø£¬ÔÚÂß¼¾íÖ®ÉÏ¿ÉÒÔ½¨Á¢Îļþϵͳ £¨±ÈÈç /home »òÕß /usr µÈ£©
ÎïÀíÇøÓò (Physical Extent, PE)
ÿһ¸öÎïÀí¾í±»»®·ÖΪ»ù±¾µ¥Ôª£¨³ÆΪ PE£©£¬¾ßÓÐΨһ±àºÅµÄ PE ÊÇ¿ÉÒÔ±» LVM Ñ°Ö·µÄ×îС´æ´¢µ¥Ôª
PE µÄ´óС¿É¸ù¾Ýʵ¼ÊÇé¿öÔÚ´´½¨ÎïÀí¾íʱָ¶¨£¬Ä¬ÈÏΪ 4MB
PE µÄ´óСһµ©È·¶¨½«²»Äܸı䣬ͬһ¸ö¾í×éÖеÄËùÓÐÎïÀí¾íµÄ PE µÄ´óСÐèÒªÒ»ÖÂ
Âß¼ÇøÓò (Logical Extent, LE)
Âß¼¾íÒ²±»»®·ÖΪ¿É±»Ñ°Ö·µÄ»ù±¾µ¥Î»£¨³ÆΪ LE£©
ÔÚͬһ¸ö¾í×éÖУ¬LE µÄ´óСºÍ PE ÊÇÏàͬµÄ£¬²¢ÇÒÒ»Ò»¶ÔÓ¦
PV-VG-LV-PE ¹Øϵͼ
ºÍ·Ç LVM
ϵͳ
Ïà¹ØÎĵµ£º
ǶÈëʽLinuxÏ´®¿Ú±à³Ì
Ò»¡¢ÅäÖÃÄÚºË
ÔÚǶÈëʽLinuxϽøÐд®¿Ú±à³Ì֮ǰ£¬ÏÈÔÚÄÚºËÖÐÅäÖô®¿Ú²¿·Ö£¬ÈçÏ£º
Device Drivers--->
character devices--->
Serial drivers--->
&nb ......
·½·¨Ò»
mount -o iocharset=cp936 /dev/hda5 /mnt/d
·½·¨¶þ
rhel5 ¹ÒÔØ·ÇLinux·ÖÇøµÄ·½·¨
½ñÌìÖÕÓÚ°²×°ºÃÁËrhel5 client,ÔÚÅäÖÿª·¢»·¾³µÄʱºòÓöµ½Á˵ÚÒ»¸öÎÊÌ⣺µÇ¼ºó×ÀÃæÉÏûÓжÁµ½ÎÒµÄWindowsÎļþ·ÖÇø¡£ºÜ
¶à¹¤¾ß¶¼ÔÚÄÇÀï´æ×Å£¬ËùÒÔ£¬Ò»¶¨Òª°ÑËüÕÒ³öÀ´¡£
ÏÈÊÇÔÚÊéÉÏÕÒµ½Á˹ÒÔØÆäËü·ÖÇøµÄ·½·¨£¬ÔÚÖÕ¶ËÄÚÓà ......
×î½üÁ½Ä꣬ÎļþϵͳµÃµ½Á˺ܴóµÄ·¢Õ¹¡£
SunÓпªÔ´µÄZFSÒÔ¼°ÊÕ¹ºµÄLustreÎļþϵͳ¡£Quantum¡¢Panasas¡¢ IBM¡¢»ÝÆÕ¡¢NetAppºÍRed HatÒ²¶¼ÔöÇ¿ÁËÎļþϵͳ¿ª·¢Á¦¶È¡£NFS£¨ÍøÂçÎļþϵͳ£©ÕýÔÚ¾Àú´óµÄ±ä¶¯£¬Ö÷Òª´ú±í¾ÍÊÇpNFS£¨²¢ÐÐÍøÂçÎļþϵͳ£©¡£ºÁ²»Ææ¹ÖµÄÊÇ£¬ËùÓÐÕâЩ¿ª·¢Ðж¯´Ùʹ¿ªÔ´ÉçÇøÍƳöÕë¶ÔLinuxµÄ¸ü¸ßÐÔÄܵÄÎļþÏµÍ ......
ÓÐÁ½ÖÖÉèÖû·¾³±äÁ¿ PATH µÄ·½·¨¡£µÚÒ»ÖÖÊÊÓÃÓÚΪµ¥Ò»Óû§ÉèÖà PATH£¬µÚ¶þÖÖÊÇΪȫ¾ÖÉèÖà PATH¡£
1.ÔÚÓû§Ö÷Ŀ¼ÏÂÓÐÒ»¸ö .bashrc Îļþ£¬¿ÉÒÔÔÚ´ËÎļþÖмÓÈë PATH µÄÉèÖÃÈçÏ£º
export PATH=”$PATH:/your path1/:/your path2/…..”
×¢Ò⣺ÿһ¸ö path Ö®¼äÒªÓà “:“ ·Ö¸ô¡£
× ......
mkdir /downloads
chown -R root:root /downloads
chmod -R 774 /downloads
Ò»¡¢°²×°Apache2
ÏÂÔصØÖ·£ºhttp://www.apache.org/ --> HTTP Server --> from a mirror
1. »ñÈ¡mysqlÔ´Âë
shell> cd /downloads
......