— asosiy katalog. /bin – Bu katalogda operastion tizimning asosiy buyruqlari saqlanadi(ls, cp ). /boot


LogicalVolume(logik tom) xajmini kattalashtirish


Download 105.12 Kb.
bet24/30
Sana08.01.2022
Hajmi105.12 Kb.
#244342
1   ...   20   21   22   23   24   25   26   27   ...   30
Bog'liq
1 dars

LogicalVolume(logik tom) xajmini kattalashtirish.

Uning uchun oldin VolumeGroup xajmini kattalashtirish kerak so'ng fayl tizimini o'zgartiramiz. Misol uchun, bizda 15 Gb va ext3 fayl tizimidagi logik tom mavjud, uni 20Gb ga oshiramiz:



1

2


# lvextend -L 20G VolGroup00/lvolhome (yoki lvresize -L +5G VolGroup00/lvolhome)

# resize2fs /dev/VolGroup00/lvolhome

Siz lvresize o'rniga lvextend ni ham ishlatishingiz mumkin.

Agar siz VolumeGroup dagi barcha bo'sh joyni ishlatmoqchi bo'lsangiz:



1

# lvextend -l +100%FREE VolGroup00/lvolhome

LogicalVolume(logik tom) xajmini kichiklashtirish.

Fayl tizimi va LogicalVolume ning xajmi bir hil bo'ladi, shuning uchun avval fayl tizimini so'ng tom o'lchami qisqartiriladi. Keyingi harakatlar fayl tizimi turiga bog'liq bo'ladi, fayl tizimining turidan qat'i nazar oldin bu tizimni montirovkadan uzish lozim(otmontirovat). Misol ko'ramiz, 15Gb va fayl tizimi ext3 ko'rinishidagi LV bor. Uni 9Gb ga kamaytiramiz.



1

2

3



# resize2fs /dev/VolGroup00/lvolhome 9G

# lvreduce -L 10G VolGroup00/lvolhome (yoki lvresize -L -5G VolGroup00/lvolhome)

# resize2fs /dev/VolGroup00/lvolhome


Download 105.12 Kb.

Do'stlaringiz bilan baham:
1   ...   20   21   22   23   24   25   26   27   ...   30




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling