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
|
Do'stlaringiz bilan baham: |