Extended a LV size, but df shows orig size, using DEBIAN ETCH, on a AMD64
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Extended a LV size, but df shows orig size, using DEBIAN ETCH, on a AMD64
Hi,
I extended the VG, PV,and LV sizes by 232GB from /dev/sdb.
lvscan and lvdisplay show proper size, but df -h does not.
Can someone clarify this for me, or show me what to do , so that
df -h shows the "real" size of 368GB, instead of the orig size of 135GB.
Thanks in advance!!
:-) Hector3rd
Output from lvm follows:
<<<<<<<<<<<<<<<<<<<<<<<<
century4:~# lvm
lvm> vgs -v
Finding all volume groups
Finding volume group "century4"
VG Attr Ext #PV #LV #SN VSize VFree VG UUID
century4 wz--n- 4.00M 3 5 0 614.57G 1.31G
lvm> pvscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Walking through all physical volumes
PV /dev/hda5 VG century4 lvm2 [148.81 GB / 0 free]
PV /dev/sda VG century4 lvm2 [232.88 GB / 904.00 MB free]
PV /dev/sdb VG century4 lvm2 [232.88 GB / 440.00 MB free]
Total: 3 [614.57 GB] / in use: 3 [614.57 GB] / in no VG: 0 [0 ]
lvm> lvscan -v
Finding all logical volumes
ACTIVE '/dev/century4/root' [6.68 GB] inherit
ACTIVE '/dev/century4/swap_1' [5.85 GB] inherit
ACTIVE '/dev/century4/home' [368.74 GB] inherit
ACTIVE '/dev/century4/opt' [50.00 GB] inherit
ACTIVE '/dev/century4/usrlocal' [182.00 GB] inherit
lvm> quit
Exiting.
century4:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/century4-root
6.6G 3.0G 3.3G 48% /
tmpfs 1007M 0 1007M 0% /lib/init/rw
udev 10M 68K 10M 1% /dev
tmpfs 1007M 0 1007M 0% /dev/shm
/dev/hda1 236M 20M 204M 9% /boot
/dev/mapper/century4-home
135G 63G 66G 49% /home
/dev/mapper/century4-opt
50G 180M 47G 1% /opt
/dev/mapper/century4-usrlocal
180G 44G 127G 26% /usr/local
century4:~# lvdisplay /dev/century4/home
--- Logical volume ---
LV Name /dev/century4/home
VG Name century4
LV Write Access read/write
LV Status available
# open 1
LV Size 368.74 GB
Current LE 94397
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 254:2
Hi syg00,
I was about to tar/move my data, then re-partition the lv to get all the space, then move/untar back the data.
But, this command is much easier.
Many thanks for the advice.
century4:~# df -h
/dev/mapper/century4-home
135G 63G 66G 49% /home
century4:~# lvdisplay /dev/century4/home
--- Logical volume ---
LV Name /dev/century4/home
VG Name century4
LV Write Access read/write
LV Status available
# open 1
LV Size 368.74 GB
Current LE 94397
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 254:2
century4:~# resize2fs /dev/century4/home
resize2fs 1.40-WIP (14-Nov-2006)
Filesystem at /dev/century4/home is mounted on /home; on-line resizing required
old desc_blocks = 9, new_desc_blocks = 24
Performing an on-line resize of /dev/century4/home to 96662528 (4k) blocks.
The filesystem on /dev/century4/home is now 96662528 blocks long.
century4:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/century4-home
363G 63G 283G 19% /home
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.