/tmp Is Almost Full ?!? How Do I Clean It Up ??

General support questions
Post Reply
desertcat
Posts: 418
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

/tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by desertcat » 2018/05/20 04:34:09

This is a first: My /tmp partition which is normally EMPTY -- or near empty -- is now 89% full!!! Yes this is in theory a partition that holds TEMPORARY files and should in THEORY empty out with each reboot -- just not this time. This is *almost* academic as tomorrow I am going to try and rollover the system -- again -- to 7.5 and hope I don't get hosed once again. OTOH I'm wondering if there is something in my /tmp partition that caused me to be hosed the first time around. Is there a SAFE way to clean out the partition?? Hopefully when I rollover the system tomorrow it will simply empty it out, but if not...

zethro
Posts: 34
Joined: 2017/05/29 18:43:10

Re: /tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by zethro » 2018/05/20 05:05:18

Desperately sorry about the...
Last edited by zethro on 2018/05/20 22:53:26, edited 1 time in total.

desertcat
Posts: 418
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: /tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by desertcat » 2018/05/20 05:16:24

zethro wrote:rm -rf * /tmp
/tmp is a partition (dev/sda9) and the partition is almost full. When I ran "rm -rf * /tmp" I got "rm: cannot remove ‘/tmp’: Device or resource busy". I don't want to delete the partition, put rather the contents of the partition... without hosing the system.

zethro
Posts: 34
Joined: 2017/05/29 18:43:10

Re: /tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by zethro » 2018/05/20 05:37:24

almost forgot...sorry.
then try to rm -rf /tmp/*
i am not sure, but....

desertcat
Posts: 418
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: /tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by desertcat » 2018/05/20 07:09:56

zethro wrote:almost forgot...sorry.
then try to rm -rf /tmp/*
i am not sure, but....
Yep that worked like a charm. Tomorrow: The Rollover !! Let's hope *this* time I don't get hosed!!!

Thanks for your help!

Desertcat

User avatar
TrevorH
Forum Moderator
Posts: 23196
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: /tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by TrevorH » 2018/05/20 12:27:26

rm -rf * /tmp
Ouch! That is some typo. That will have removed everything forcefully without prompting in the current working directory and the entire /tmp directory and all its contents.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

desertcat
Posts: 418
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: /tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by desertcat » 2018/05/20 13:12:15

TrevorH wrote:
rm -rf * /tmp
Ouch! That is some typo. That will have removed everything forcefully without prompting in the current working directory and the entire /tmp directory and all its contents.
OUCH indeed Trevor!!!! SIGH!!! I discovered that a few hours ago much to my chagrin. Good thing I have backups of all my major partitions including /tmp as well as /home, and a backup of the entire drive which was how I recovered from my last disaster when I rolled over from 7.4 => 7.5. The quetion I am now trying to figure out: 1) Restore the entire disk which will take several hours, clean it up then try and do the roll over 2) Restore /tmp => Restore /home => Reboot the machine => Cleanup => run yum update and cross my fingers that the machine will roll over. Any insight you could provide as to which would be the best approach would be greatly appreciated.

Something indeed went WRONG somewhere: /tmp usually showed 0-10% full at any given time suddenly shot up to 89% full on a partition that is 5.4 GB in size. No clue what caused it and rebooting the machine and trying to selectively hand delete duplicate files did not solve the problem. Only a few hours before the size reported by System Monitor was 0% then while checking something on the next door monitor I caught a quick glance of /tmp and it now read 89% full! POOF!!!

On the bright side I am getting a crash course in RESTORATION. Could have done without this bit of education.... SIGH!!!

zethro
Posts: 34
Joined: 2017/05/29 18:43:10

Re: /tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by zethro » 2018/05/21 00:13:15

Sorry for nuisance!!!
I swear that I didn't intend this disturbance!
Terrably sorry for the bad reply!

desertcat
Posts: 418
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: /tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by desertcat » 2018/05/21 03:27:52

zethro wrote:Sorry for nuisance!!!
I swear that I didn't intend this disturbance!
Terrably sorry for the bad reply!
No Problem, that is what backups are for. As it turned out there was something terribly WRONG... SOMEWHERE, and I ended up re-installing the entire disk from backup, it solved the problem, after cleaning up the reinstall I SUCCESSFULLY was able to rollover the system to 7.5. After I am SURE that I've squashed any bugs I'll do my first ENTIRE Disk Backup of the system. The next ENTIRE Disk Backup will be just before 7.6 comes out in about a year's time. I have automated weekly backups of all the partitions with Backupninja.

zethro
Posts: 34
Joined: 2017/05/29 18:43:10

Re: /tmp Is Almost Full ?!? How Do I Clean It Up ??

Post by zethro » 2018/05/21 10:25:02

great!! always luck be with you!!!

Post Reply