- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root filesystem getting 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
03-23-2005 11:01 PM
03-23-2005 11:01 PM
root filesystem getting full
the pblm is our production server's / volume is 95 % . Size of / is 1 GB . In bdf it is showing 95 % use ( used is 900 MB ) . we are having seperate /var /usr /tmp /opt /home . It was only 27 % on last month . If i do a "du -xk /" it is showing only 98 MB in / . I coudn't get any large files in / . I couldn't restart the server also as it is production server .
waiting for your suggestions....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2005 11:04 PM
03-23-2005 11:04 PM
Re: root filesystem getting full
The first thing you could check is if someone made an error using a tar command.
# ll /dev/rmt
check if there is a large file omn
check for other large files in /
# find / -xdev -size +1000 -exec ll {} \;
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2005 11:07 PM
03-23-2005 11:07 PM
Re: root filesystem getting full
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2005 11:21 PM
03-23-2005 11:21 PM
Re: root filesystem getting full
Look in /dev:
[root@vpart1 /etc/bkup_mail]# du -sk /dev/*|sort -rn | head
Nothing should be BIG here!!
Also using lsof look for files that are open but actually have been deleted. A deleted file that is OPEN will keep the space until the process htat has it open closes the file.
especially /etc or /dev
Also try this:
ls -1d /* | grep -v `mount|cut -d" " -f1|grep -v "^/$" | sed -e "s/^/-e /" -e "s_\\$_ _"` | xargs -i du -sk {}
get non mounted filesystems
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 01:26 AM
03-24-2005 01:26 AM
Re: root filesystem getting full
du -kx / | sort -rn | head -20
It should look something like this:
89232 /
41080 /etc
38448 /sbin
26680 /etc/vx
21656 /etc/vx/type
10160 /etc/opt
(du -k is in Kbytes) In this case, an large 11i system is using a total of 89megs with /etc and /sbin the biggest directories. If /dev is more than 30-80K (NEVER megabytes) then you have regular files in /dev that must be removed:
find /dev -type f -exec ll {} \;
Usually these are spelling errors like /dev/rmt/om or /dev/null3 or /dev/nul.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 04:51 PM
03-24-2005 04:51 PM
Re: root filesystem getting full
There is no big files in /dev/rmt or in / or in /dev
and i dont have lsof installed . so let me install the same and will get
back to you...
du -xk / |sort -rn shows the following
98057 /
59757 /etc
34331 /sbin
20473 /etc/iscan
15539 /etc/vx
13135 /etc/vx/type
11395 /etc/opt
------truncated----
254 /dev
34 /dev/pts
18 /dev/ptym
18 /dev/pty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 08:20 PM
03-24-2005 08:20 PM
Re: root filesystem getting full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 08:45 PM
03-24-2005 08:45 PM
Re: root filesystem getting full
Two possible scenarios that jump out at me:
1) Large file right in root :
ll -a
(although I assume you'd find this one)
2) Large file created UNDER a mount point. It wont show with du because du is looking at the mounted filesystems.
TO check this, you need to reboot and boot up into single user mode. From the ISL prompt:
hpux -is
This will boot you with ONLY / mounted. First thing to check is /var's mount point:
ls -l /var
Then run your du -xk / and see what you come up with.
Best regards,
Oz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 09:18 PM
03-24-2005 09:18 PM
Re: root filesystem getting full
try this:
# find / -type f -xdev -exec ls -l {} \;| sort -kn5| tail -5
It will probably take a while to execute, but it should show the five biggest files in the / partition, only. Please show us the output.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 11:35 PM
03-24-2005 11:35 PM
Re: root filesystem getting full
it will find files > 1000000 bytes
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 01:33 AM
03-25-2005 01:33 AM
Re: root filesystem getting full
ls -1d /* | grep -v `mount|cut -d" " -f1|grep -v "^/$" | sed -e "s/^/-e /" -e "s_\\$_ _"` | xargs -i echo find {} -type f -size +1000000c -exe
c ls -l "\{\}" \\\; | sh
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 09:41 PM
04-07-2005 09:41 PM
Re: root filesystem getting full
any more options...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 12:41 AM
04-08-2005 12:41 AM
Re: root filesystem getting full
> du -xk / |sort -rn
> 98057 /
> 59757 /etc
> 34331 /sbin
> ...
These quite normal values (see my previous listing for the same command). Now you said your / filesystem is 1000Megs (1Gb)? This would indicate that a program has a hidden temporary file open on the / filesystem. This is a very nasty programming technique, where a file is created, opened, then removed while it is still open. The directory has the entry removed but the inode(s) are still open to this process. Once the process terminates (or the system is rebooted) then / should return to about 10% usage (which is what du is reporting at 98megs).
If you cannot reboot, download a copy of lsof and run it against the / filesystem. It will report the process ID's of all programs currently using space in the / filesystem. Examine each program that has files open on / and especially look for non-HP-UX programs. There will be a lot of normal HP-UX processes using device files in /dev. Since this is such a large space, sort the output from lsof like this:
lsof / | sort -rnk7 | head -20
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2005 08:44 PM
07-11-2005 08:44 PM
Re: root filesystem getting full
Thanks to all...