LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   weird space problem with XFS (http://www.linuxquestions.org/questions/linux-general-1/weird-space-problem-with-xfs-477510/)

Sammael 08-26-2006 05:01 AM

weird space problem with XFS
 
i have a 30GB XFS partition, on which is used ~5GB, but free space is only ~4.9 GB. in fdisk, cfdisk, qtparted, everywhere it shows that it is 30GB partition, but where are those 20GB?

i found out when i ran emerge openoffice, whichcomplained i do not have >5GB free space.

how can i fix this?

this is output of fdisk /dev/hda

Disk /dev/hda: 40.0 GB, 40007761920 bytes
240 heads, 63 sectors/track, 5168 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 5 37768+ 83 Linux
/dev/hda2 6 72 506520 82 Linux swap / Solaris
/dev/hda3 73 5168 38525760 83 Linux

and this is output of df

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 9764800 5098076 4666724 53% /
udev 322148 208 321940 1% /dev
/dev/hda1 36566 4806 29872 14% /boot
/dev/sda1 304085048 95166460 208918588 32% /mnt/stuff
none 322148 0 322148 0% /dev/shm


i do not know if any other logs would be of any help, if so, please let me know and i will post them

aus9 08-26-2006 09:49 AM

well I am stumped but here is what we can tell so far

5168 cylinders x 7741440 bytes per cylinder = 40007761920 bytes

divide by 1024 then again by 1024 = 40 G so far so good

2) df shows free is 53% so the opposite du should be 47%

3) Now lets try 2 ways of looking at whats using the space

assuming you have a file manager (ignoring the tiny amount on the same drive (/boot) what does that say is total used?

(b) copy and paste this command into a terminal with root powers ...
du -a / | sort -rn | less

read man du if you think I am trying nasties.

it will list the biggest files at the top and descend...do you recognise any of the biggies ?

most of my relate to my KDE Wm and my kernel

(3) forgot to add look into /var/log and see how big the syslog and messages are....maybe you forgot to force a rotation thru
/etc/logrotate.d?

Matir 08-26-2006 10:46 AM

It looks like your filesystem is just 9GB in size. You did format the partition properly right? And haven't changed anything since then.

Sammael 08-26-2006 02:09 PM

Quote:

(b) copy and paste this command into a terminal with root powers ...
du -a / | sort -rn | less
i examined that list, no weird files, too long to post here, after running du -s -h / iu get:
6.0G /

Quote:

look into /var/log and see how big the syslog and messages are
/var/log/ $ du -s -h
24M .


i can't understand it. i tried to check it with xfs_check, but as it is root partition it is mounted... only thing i could think of (pretty stupid) was pluging my notebook off an on by pushing power button, so it would be forced to check it. after checking it, nothing changed

Sammael 08-26-2006 02:12 PM

Quote:

Originally Posted by Matir
It looks like your filesystem is just 9GB in size. You did format the partition properly right? And haven't changed anything since then.

i followed gentoo installation handbook word by word, created partition, formatted it, didn't change anything since then...

aus9 08-26-2006 06:53 PM

ok boot a live cd such as knoppix or kanotix and run QtParted and let it see what your size is.

just an idea.

(2) if you find a difference and have backed up any important data too cdr / usb etc let qtparted resize it?

Sammael 08-27-2006 02:16 PM

i'm currently downloading knoppix live dvd, so maybe tomorrow i'll be able to try it. however, i do not know how to best backup my data. is it enough to copy whole root partition somewhere, fix it and then copy data back?

i really do not want to mess my system up to the point of re-installation...i didn't even compile all programs which i wanted to have in this installation;(

aus9 08-27-2006 08:23 PM

I do not use gentoo so have a look at the gentoo forum or the web site gentoo forum.

2) also if there is a problem with your system......a clean install will be the best in the long run.....but can you remember if you used any partition magic or other tool to change any part of your system? or do you use LVM, raid etc?

3) You should think about having a backup plan no matter what distro you are using but if you are not compiling but using ready made gentoo packages I am not sure what the issue is?

Sammael 08-29-2006 05:21 AM

Quote:

Originally Posted by aus9
2) also if there is a problem with your system......a clean install will be the best in the long run.....but can you remember if you used any partition magic or other tool to change any part of your system? or do you use LVM, raid etc?

clean install is the way i would prefer not to take as my current install was supposed to be clean and it took me nearly week to compile everything i need. i surely didn't use partition magic, i made partitions with fdisk and formatted them with appropriate commands according to filesystems used. Everything by the Gentoo handbook. Also no LVM, raid etc...

Quote:

Originally Posted by aus9
3) You should think about having a backup plan no matter what distro you are using but if you are not compiling but using ready made gentoo packages I am not sure what the issue is?

i was compiling everything from source (and personally, i would never think my coomputer can be that fast...) is there any problem with compiling gentoo from source?

in the end, i might ending leaving things as they are...i'll lose 30 GB but i really do not have time nor energy to reinstall everything from scratch...

thanks for your time

aus9 08-29-2006 08:55 AM

yeah I wasn't sure how much you were compiling....hava read of this and see if there is a quicker way?

the gentoo forums may be your friend?

http://www.gentoo.org/doc/en/gentoo-...ickinstall.xml

aus9 08-29-2006 08:58 AM

btw....there are distros like Mandriva that install and have all the software you need in 1 hour not 1 week.

I use a vanilla kernel so have to spend some time patching and re-compiling but as the speed of my new computer is fast.....I do not gain a huge lot in compiling from source versus those with old hardware.

well thats my aussie 2 cents worth

Sammael 09-04-2006 07:03 PM

SOLVED!!!

reboot to slax livecd

$ xfs_growfs /dev/hda3

reboot

and -

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 37G 6.5G 31G 18% /
udev 315M 216K 315M 1% /dev
/dev/hda1 36M 12M 23M 33% /boot
/dev/sda1 290G 162G 129G 56% /mnt/stuff
/dev/sda2 1.8G 28K 1.7G 1% /tmp
/dev/sda3 6.1G 577M 5.3G 10% /var/tmp
none 315M 0 315M 0% /dev/shm


All times are GMT -5. The time now is 10:34 AM.