ºìÁªLinuxÃÅ»§
Linux°ïÖú

HP-UXµÄÂß¼­¾í¹ÜÀí

·¢²¼Ê±¼ä:2006-12-12 00:51:53À´Ô´:ºìÁª×÷Õß:rldlingo
Îļþϵͳ 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µÄÎļþϵͳÊÇÊ÷×´½á¹¹£¬Ò»°ãÖ¸ÔÚÒ»¸öÂß¼­¾íÉϵÄÎļþµÄ¼¯ºÏ¡£´Ó¸ù¿ªÊ¼£¬´Ó±íÃæÉÏ¿´£¬ÎļþϵͳºÃÏóÊÇÒ»¸öÕûÌ壬µ«Êµ¼ÊÉÏ£¬Îļþϵͳ¿ÉÒԷֳɲ»Í¬µÄ²¿·Ö£¬µ¥¶ÀÕ¼¾ÝÒ»¿éÂß¼­¾í£¬¾ÍÊÇÒ»¸öÎļþϵͳ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. love601 ÓÚ 2006-12-12 10:24:55·¢±í:

    ¶÷!¶àлÁË!!ÏÈÊղزο¼ÁË!!!