LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   After lvextend wrong free space (https://www.linuxquestions.org/questions/fedora-35/after-lvextend-wrong-free-space-503021/)

epiphiny 11-19-2006 12:34 PM

After lvextend wrong free space
 
Hi there, after much searching I can't seem to find anybody else with this problem!

I run a dual boot machine between Win XP and FC6, with an 80GB SATA hard drive. Recently, with all the software stability enchancements in FC, I decided to make my system primarily Fedora, so resized my NTFS partition to about 30GB, leaving a 3.7GB FAT partition, where I keep the Fedora CD iso images for install purposes.

I then used the lvm gui in fedora to add the unused space to my volume group.

Finally, I used a knoppix live CD to run lvextend, increasing my LogVol00 (which should contain my whole filesystem) to take up the rest of the disk.

I should now have 46.56GB of total space available to fedora, and indeed lvm seems to think i do;

Code:

lvm> lvs
  LV      VG        Attr  LSize  Origin Snap%  Move Log Copy%
  LogVol00 VolGroup00 -wi-ao 46.56G                             
  LogVol01 VolGroup00 -wi-ao  1.00G

However, df shows this;

Code:

[root@aibr ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      8.0G  6.2G  1.4G  83% /
/dev/sda3              99M  16M  78M  17% /boot
tmpfs                252M    0  252M  0% /dev/shm
/dev/sda1              26G  24G  2.3G  92% /ntfs

It seems that everything else on the system agrees that I only have 3GB left, as when I tried to copy a 7GB backup file over it told me I didn't have enough space.

Where has my space gone?!

Sorry if this is something really obvious, but I just can't understand why I'm getting two different results!

Many thanks in advance.
Jim

uselpa 11-19-2006 12:39 PM

The obvious part you are missing is that you didn't extend your file system. Extending the LV is like extending a hdd partition, it doesn't affect the file system itself.
Assuming your file system is ext3, you need to unmount the LV and do a "resize2fs". As it's your / partition, do it from Knoppix.

See also this thread.

epiphiny 11-19-2006 03:00 PM

*blush*

That did it nicely (for some reason it didn't work from Knoppix, but fortunately as Im using kernal 2.6 I could do it with the filesystem mounted.

Thanks very much, sorry for the noobishness :D

uselpa 11-19-2006 03:05 PM

Quote:

Originally Posted by epiphiny
for some reason it didn't work from Knoppix, but fortunately as Im using kernal 2.6 I could do it with the filesystem mounted.

Now you got me interested... last time I tried to do it online it didn't work. It was a 2.6 kernel also.
Didn't you get any error message at all, or any warning?
Which kernel? (mine is 2.6.17.13)
Which version of resize2fs? (mine is 1.38)

uselpa 11-19-2006 03:09 PM

OK, got it. It works online in 1.39.


All times are GMT -5. The time now is 05:50 PM.