步骤

扩容lv

[root@localhost ~]# lvextend -L +5G /dev/VolGroup00/LViso

扩容fs

[root@localhost ~]# resize2fs /dev/VolGroup00/LViso

显示

[root@localhost ~]# lvdisplay

举例:

[root@localhost ~]# lvdisplay

— Logical volume —

LV Name /dev/VolGroup00/LViso

VG Name VolGroup00

LV UUID Tu83rr-z2Le-uqRK-ucef-YQFO-h2lQ-7HfL80

LV Write Access read/write

LV Status available

# open 1

LV Size 10.00 GB

Current LE 320

Segments 1

Allocation inherit

Read ahead sectors auto

- currently set to 256

Block device 253:3

[root@localhost ~]# lvextend -L +5G /dev/VolGroup00/LViso

/dev/hda: open failed: No medium found

Extending logical volume LViso to 15.00 GB

Logical volume LViso successfully resized

[root@localhost ~]# lvdisplay

— Logical volume —

LV Name /dev/VolGroup00/LViso

VG Name VolGroup00

LV UUID Tu83rr-z2Le-uqRK-ucef-YQFO-h2lQ-7HfL80

LV Write Access read/write

LV Status available

# open 1

LV Size 15.00 GB

Current LE 480

Segments 1

Allocation inherit

Read ahead sectors auto

- currently set to 256

Block device 253:3

[root@localhost ~]# df -Ph

Filesystem Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00 8.1G 2.8G 4.9G 37% /

/dev/mapper/VolGroup00-LogVol02 4.8G 138M 4.4G 4% /tmp

/dev/sda1 99M 20M 75M 21% /boot

tmpfs 878M 0 878M 0% /dev/shm

none 878M 104K 878M 1% /var/lib/xenstored

/dev/mapper/VolGroup00-LViso 9.9G 8.0G 1.5G 85% /iso

[root@localhost ~]# resize

resize resize2fs resize4fs resizecons

[root@localhost ~]# resize2fs /dev/VolGroup00/LViso

resize2fs 1.39 (29-May-2006)

Filesystem at /dev/VolGroup00/LViso is mounted on /iso; on-line resizing required

Performing an on-line resize of /dev/VolGroup00/LViso to 3932160 (4k) blocks.

The filesystem on /dev/VolGroup00/LViso is now 3932160 blocks long.

[root@localhost ~]# df -Ph

Filesystem Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00 8.1G 2.8G 4.9G 37% /

/dev/mapper/VolGroup00-LogVol02 4.8G 138M 4.4G 4% /tmp

/dev/sda1 99M 20M 75M 21% /boot

tmpfs 878M 0 878M 0% /dev/shm

none 878M 104K 878M 1% /var/lib/xenstored

/dev/mapper/VolGroup00-LViso 15G 8.0G 6.1G 57% /iso




Related posts

coded by nessus
分享:  DeliciousGReader鲜果豆瓣CSDN网摘
Trackback

only 1 comment untill now

  1. thoughtlessly@minor.surely” rel=”nofollow”>.…

    hello!!…

Add your comment now

无觅相关文章插件