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 Code:
[root@aibr ~]# df -h 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 |
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. |
*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 |
Quote:
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) |
OK, got it. It works online in 1.39.
|
All times are GMT -5. The time now is 05:50 PM. |