![]() |
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 century4:~# |
The filesystem doesn't know you have resized it's "partition" - resize that as well; how depends on the filesystem involved.
|
ext2 is the fs, how do I resize?
what step did I leave out to simply increase /home? |
sorry, it is ext3 fs, but how do I check, just to make sure....
thx!! |
When I execute the command mount, I get:
/dev/mapper/century4-home on /home type ext3 (rw) |
resize2fs - see the manpage. ext3 is just ext2 plus a journal - the ext2 utilities (generally) are used on ext3.
|
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. Hector3rd |
This is excellent support.
|
This thread is now solved. See below.
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 |
| All times are GMT -5. The time now is 01:06 AM. |