- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Root File system 100%
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
04-12-2003 12:58 AM
04-12-2003 12:58 AM
I have K370 Server with HPUX 11.0 and bdf output displayed / file system 100% usage.
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 258048 256764 1268 100% /
Apart from checking
core files,Trash and any backup dump (by mistake) what else I need to check to get more available space by deleting unused files. I have used cleanup command as well.
Looking for your advise to get more space as I know some where I am wrong to check unused files.. It can not full by necessory system files..
Looking forward to hear quick response..
Thanks in advance ..
NH
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 01:03 AM
04-12-2003 01:03 AM
Re: Root File system 100%
Have a look at log files - things like wtmp and btmp, also check dev for om instead of 0m.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 01:30 AM
04-12-2003 01:30 AM
Re: Root File system 100%
Try to locate the "large" files in lvol3
# find / -xdev -size +1000 -exec ls -l {} \; | more
Hope ir helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 01:50 AM
04-12-2003 01:50 AM
Re: Root File system 100%
may be this is of some help.
hth
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 03:34 AM
04-12-2003 03:34 AM
Re: Root File system 100%
Look for files that don't belong in '/dev' (i.e. non-special ones). If someone mis-keyed the backup device for a tape, for instance, an ordinary file would be created in '/dev' instead of a copy occuring to tape. A common mis-key is '/dev/rmt/om' instead of /dev/rmt/0m'. Use 'ls -l' to look for ordinary files.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 04:00 AM
04-12-2003 04:00 AM
Re: Root File system 100%
Another thing to check for is any mountpoint directories for filesystems that aren't mounted, but where the mountpoint has world writeable permissions. I've been burned on this before where somebody thinks they are writing to a filesystem but it isn't mounted, and the mountpoint is writeable, so they wind up writing to the / filesystem. I always make my mountpoints have 750 permissions so that non-root users can't write to them.
Also, if your / filesystem stays at 100% even after looking for files and cleaning up things, you might have a process holding open a file that has been removed. The lsof utility is great for finding those problems.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 04:09 AM
04-12-2003 04:09 AM
Re: Root File system 100%
And delete for these are file types that don't belong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 08:02 AM
04-12-2003 08:02 AM
Re: Root File system 100%
du -kx | sort -rn | head -20
Of course, / will be listed first, but then you should see /sbin and /etc, something like this:
29148 /
18979 /sbin
8572 /etc
6343 /etc/opt
3676 /sbin/fs
3259 /etc/opt/samba
3235 /etc/opt/samba/codepages
2731 /etc/opt/resmon
1657 /sbin/fs/vxfs
1550 /sbin/fs/hfs
What you do NOT want to see is anything that is not part of HP-UX. This often occurs when rogue applications refuse to ask the sysadmin where they should be installed and put themselves in /, the wrong place to be.
And as you can see, /dev is no where to be found in the first few directories. /dev should be 10 to 20Kb in size...anything more and you have bad files there. Use this command to locate b ig mistakes in /dev:
find /dev -type f -exec ll {} \;
There should be nothing found by this command.
Post the results of the du command above and we can help you locate the bad directories and get them moved.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 09:06 PM
04-12-2003 09:06 PM
Re: Root File system 100%
Look under /dev/rmt for a large file.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 09:23 PM
04-12-2003 09:23 PM
Re: Root File system 100%
Thx a lot for your valuable input. Let me work out and if the problem persists then I will post du -k output.
Thanks once again..
NAVID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 10:34 PM
04-12-2003 10:34 PM
Re: Root File system 100%
Another useful piece of information would be the ouptut from the command
/usr/sbin/vgdisplay -v /dev/vg00 | grep Free
Many, many times I see people who think they need to buy new disks when they haven't even allocated all of the available space in their existing disks to logical volumes. The result is that the disk LOOKS full with bdf, etc.
when it really isn't. There is often extra
space just waiting to be allocated to a logical volume, but it's hidden and unavailable until that happens.
I agree with the others that 250 MB is a lot to have on the root partition. There is probably something simple you can do to recover. With the output from these two commands we could tell a lot better what options you might have to reconfigure your system appropriately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 10:42 PM
04-12-2003 10:42 PM
Re: Root File system 100%
Thanks for your input. I have aleardy check and deleted crash. and We have enough free PE available to extend ,if I am not able to locate unuseful files/directories.
Meanwhile here are bdf output
Filesystem kbytes used avail %used iused ifree %iuse Mounted on
/dev/vg00/lvol3 258048 256764 1268 100% 4673 319 94% /
/dev/vg00/lvol7 3072000 865421 2068799 29% 22263 551641 4% /var
/dev/vg00/lvol6 3072000 495486 2415521 17% 19046 644126 3% /usr
/dev/vg00/lvol5 307200 25242 264400 9% 290 70486 0% /tmp
/dev/vg00/lvol1 119637 28473 79200 26% 47 19153 0% /stand
/dev/vg00/lvol4 3072000 244126 2651173 8% 3199 706965 0% /opt
/dev/vg00/lvol8 20480 1810 17563 9% 50 4666 1% /home
/dev/vg01/lvol1 2048000 36982 1885458 2% 1057 502751 0% /opt/status
srv
/dev/vg01/lvol2 2048000 1514935 500321 75% 5424 133264 4% /opt/oracle
/dev/vg01/lvol3 2048000 1658316 365386 82% 572 97420 1% /var/opt/or
acle
Thanks & regards
NH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2003 11:29 PM
04-12-2003 11:29 PM
Re: Root File system 100%
There are several reasons this could happen. One is that applications were loaded onto the root file system instead of in /opt, /usr/local/bin or some other more customary place. Another is that the home directory for some user is on the root file system. Another is that someone could have made a mistake when doing a restore from a backup tape. For example, if you did a restore in single user mode and forgot to mount /opt before doing the restore, the files would be left on the root partition instead of in the /opt partition. These problems can be hard to find, because mounting the real /opt can cover the /opt directory, efectively hiding the files that are causing the problem.
Does the result from 'find / -xdev | wc'
nearly match the 'iused' value for 'bdf -i /' ?
If so, then it's probably a simple problem.
If there is a large difference (hundreds or thousands different), then you may have a more complicated problem that may require some extra work as described below.
If the suggestions above have not found the problem and you can reboot the system in question without major headaches, I would be tempted to:
Boot the system in single user mode.
Do not mount the partitions.
Use 'ls -lRt | more' to list the files.
Look for anything that doesn't belong on
the root file system. That would include
files under var, tmp, opt, and similar.
(Any directories associated with other parititions)
Because the real partitions of these names have not been mounted at this point, you should not see files under these directories.
If you do, it's a sign of the restore problem I mentioned above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 02:42 AM
04-13-2003 02:42 AM
SolutionThe reason I am asking, is that it hapened to me that the DBA wrote to the raw device "/dev/xxyz" and miss typed the raw device by adding a space at the end of the device name whic h of coures filled up root. so check under '/dev'
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 02:58 PM
04-13-2003 02:58 PM
Re: Root File system 100%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2003 06:51 PM
04-13-2003 06:51 PM
Re: Root File system 100%
I had a system that had a disk problem and the var filesystem failed to mount. The OS however kept writing what log files it could to the unmounted folder, part of the root fs.
I fixed the disk problem, and got /var up and saw most of my root fs space was GONE.
I did everything in the post above and a few other tricks and could not find the problem.
When you write files to a folder and then mount a filesystem on it, those files are invisible until you unmount the filesystem. They take up space, but you CAN'T delete them.
So I booted the box into single user mode with no filesystems mounted. I found lots of files in the /var folder, and a pretty fair number in the /usr folder which had not to my knowledge ever failed to mount. I found 40 Megabytes of files in a folder called /download because I had done patch downloads while it was unmounted while I was making it bigger.
If you need help booting to single user mode post it, but it seems like you probably already know how to do that.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 05:30 AM
04-15-2003 05:30 AM
Re: Root File system 100%
Now look to see if your other filesystems have some room.
They do! Good.
look to see if there are any directories that are not mount points, or system directories that must be available on boot
/dev /bin /sbin /stand /opt /var /etc and so forth.
boot to single user mode.
fsck /
check in lost & found.
du -sk * | sort -n
This will tell you if anything is out under you mount points.
Look under all mount points for hidden space.
Sometimes it is hidden there.
Look for logs and the
ll /etc/wtmp* /etc/utm*
/etc/wt* should be links to
/var/adm/wt*
If they are large (many MB)edit inittab to cycle them. on reboot. (don't loose current process statuses).
du -sk * | sort -n
This will tell you if anything is out under you mount points. Clean up all straggling stuff, and reboot.
This may save you from re-igniting your machine, but if you have the space, I'd ignite it and make a larger /
partition. It is several hours, but only a few keystrokes. Bring a good book and re-Ignite is the best solution if you have free space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 05:35 AM
04-15-2003 05:35 AM
Re: Root File system 100%
What's the point in dragging up these old questions? All you're doing is flooding the front page with old, outdated, already solved problems which makes it difficult to spot the new issues. While I'm sure your insights are valuable, you're hindering people with current problems from getting the support they need. One thing you'll learn out here after a while is that most questioners are "hit and run" types. They get the answer they want and log out and don't return until they have another problem months later.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 05:39 AM
04-15-2003 05:39 AM
Re: Root File system 100%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 05:49 AM
04-15-2003 05:49 AM
Re: Root File system 100%
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 05:54 AM
04-15-2003 05:54 AM
Re: Root File system 100%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 06:14 AM
04-15-2003 06:14 AM
Re: Root File system 100%
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 06:17 AM
04-15-2003 06:17 AM
Re: Root File system 100%
KISS - Keep it simple ...
Not all answers are simple, but that is the way to bet.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 06:20 AM
04-15-2003 06:20 AM
Re: Root File system 100%
Good enough for me - thanks for the explanation.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 01:15 AM
04-16-2003 01:15 AM
Re: Root File system 100%
Thanks a lot for participation.. I don't know where the discussion were drag..
Anyway, the problem was found
1. /dev/rmt/C2t2d0 files was there
2. Some one created software depot as well to install patch on root which I have deleted.
Thanks again
NH