- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: disk space full
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2009 11:27 AM
тАО06-19-2009 11:27 AM
disk space full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2009 11:44 AM
тАО06-19-2009 11:44 AM
Re: disk space full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2009 12:04 PM
тАО06-19-2009 12:04 PM
Re: disk space full
can do a
#du -k /tmp | sort +n | pg
have a look as per the file size and see if some of the files can be moved.
100 % full /tmp shall make the system un-bootable.
reagrds
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2009 12:18 PM
тАО06-19-2009 12:18 PM
Re: disk space full
Re: "...100 % full /tmp shall make the system un-bootable...", could the poster of this comment be a little more careful with his / her adivce giving. This is such an obvious mistake I won't even comment on it.
du -k /tmp | sort -rn | more (* is good for finding biggest to littlest file sizes *)
ls -lart (* is good for get a chronological listing oldest to newest *)
lsof /tmp (* is good for find running processes still writing to open files within the /tmp filesystem *)
cd /tmp
touch /tmp/file_mfs
find /tmp -type f -newer /tmp/file_mfs -exec ll {} \; (* is good for finding runnaway processes, or, hard to find children of killed parents still writing to a file system *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2009 12:23 PM
тАО06-19-2009 12:23 PM
Re: disk space full
you can sort /tmp by date
cd /tmp
ls -lt | tail -50 > /var/tmp/oldtempfiles
take say the oldest 50 files at the bottom
for f in $(cat /var/tmp/oldtempfiles)
do
fuser $f | awk {'print $1'} >/var/tmp/tfile.tmp
cat /var/tmp/tfile.tmp|grep -q ^[0-9]
r=${?}
if [ $r -ne 0 ]
then
echo "$f: file not open" # can be deleted
else
echo "$f: file open" # do nothing
fi
done
But as always, use common sense before deleting people's files. They may get upset. Last thing you want to do, upset the assistant of the big boss.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2009 12:37 PM
тАО06-19-2009 12:37 PM
Re: disk space full
acknowledge the same.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2009 07:21 PM
тАО06-19-2009 07:21 PM
Re: disk space full
Then perhaps unusable. There have been threads where a full / has caused the passwd file to be blasted if trying to edit it.
(I suppose this comes under your "badly designed" statement. ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2009 07:38 AM
тАО06-20-2009 07:38 AM
Re: disk space full
First of all go to
# cd /tmp
check and core file or and log file, which we can immediatily delete or move from the /tmp. If by doing this some size is reduced do
# du -sk *|sort -nr|more
It will sort the file with maximum size, from which you can get the idea, which file (consuming more size) needs to be deleted.
Hope this may help you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 12:54 PM
тАО06-22-2009 12:54 PM
Re: disk space full
Try to find core and any large old files that can be move to other lication--
(1) find /tmp - name core*
(2)cd /tmp
du * | sort -rn | head sort the large file with its size in descending order
(3)du -kx /tmp | sort -rn | more ( Listing the large file in kb )
(4)find . -xdev -type f -size + 100000 -exec ls lrt{}\+
Regards,
Subodh.