linux LVM»ù±¾²Ù×÷
1.Ôö¼ÓÓ²¼þ
Ôö¼ÓµÄideÓ²ÅÌǰ׺Ϊhd£¬scsiÓ²ÅÌǰ׺Ϊsd£»µÚÒ»¿éÓ²ÅÌΪhda»òsda£¬µÚ¶þ¿éÓ²ÅÌΪhdb»òsdb,ÒÔ´ËÀàÍÆ¡£
2.ÓÃpvcreate´´½¨physical volumn
pvcreate /dev/sdb1 /dev/sdb2
´Ë´¦ËùÓõķÖÇøÊǵڶþ²½ÖвÙ×÷µÄÀàÐÍΪ8eµÄ·ÖÇø£¬pvcreateµÄ²ÎÊý¿ÉÒÔΪ1¸ö»ò¶à¸ö£»´´½¨Íê³Éºó¿ÉÒÔÓÃpvdisplay -vÀ´²é¿´´´½¨µÄÇé¿ö£¬ÓÃpvremove¿ÉÒÔÒƳýlvmµÄlabel,ÊÇpvcreateµÄ·´²Ù×÷
3.ÓÃvgcreate´´½¨volume group
vgcreate vg01 /dev/sdb1 /dev/sdb2
´´½¨Íê³ÉʹÓÃvgdisplay -v²é¿´´´½¨µÄÇé¿ö£¬vgrename¿ÉÒÔÐ޸ĸղŴ´½¨µÄvgµÄÃû×ÖvgremoveÊÇvgcreateµÄ·´²Ù×÷£¬vgreduce¿ÉÒÔÒƳý¸ÃvgÖеÄÒ»¸ö»ò¶à¸öpv
5.ÓÃlvcreate´´½¨logical volumn
lvcreate -L 100M -n lvm01 vg01 (´Óvg01´´½¨100MµÄÃûΪlvm01µÄlvm)
ʹÓÃlvdisplay -v ²é¿´lvmµÄ´´½¨Çé¿ö£¬lvremoveΪlvcreateµÄ·´²Ù×÷£¬lvrename¸ÄÃû×Ö
6.ÓÃmkfs¸ñʽ»¯´´½¨ºÃµÄlv
´´½¨ºÃlvmºó£¬ÐèÒª½«Æä¸ñʽ»¯Îªµ±Ç°²Ù×÷ϵͳ¿ÉÒÔʹÓõÄÎļþϵͳ¸ñʽ
mkfs -t ext3 /dev/vg01/lvm01
7.mout´´½¨ºÃµÄlvµ½Îļþϵͳ
mount -t ext3 /dev/vg01/lvm01 /mnt
8.À©Õ¹lvmµÄÈÝÁ¿
lvextend -L +100M /dev/vg01/lvm01
ʹÈÝÁ¿À©Õ¹²Ù×÷ÂíÉÏÆð×÷Ó㬿ÉÒÔʹÓÃÃüÁî
ext2online /dev/vg01/lvm01
¶ÔÓÚrhel3¼°ÒÔÇ°°æ±¾µÄLinux£¬ÒòΪûÓÐext2onlineÃüÁÐèÒª×öÈçϵIJÙ×÷
umount /dev/vg01/lvm01
resize2fs /dev/vg01/lvm01
ÔÙÖØа²×°Îļþϵͳ
Mount /dev/vg01/lvm01 /mnt
Ïà¹ØÎĵµ£º
ÉùÃ÷
£º¿ÉÒÔ×ÔÓÉתÔر¾ÎÄ£¬µ«ÇëÎñ±Ø±£Áô±¾ÎĵÄÍêÕûÐÔ¡£
×÷Õß
£ºÕÅ×Ó¼á
email
:zhangzijian@163.com
˵Ã÷
£º±¾ÎÄËùÉ漰ʾÀý¾ùÔÚfedora core3ϵõ½¡£
--------------------------------------------------------------------------------
/proc
ÎļþϵͳϵĶàÖÖÎļþÌṩµÄϵͳÐÅÏ¢²»ÊÇÕë¶Ôij¸öÌض¨½ø³ÌµÄ£¬¶øÊÇÄ ......
ÕâÒ»²¿·ÖµÄÌá³öÊÇΪÁË·Àֹʧ¿ØµÄ½ø³ÌÆÆ»µÏµÍ³µÄÐÔÄÜ
nuixºÍLinux¸ú×Ù½ø³ÌʹÓõĴ󲿷Ö×ÊÔ´£¬ÔÊÐíÓû§ºÍϵͳ¹ÜÀíԱʹÓöԽø³ÌµÄ×ÊÔ´ÏÞÖÆ
ÉèÖõÄÏÞÖÆÓÐÁ½ÖÖ£º Ó²ÏÞÖƺÍÈíÏÞÖÆ
Ó²ÏÞÖÆÊÇ¿ÉÒÔÔÚÈκÎʱºòÈκνø³ÌÖÐÉèÖà µ«Ó²ÏÞÖÆÖ»ÄÜÓɳ¬¼¶Óû§ÌáÆð
ÈíÏÞÖÆÊÇÄÚºËʵ¼ÊÖ´ÐеÄÏÞÖÆ£¬Èκνø³Ì¶¼¿ÉÒÔ½«ÈíÏÞÖÆÉèÖÃΪÈÎÒ ......
×¼±¸¹¤×÷
qt-everywhere-opensource-src-4.6.2.tar
½âѹ tar xvzf qt-everywhere-opensource-src-4.6.2.tar
ÅäÖÃ:
./configure -prefix /home/hyk/Qt_self_compiled/Qt_4_6_2
£¨Ö»ÊǸıäÁË°²×°Ä¿Â¼£©
gmake
(ÖØÅäÖÃ gmake confclean , configure)
ÖÐÎç12 ......
1¡¢´´½¨mysqlÊý¾Ý¿âµÄ¹ÜÀíÓû§
Êý¾Ý¿â°²×°ºÃºó£¬ÎÒÃÇÓ¦¸ÃΪmysqlÊý¾Ý¿â´´½¨Ò»¸ö¹ÜÀíÕʺš£Òª°ÑrootÓû§ÉèÖÃΪ¹ÜÀíÔ±£¬´ËʱÐèÒªÖ´ÐÐÏÂÃæÃüÁ
[root@CDS2 bin]# /usr/bin/mysqladmin -u root password 123456
˵Ã÷£ºÉÏÃæ´´½¨µÄmysqlÊý¾Ý¿â¹ÜÀíԱΪroot£¬ÃÜÂë123456
2¡¢´´½¨Ò»°ãµÄÓû§
¹¤×÷ÖÐÓõ½web·þÎñÆ÷ºÍmysql·þÎñÆ ......