- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: utmpx
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
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
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
тАО11-11-2008 06:15 PM
тАО11-11-2008 06:15 PM
cat /dev/null > /etc/utmpx
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 06:25 PM
тАО11-11-2008 06:25 PM
SolutionYou don't want to truncate this file. It holds current login information for users currently logged on to your server.
That aside, it isn't going to return you much space.
Look for regular files (non-special ones) in '/dev' and look for core files.
A common error is a mis-typed device file name during a backup like : /dev/rmt/om which will appear as a regular file.
# du -xk / | sort -krn1,1
...will show where the most space is consumed in various root directories. This is useful for your analysis.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 06:35 PM
тАО11-11-2008 06:35 PM
Re: utmpx
The below commands will help to find some large file located under / root File system
find / -xdev -type f -size +5000000c -exec ll {} \; | sort -nk 5
or
cd /
du -sk * --> this list down the directories which also contains big files , so that you can narrow down, trim your / File system
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 06:44 PM
тАО11-11-2008 06:44 PM
Re: utmpx
My main problem is that the current size of root is only 100Mb - which aint to big.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 06:51 PM
тАО11-11-2008 06:51 PM
Re: utmpx
do you have enough space on your vg00.?
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 06:56 PM
тАО11-11-2008 06:56 PM
Re: utmpx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 08:31 PM
тАО11-11-2008 08:31 PM
Re: utmpx
The first thing to do right now is to move root's $HOME -- immediately. The / directory is a legacy mistake that causes big problems for all Unix sysadmins. Move root's files and subdirectories to /home/root and change /etc/passwd to reflect the new location. Good sysadmin practices prohibit ordinary files in /, so find them all and move them to root's $HOME (or remove them). This will show all the misplaced files:
ll -d /* | grep -- ^-
The / directory is static, changing slightly as config files are created or extended in /etc, and additional disks and lvols are created (/etc/lvmconf). You can move the /etc/lvmconf files that end with ".old" every time you perform LVM maintenance.
To summarizr the largest directories (which will be /etc/ and /sbin), use the command:
du -kx / | sort -rn | head -20
Then look in each directory at the top of the list for unusual large files:
ll /etc | sort -rnk5 | head -20
You'll have a permanent job to do this every week or two, forever, until you create an Ignite tape backup (make 2 copies), then reinstall from the Ignite tape and resize / to about 200 to 400 MB.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 08:32 PM
тАО11-11-2008 08:32 PM
Re: utmpx
we need narrow down with helps of the commands which posted earlier, eye -ball any Application related files writing to / file system
how about your /var/adm/crash ..? does it resides under vg00 ..?
Thanks,
Johnson