Below is procedure to extend ad Add 2 GB on actual size of /var
[root@7HORSES:/root]#
#-> man lvextend
[root@7HORSES:/root]#
#-> lvextend -L +2G /var
Volume group name has invalid characters
Run `lvextend --help' for more information.
[root@7HORSES:/root]#
#-> man lvextend
[root@7HORSES:/root]#
#-> lvextend -L +2G /dev/mapper/vg00-lv04
Size of logical volume vg00/lv04 changed from 4.00 GiB (128 extents) to 6.00 GiB (192 extents).
Logical volume lv04 successfully resized.
[root@7HORSES:/root]#
#-> resize
resize resize2fs resizecons
#-> man resize2fs
[root@7HORSES:/root]#
#-> mount -v
/dev/mapper/vg00-lv00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/mapper/vg00-lv05 on /home type ext3 (rw)
/dev/mapper/vg00-lv01 on /opt type ext3 (rw)
/dev/mapper/vg00-lv02 on /tmp type ext3 (rw)
/dev/mapper/vg00-lv03 on /usr type ext3 (rw)
/dev/mapper/vg00-lv06 on /usr/openv type ext3 (rw)
/dev/mapper/vg00-lv04 on /var type ext3 (rw)
/dev/mapper/vg01-lv00 on /var/www/html type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@7HORSES:/root]#
#-> resize2fs /dev/mapper/vg00-lv04
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/vg00-lv04 is mounted on /var; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/mapper/vg00-lv04 to 1572864 (4k) blocks.
The filesystem on /dev/mapper/vg00-lv04 is now 1572864 blocks long.
[root@7HORSES:/root]#
#-> df /var
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg00-lv04
6192704 3508648 2369512 60% /var
[root@7HORSES:/root]#
#->
No comments:
Post a Comment