- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: System tuning
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
тАО06-27-2004 11:34 PM
тАО06-27-2004 11:34 PM
/var/preserve.. etc.. What files can i delete in the "/" that are not needed and so with /opt
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 11:38 PM
тАО06-27-2004 11:38 PM
Re: System tuning
You could check for large files in /
# find / -xdev -type f -size +1000 -exec ll {} \;
should be nothing more then /sbin + /etc.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 11:39 PM
тАО06-27-2004 11:39 PM
Re: System tuning
Look for core files (find / -name core). Look at /dev for non-device files (find /dev -type f) - these can occur when someone mistypes a tape device file in a backup - like /dev/rmt/Om (that's a capital "o", rather than a zero).
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 11:50 PM
тАО06-27-2004 11:50 PM
Re: System tuning
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 11:50 PM
тАО06-27-2004 11:50 PM
Re: System tuning
is it that all the conventional filesystems are in / itself??
then cleanup /var/tmp and /tmp
also cleanup -p -c 2 and make sure that there are no superceded patches (twice)
and do a cleanup -c 2 to execute the cleanup
with best wishes
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2004 11:53 PM
тАО06-27-2004 11:53 PM
SolutionCheck whether /var /opt /usr are seperate file systems, if so then it will not affect the size of root.
Check if any user has created unknowingly some directories or file under root, if so try moving them to some other filesystem. Also trim the log file for e.g.
# > /var/adm/syslog/syslog.log
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2004 12:39 AM
тАО06-28-2004 12:39 AM
Re: System tuning
du -sk * |sort -n
That will give you a sorted list of dirs/files by size - from ther, check out directories which are not mounted...
You can also run that command from anywhere...
Example - here's my workstation:
# du -sk * |sort -n
0 SD_CDROM
0 adviser.out
0 bin
0 cdrom
0 lib
0 lost+found
0 mnt
0 oracle
0 tempspace
0 tmp_mnt
1 dead.letter
1 hosts
1 net
2 z
3 sh_history
16 dev
315 Mail
3115 tmp
31199 sbin
50990 etc
53001 stand
103141 app
186101 home
1382069 opt
1670723 usr
2397259 var
var, usr,opt,home,app,stand - all mounted.
But I have 50 MB in etc...
# cd etc
# du -sk * |sort -n
0 aliases
0 arp
0 audomon
.
.
.
697 lvmconf
11628 opt
14492 vx
21658 namedb
Ahh - 21 MB wasted in /etc/namedb
What I can do is make that a separtae filesystem and that would free up 21 MB for /
Rgds....Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2004 12:40 AM
тАО06-28-2004 12:40 AM
Re: System tuning
find /dev -type f -exec ll {} \;
There must be *NO* regular files in /dev.
As far as / files, there must be *NO* regular files in /. Of course, the (wrong) location for root's HOME is /, so create a /root directory, then move all useful regular files to /root (delete any junk files, if "core" exists, find the name of the process with: file core, then delete it). Then, change root's HOME directory in /etc/passwd using vipw.
Now analyze / for the largest directories:
du -kx / | sort -rn | head -20
Notice I said directories, not files. You're not interested in large files until you find large directories. Here are typical sizes for the biggest directories:
73336 /
33104 /etc
32616 /sbin
14736 /etc/vx
13896 /etc/opt
12536 /etc/vx/type
8504 /etc/opt/resmon
Now if you find any other directories other than these at the top of the list, finf out what they are for (they aren't part of HP-UX) and move them. For applications, move them to /opt. If the application is so primitive that it can't be moved, move the entire structure to /opt/
Bill Hassell, sysadmin