- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- maintaining root filesystem
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
09-07-2003 04:59 PM
09-07-2003 04:59 PM
I have an rp8400/HP-UX 11i.
My root filesystem is 99% full. Now I am not able to figure out which all files are occupying spaces in root.
Generelly foor the other filesystem like say /var. I use.
# du -a /var | sort -nr | more
Kindly let me know the best possible way to identify the unwanted files under root filesystem.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2003 05:09 PM
09-07-2003 05:09 PM
SolutionOther than that, you will can check for large files as follows:
# find / -xdev -size +10000c -exec ls -l {} \;
That will show you all the files in / over 10Mb. You can change the size to suit your purposes.
Tim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2003 05:09 PM
09-07-2003 05:09 PM
Re: maintaining root filesystem
I'd normally use:
# du -kx / | sort -rn | head -30
This will output the top 30 largest files/directories in root fs.
The "-x" limits the search to the / FS.
Common causes of root FS filling up include:
- core files
- incorrect tape device specificied for backup (check /dev/rmt directory)
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2003 05:11 PM
09-07-2003 05:11 PM
Re: maintaining root filesystem
I usually use
find / -xdev -type d |xargs du -sk |sort -n|tail -10
to find the top 10 directories with respect to size. -xdev will exclude filesystems so you will get only the directories under / filesystem.
You can also use -size option with find along with -xdev to find the files of more than particular size.
Below are few cases why your root filesystem may get full
1. Due to directories under / that are not filesystems but owned by other users.
2. Core files. You can find them out by using find command
find / -xdev -name core -print
3. /etc/rc.log. Some application may tend to write their logs into rc.log if started through sbin/init.d scripts. You can find them out by "fuser" command.
4. Device files created as normal files. Like 0m, null, log etc.,
5. /etc/lvmconf. If you have too many filesystems and volume groups, this may become large. Check the size on it.
6. /etc/cmcluster. Again, applications started through serviceguard may tend to write error messages into the log files in this directory. This may create problems to root file systems sometime.
Keep a root window open on this system. Otherwise, if it becomes 100%, then you will need to reboot the box into single user mode to correct the issue.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2003 05:54 PM
09-07-2003 05:54 PM
Re: maintaining root filesystem
The root filesystem can fill up with a few large files but it is much more important to locate large directories. 10,000 small files in a junk directory is just as bad as a few big files.
Bill Hassell, sysadmin