umount ettikden sonra fsck yap.
vgs
lvs
lvmdiskscan
vgdisplay VolGroup00
lvresize -L -1G /dev/vg01/lv01 (lv den 1g cikarir. +1 de ekler)
vgremove VolGroup01
pvscan List all physical volumes
vgextend VolGroup00 /dev/cciss/c0d0p3
lvremove /dev/VolGroup00/space_vol
lvcreate -n wap_vol -l 65535 VolGroup00 (full fill eder kalan diski)
(-L xG ise kac gb vericeksen)
lvdisplay
mkfs.ext3 /dev/VolGroup00/wap_vol
mkdir /wap
vi /etc/fstab icinde eski satiri sil gerekirse asagidaki satir olmasi gerekn
/dev/VolGroup00/wap_vol /wap ext3 defaults 1 2
-----------
shrink lv
-----------
http://www.netadmintools.com/art367.html
umount
e2fsck -f /dev/volgroup/logicalvol
resize2fs /dev/volgroup/logicalvol 48G
lvresize -L -1G /dev/vg01/lv01
mount /dev/volgroup/logicalvol /mnt
df
lvreduce -L -8G /dev/volgroup/logicalvol
mount /dev/volgroup/logicalvol /mnt
df
-----------
Links
-----------
http://www.redhat.com/docs/manuals/ente ... e-lvm.html
http://www.redhat.com/magazine/009jul05/features/lvm2/
http://it.toolbox.com/wiki/index.php/Sa ... _Linux_LVM
Hiç yorum yok:
Yorum Gönder