- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /root fs 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
Forums
Discussions
Discussions
Discussions
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
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-28-2007 03:07 AM
06-28-2007 03:07 AM
/root fs full
thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 03:11 AM
06-28-2007 03:11 AM
Re: /root fs full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 03:11 AM
06-28-2007 03:11 AM
Re: /root fs full
from / do a:
du -sk * |sort -n
Then ignore any mounted filesystems to find what is taking up space.
Is there a /core file? That could be taking space...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 03:12 AM
06-28-2007 03:12 AM
Re: /root fs full
syslog is not under /root? it's lmust be under /var
If need to recreate execute a "touch syslog.log" for example
if / is really full, search after file core for example
Regards
L-DERLYN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 03:16 AM
06-28-2007 03:16 AM
Re: /root fs full
Your 'syslog' file should reside in '/var' not '/'.
If '/' is full, look for regular files in '/dev' that don't belong. The most common mistake is a mis-spelled device file like '/dev/rmt/om'.
# du -xk /|sort -k1nr|more
...will show you in descending order the largest to smallest directories.
If archiving and beginning with an empty 'syslog' is the issue, one way is to do:
# /sbin/init.d/syslogd stop
# /sbin/init.d/syslogd start
This will create '/var/adm/syslog/OLDsyslog.
log' which you can then compress. A new, empty copy of 'syslog.log' will exist, too.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 03:17 AM
06-28-2007 03:17 AM
Re: /root fs full
10 largest directories
$ du -kx /root | sort -rn -k1 | head -n 10
10 largest files
$ find /root -type f -xdev -print | xargs -e ll | sort -rn -k5 | head -n 10
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 03:47 AM
06-28-2007 03:47 AM
Re: /root fs full
/sbin/init.d/syslogd stop
cat /dev/null > syslog.log
This will recreate this file with zero size.
restart syslogd
/sbin/init.d/syslogd start.
or identify the large files in directories with command.
du -k |sort -rn |more
or find / -size +5000 -print
and manually clean them up.
-Srinivas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 07:09 AM
06-28-2007 07:09 AM
Re: /root fs full
Another simple way to find out what is filling up root is to run the following find, then view the output.
Cd /
Find . -xdev -print -exec ls -ld {} |; >/tmp/rootlist
This will list all of the dirs and files under root and their sizes. There should be NO application files is this list.
The other way is run:
# du -akx | sort -nr | more
-Srinivas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 06:32 PM
06-28-2007 06:32 PM
Re: /root fs full
if you want to compress active logfiles like syslog, /etc/wtmp /etc/btmp, you have either ti restart the services which write to this files afterwards, or you may just clear them as follows:
gzip -c file > file.gz
> file
The 2nd line overwrites the file with nothing, reducing the size to 0 bytes while not touching the adress of the file; i.e. The syslogdaemon still can find its present syslogfile thereafter.
Bye
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 07:38 PM
06-28-2007 07:38 PM
Re: /root fs full
I'm just wondering - compress the files will not work if the file system is REALLY full!
When compressing, a additional file will be created till compression is completed - then the old file will be deleted.
And a 'bdf' would be interesting, to see which directories are under /.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 08:22 PM
06-28-2007 08:22 PM
Re: /root fs full
I guess you would have to copy the file to another filesystem. Or use stdin:
$ cd filesystem-with-space
$ gzip < /root-fs/big-hog > big-hog.gz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2007 08:53 PM
06-28-2007 08:53 PM
Re: /root fs full
right!
:-)