- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Hidden files in 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
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
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
тАО10-22-2001 12:29 PM
тАО10-22-2001 12:29 PM
Hidden files in Root filesystem?
My root filesystem is currently at 92% full, and I can't seem to find what is filling it up. (It is the same size as 85 other servers that are around 40% full) Is there some way that I can find hidden files here. Or anywhere I can look that might be filling this up? (Running HP-UX 10.20)
Thanks in advance,
Chet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 12:33 PM
тАО10-22-2001 12:33 PM
Re: Hidden files in Root filesystem?
You can do a ls -lad /* and compare that to bdf /* to find all the filesystem that are mounted. Eliminate those and then check the other directories.
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 12:34 PM
тАО10-22-2001 12:34 PM
Re: Hidden files in Root filesystem?
This will show disk usage of directory roots in ascending order. Ignore any directories that are on separate filesystems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 12:38 PM
тАО10-22-2001 12:38 PM
Re: Hidden files in Root filesystem?
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 12:40 PM
тАО10-22-2001 12:40 PM
Re: Hidden files in Root filesystem?
This is very commonly caused by 1) core files or 2) regular files that accidently got written to /dev. e.g. /dev/rmt/Om (letter 'O') rather than the device /dev/rmt/0m.
I like to use du -s to narrow down where to look. Man du for details.
The other technique is to use find to locate large files like this:
from /
find . -xdev -size +1000000c
This will find all finds > 1000000 bytes in size and not cross filesystem boundaries.
By the way, root should essentially not grow at all. Yolu need to nail this down.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 12:42 PM
тАО10-22-2001 12:42 PM
Re: Hidden files in Root filesystem?
Lou Zirko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 12:43 PM
тАО10-22-2001 12:43 PM
Re: Hidden files in Root filesystem?
Another common problem which causes the root filesystem to fill up is an erroneous specification of a tape device file -- typing the letter 'o' instead of the number '0', as '/dev/rmt/om' instead of '/dev/rmt/0m'. Look for non-special files in /dev.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 02:07 PM
тАО10-22-2001 02:07 PM
Re: Hidden files in Root filesystem?
If you can't readily tell which directory has the growing file, try this:
find / -type d -xdev | xargs du -sk >file1
sort -k2,2 file1 >sorted1
Wait awhile (30 minutes?)
find / -type d -xdev | xargs du -sk >file2
sort -k2,2 file2 >sorted2
join -j 2 sorted1 sorted2 >file3
file3 will be formatted as:
directory firstsize secondsize
Simply look for large discreprencies between the first and second sizes to narrow down to a directory. Then you can hopefully identify the file.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 05:10 PM
тАО10-22-2001 05:10 PM
Re: Hidden files in Root filesystem?
Perhaps you are not seeing a "hidden" file or a directory whose name begins with '.' (the dot).
If you try this command:
du -axk / | sort -nr | more
you will see them all in a sorted list.
If you only want the list of (sub)directories,
try this:
du -xk / | sort -nr | more
Mladen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 09:46 PM
тАО10-22-2001 09:46 PM
Re: Hidden files in Root filesystem?
a very bad way of "hidden" files is caused by sysadmins working in single-user mode and writing to some directory which later is used as a mount-point. Then those files "below" the mount-point will not be visible (=hidden).
The only chance of seeing those (in addition to go single-user mode) could be using "ncheck" on the root file system and comparing the output to the list of "visible" files in the root file system...
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 11:54 PM
тАО10-22-2001 11:54 PM
Re: Hidden files in Root filesystem?
my tip:
/etc/utmp
/etc/wtmp (if not linked to /var!)
In addition to Wodisch assumption, keep in mind, that also NFS can be a way to write "under" a mounted directory !
If your mount order is incorrect, you might be trapped. See this:
# bdf | grep top
/dev/vg05/test 79701 10 71720 0% /top
localhost:/top 79696 8 71720 0% /nfs_mount
# # NOW THEY ARE THE SAME
# umount /nfs_mount
# umount /top
# mount localhost:/top /nfs_mount
# mount /dev/vg05/test /top
# bdf | grep top
localhost:/top 99664 43456 46240 48% /nfs_mount
/dev/vg05/test 79701 10 71720 0% /top
# # NOW THEY ARE DIFFRENT !!!!!
After the remount, the /nfs_mount filesystem writes in fact to the root-filesystem !
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2001 12:36 PM
тАО10-23-2001 12:36 PM
Re: Hidden files in Root filesystem?
I agree with Wodish that it may be files sitting under a mount point, but my theory is that it is caused by programmers, not Sys admins. :) We see this all the time, the application guys want a new file system, and someone throws a huge tar file in the mount point just before you mount the new filesystem. They seem to think that as soon as they see the directory, it is ready to go. If all else fails, try unmounting the filesystem, and look at the mount points to see if there is crap sitting there. (You may have to boot to single user mode to quiet the system down in order to unmount...)
John