Îļþϵͳ File System£ºÔÚÂß¼¾íµÄ»ù´¡ÉÏ£¬¿É½¨Á¢Îļþϵͳ£¬È»ºó MOUNTµ½Ò»¸öĿ¼Ï£¬ÕâÑù¾Í¿ÉÒÔÎļþ´æÈ¡µÄ·½Ê½À´Ê¹ÓÃÕâ¿éÓ²ÅÌÁË¡£
µ±È»£¬ÄúÒ²¿ÉÒÔ²»½¨Îļþϵͳ£¬¶øÖ±½Ó°ÑLVµ±×÷ÂãÉ豸£¬ÒÔTRUNK·½Ê½À´´æÈ¡Êý¾Ý£¬Ðí¶àÊý¾Ý¿â¶¼ÊÇÓÃÕâÖÖ·½Ê½´æÈ¡Êý¾Ý¡£
¸ù¾ÝÒÔÉϽéÉÜ£¬ÔÚHPUXÏÂÕýȷʹÓÃÓ²Å̵Ä˳Ðò¼°ÏàÓ¦ÃüÁîÈçÏ£º
1. ÏȽ¨ÎïÀí¾í£º
# pvcreate -f /dev/rdsk/cCdDtT
ÕâÀï±ØÐëʹÓÃÓ²Å̵Ä×Ö·ûÉ豸Îļþ
2. ÔÙ½¨Âß¼¾í×飺
# mkdir /dev/vg0X X£º0¡«f£¬Âß¼¾í×éÃû
# mknod /dev/vg0X/group c 64 0x0X0000
# vgcreate vg0X /dev/dsk/cCdDtT
3. È»ºó»®·ÖÂß¼¾í£º
# lvcreate -L size vg0X size£º¸ÃÂß¼¾í´óС
4. ÔÚLVÉϽ¨Îļþϵͳ£º
# newfs -F file_system_type /dev/vg0X/rlvolY
file_system_type£ºÎļþϵͳÀàÐÍ£¬°üÀ¨hfsºÍvxfs£¬×¢Òâ´ËʱÓøÃÂß¼¾íµÄ×Ö·ûÉ豸Îļþ¡£
5. ½«´ËÎļþϵͳMountµ½Ò»¸öĿ¼Ï£º
# mkdir /directory
# mount /dev/vg0X/lvolY /directory
µ½´ËΪֹ£¬ÄúÒѾ¿ÉÒÔʹÓÃÕâ¸öÓ²ÅÌÁË¡£ÓÐʱÄú¿ÉÄÜÔÚÏÖÓеĻ·¾³Ï£¬ÐèÒªÌí¼Ó¡¢É¾³ýÂß¼¾í£¬»òÕßÊÇÐèÒªÀ©´óÎļþϵͳ¡£ÎÒÃÇ¿ÉÒÔÕâÑù×ö£º
6. Ìí¼ÓÂß¼¾í
1) Ìí¼ÓÎļþϵͳ¾í¡£ÀýÈ磺ÔÚvg01ÉÏÌí¼ÓÒ»¸ö200MµÄÎļþϵͳ¾í£¬¾íÃûΪdata£¬mountµ½Ä¿Â¼/sample ÉÏ¡£
A¡¢´´½¨Âß¼¾í£¬ÔÚϵͳÌáʾ·ûϼüÈëÃüÁ
# lvcreate -L 200 -n data /dev/vg01
B¡¢ÔÚÂß¼¾ídataÉÏ´´½¨Îļþϵͳ£º
# newfs -F hfs /dev/vg01/rdata
×¢£ºÈç¹ûÊÇvxfsÎļþϵͳ£¬ÔòÓÃ
# newfs -F vxfs /dev/vg01/rdata
C¡¢´´½¨Ä¿Â¼/sample£¬²¢½«Âß¼¾ídata mount µ½/sample.
# mkdir sample"
# mount /dev/vg01/data /sample
D¡¢ÓÃbdfÃüÁ½«»á¿´µ½/dev/vg01/data mount µ½ /sampleÉÏ¡£
2)
Ìí¼Ó·ÇÎļþϵͳ¾í£¨raw data volume£©¡£ÀýͬÉÏ¡£
A¡¢´´½¨Âß¼¾í£¬ÔÚϵͳÌáʾ·ûϼüÈëÃüÁ
# lvcreate -L 200 -n data /dev/vg01
B¡¢´´½¨Ä¿Â¼/sample£¬²¢½«Âß¼¾ídata mount µ½/sample.
# mkdir sample
# mount /dev/vg01/data /sample
C¡¢ÓÃbdfÃüÁ½«»á¿´µ½/dev/vg01/data mount µ½ /sampleÉÏ¡£
7. ɾ³ýÂß¼¾í
ÀýÈ磺ɾ³ý vg01 ÖÐÃûΪ data µÄÂß¼¾í£¬mount µ½/sample¡£
1) жÔØËùҪɾ³ýµÄÂß¼¾í£º
A¡¢Ê×ÏÈÓà umount ÃüÁÂß¼¾í data ´Ó/sampleÉÏжÔØÏÂÀ´£º
# umount /sample
B¡¢ÈôϵͳÌáʾÉ豸棬²»ÄÜжÔØ£»ÔòÔÚ¸ùĿ¼ϵͳÌáʾ·ûÏ£¬¼üÈëÒÔÏÂÃüÁ½øÈëµ¥Óû§£º
# shutdown -y 0
ÔÚµ¥Óû§Ï£¬ÏȽ«ËùÓÐÂß¼¾ímountÉÏ£¬¼üÈëÃüÁ
# mount -a
ÓÃbdfÃüÁî¿´¸ÃÂß¼¾íÊÇ·ñÒѾmountÉÏ£¬Èç¹ûmountÉÏ£¬¼üÈëÒÔÏÂÃüÁ
# umount /sample
2) ɾ³ýÂß¼¾í /dev/vg01/data £¬ÓÃÃüÁ
# lvremove /dev/vg01/data
8. À©´óÎļþϵͳ
1)À©´óÎļþϵͳ£¬Ê×ÏÈÒªÕÒµ½Õâ¸öÎļþϵͳËù¶ÔÓ¦µÄÂß¼¾í£¬Ö»ÓÐÊ×ÏÈÀ©´óÂß¼¾í£¬¸øÎļþϵͳÒÔÀ©´óµÄ¿Õ¼ä£¬²ÅÄÜÀ©´óÎļþϵͳ¡£
2) ΪÀ©´óÂß¼¾í£¬ÏȽøµ¥Óû§£¬ÔÚ¸ùĿ¼ϵͳÌáʾ·ûÏ£¬¼üÈëÃüÁ
# shutdown -y 0
3) ½øÈëµ¥Óû§ºó£¬ÏȽ«ËùÓÐÎļþϵͳmountÉÏ£¬¼üÈëÃüÁ
# mount -a
4) ÓÃbdfÃüÁî¿´¸ÃÎļþϵͳÊÇ·ñÒѾmountÉÏ£¬Èç¹ûmountÉÏ£¬ÓÃÃüÁî #umountÎļþϵͳÃûumount¸ÃÎļþϵͳ¡£ÀýÈ磬ÏëÒªÀ©´ó"/usr"µ½500M ,¾Í¼üÈëÃüÁ
# umount /usr
5) ÓÃÃüÁ
# lvextend -L 500 /dev/vg00/lvol4
ÕâÀ¼Ù¶¨ /usr ¶ÔÓ¦ /dev/vg00/lvol4
6) ÓÃÃüÁ
# extendfs /dev/vg00/lvol4 À©´óÎļþϵͳ¡£
×¢£ºÈç¹ûÊÇvxfsÎļþϵͳ£¬ÔòÓÃ
# extendfs -F vxfs /dev/vg00/lvol4
7) ÓÃÃüÁ
# mount /dev/vg00/lvol4 /usr
½«Îļþϵͳ mount µ½ /usr
ÕâÑù£¬Îļþϵͳ"/usr"¾Í±»À©´óÁË£¬
8) ÓÃÃüÁ
# init 3 ½øÈëÔÀ´¶àÓû§ÔËÐм¶¡£
9. UNIX µÄÎļþϵͳ
UNIXµÄÎļþϵͳÊÇÊ÷×´½á¹¹£¬Ò»°ãÖ¸ÔÚÒ»¸öÂß¼¾íÉϵÄÎļþµÄ¼¯ºÏ¡£´Ó¸ù¿ªÊ¼£¬´Ó±íÃæÉÏ¿´£¬ÎļþϵͳºÃÏóÊÇÒ»¸öÕûÌ壬µ«Êµ¼ÊÉÏ£¬Îļþϵͳ¿ÉÒԷֳɲ»Í¬µÄ²¿·Ö£¬µ¥¶ÀÕ¼¾ÝÒ»¿éÂß¼¾í£¬¾ÍÊÇÒ»¸öÎļþϵͳ¡£
love601 ÓÚ 2006-12-12 10:24:55·¢±í:
¶÷!¶àлÁË!!ÏÈÊղزο¼ÁË!!!