LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-23-2006, 06:12 AM   #1
Paul Reed
LQ Newbie
 
Registered: Jul 2005
Posts: 13

Rep: Reputation: 0
xfs and disk space and tar and squid and rc.local!!!


I seem to have upset my Linux server...

I was using tar to untar a big backup tar on a windows share, mounted in Linux, from the Linux box.

It all sort of ground to a halt!

On reboot (it failed to deal with the windows mounts on shutdown) the GUI does not load as it should but blinks until I get to a command prompt log in.

When trying the command xinit I get the errors...
---
FontTransSocketUNIXConnect: can't connect: errno = 111
failed to set default font path 'unix/:-1'
... could not open default font 'fixed'
---
Easiest fix to this seems to be to rpm the xfs rpm again... but trying this gave me...
---
installing the package requires 28Kb on the / file system
---

df shows that / is 100% used up! Is this coincidence or because of a hang or reboot in the middle of the tar operation?

So I deleted some files and there is a little space now but it still shows up as 100% and xfs will still not rpm with the same message.

So where did the disk space go? The space was 3587636 but is now 3581256. Is that at least 28 KB free now?

rc.local also seems to be unhappy and opening in text editor moans about an active swap file (red herring?).

The biggest files seem to be in root/var/spool/squid/...

A lot of new folders seem to be in there... has tar fed the untaring files through squid (or is this nonsense?).

What can I delete to make some space and hopefully get xfs and the GUI going again?

etc/termcap seems to be quite big. Can I move or delete this safely?

Luckily everything appears to still work but I need some disk space and I want my GUI back!

Please HELP! THANKS.
 
Old 06-23-2006, 06:23 AM   #2
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
you can check for timestamps of the larger file and find out when exactly they were created. if the timestamp is the nearly same as the time your comp crashed you could move it to some other partition for eg. your windows partition.
 
Old 06-23-2006, 08:56 AM   #3
Paul Reed
LQ Newbie
 
Registered: Jul 2005
Posts: 13

Original Poster
Rep: Reputation: 0
So you are saying the tar 'temp' files could all be stuck in root/var/spool/squid/ ???

There are loads of folders from 00 to 0F and each of those contains a load more folders from 00 to F6. The big file is swap.state and I don't think I should delete that... I really do not want to break this box! The main folders from 03 to 0F have dates that roughly match date of crash / troubles.

How do I do a find on files created in last 3 days?

I now have 3562484 out of 3589424 (which is still 100%) but rmp xfs still says it needs 28Kb on \ !!! I have deleted a fair amount of junk already.

I will be very happy just to see the GUI again!

Thanks for your suggestions.

Regards
 
Old 06-23-2006, 09:01 AM   #4
shorun
Member
 
Registered: Mar 2006
Location: belguim
Distribution: fedora, mandriva, suse
Posts: 148

Rep: Reputation: 15
indeed most likely your files got untarred in root/var/spool/squid/
if you want to know how you can find files with a timestamp, i think "find" can do this, try "man find"

but first empty root/var/spool/squid/, it should fix the biggest problems. but make sure to check the timestamps, you do not want to remove the wrong files.

in the future, try to send the tar to the windows machine and use winrar to extract (if i'm correct winrar CAN unpack tar archives).
you can find winrar @ www.rarlabs.com

hope this helps
 
Old 06-23-2006, 09:28 AM   #5
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
i told you to move files for that very reason. so that if accidently you move a critical file you can restore it afterwards.
 
Old 06-23-2006, 09:38 AM   #6
Paul Reed
LQ Newbie
 
Registered: Jul 2005
Posts: 13

Original Poster
Rep: Reputation: 0
THANKS!!!

In reverse order!...

Yep, winzip will do .tar and .tar.gz as well but windows does not like folders or files with names like root/, etc/, this::that, and so on. I will give winrar a go... thanks for the tip.

Rest assured I will not try this again from the Linux box!

root/var/spool/squid/ contains folders '00' to '0F', 'swap.state' file (which is big) and 'swap.state.last-clean' (which is very small). '00' to '02' are old, '03' to '0F' are on date of crash. Date stamp of swap.state is also date of crash.

What is root/var/spool/squid/ ? Can I just flush the whole thing?
What does swap.state do?

I am hoping to clear enough space to be able to rpm xfs again, hopefully letting me get back into the GUI. Once I can do that I should be able to mount the windows share again and move stuff onto the share rather than delete stuff and not be able to restore the files. I could probably mount the windows share from the command line but for now I would just like to rpm xfs and hope that fixes the GUI issue.

I don't understand as there must now be more than 28Kb of space on / now. I am guessing that it is looking at the 100% used rather than the actual free space and hence I am trying to get down to 99% used space on /.

find... yep, its something like find . -ctime +3 ... Unix / Linux command line is not my strong point! Thanks.


THANKS... No, really, honestly, THANKS!
 
Old 06-23-2006, 11:51 AM   #7
Paul Reed
LQ Newbie
 
Registered: Jul 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Argh!

OK, so now I have from df...

1-k blocks 3589424 Used 3545804 Available 0 Used 100%.

Shouldn't that read Available 43620? and Used 99%?

It almost seems like I have lost permissions for the whole drive but everything else is starting up ok.

And trying to rpm the xfs rpm still says it needs 28Kb on / file system.

I don't know how I missed this but on reboot X Font Server is one of the last things to start up and it says...
---
X Font Server execcvp: permission denied
---
So it looks like messed up permissions as well?

I have had a look and permissions look ok but then I am not sure exactly what I should be looking for.

So I guess I have a few questions...

1. Why is df showing 0 Available? How do I correct this?
2. What exactly is it trying to call when it trys to start xfs?
3. How do I fix this?

I am rather perplexed now...

Thanks.

Last edited by Paul Reed; 06-23-2006 at 11:52 AM.
 
Old 06-23-2006, 02:28 PM   #8
Paul Reed
LQ Newbie
 
Registered: Jul 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Talking Badda Bing Badda Bong... Ta Frikkin Daaa

OK!

Managed to mount windows share from command line.
Moved one of the root/var/spool/squid/ folders to the windows share.
It moaned about maintaining the permissions, something about operation not permitted.
Anyway, this finally made some space on /.
rpm the xfs rpm... ok!
Tried xinit and startx and got same old error messages.
Doh!
Tried starting xfs and it sort of hung with !warning.
Started to think this was a no hoper.
Shutdown -r...
oops forgot to unmount windows share first - box hangs on shutdown.
Hit power switch on box to turn it off.
Count to ten.
Hit power switch on box to turn it back on.
I really thought it was still gonna be screwed up.
Bingo... GUI is back again.
Me... happy again!

1. I still wanna know if I can move / delete all those folders in root/var/spool/squid/ ok???

Most of them are date of crash do I figure they can go.
Two of them are 5 years old so they can go?

2. Likewise, can I delete swap.state? Will linux rebuild it?



I guess I should leave it the hell alone and be happy it works but it is still currently rather low on disk space and I guess the backup will be big until I move the rest of the folders.

THANKS for your help guys!

Cheers Tom!

G'night!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New XFS disk on exisitng Fedora 4 vnutheti Linux - Hardware 3 03-29-2006 04:09 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 07:45 AM
how to format a disk in XFS filesystem bennethos Linux - Newbie 2 10-14-2003 07:43 AM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 03:41 PM


All times are GMT -5. The time now is 11:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration