- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root file system
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-11-2005 01:23 AM
03-11-2005 01:23 AM
root file system
is there any way to set quota on root file system ? for example the size of the root filesystem should not exceed 85%.
Regards
Hassoun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 01:28 AM
03-11-2005 01:28 AM
Re: root file system
Also check if you have appropriate perms on /
I have rwx for root and rx for group and others.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 03:01 AM
03-11-2005 03:01 AM
Re: root file system
http://docs.hp.com/en/B2355-90672/ch05s03.html
also, please note what RAC stated, / should not grow if var,opt,usr,tmp,home and stand are mounted seperately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 03:33 AM
03-11-2005 03:33 AM
Re: root file system
I suggest you create a buffer file with size around 15 % of your / filesystem. Then when / becomes 100%, you can immediately delete the buffer file so that your / will be less than 100% while you are cleaning up the / filesystem.
Regards,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 06:44 AM
03-11-2005 06:44 AM
Re: root file system
Start by moving root's HOME directory to either /root (still part of / volume) or /home/root which is a separate filesystem. You can make this change with vipw and change root's home in the passwd file. Now move all files in / to root's HOME. During that process, remove any files that are not needed by root. This includes .profile, .exrc, etc
Now move any directories that root created that are known to be root's personal directoeries such as .elm or Mail. The purpose in these steps is to isolate root user stuff from the rest of the system. Normally, these files and directories are trivial in size.
Now find the largest directories in the / mountpoint by using this command:
du -kx / | sort -rn | head 20
The largest directories will be /etc, /sbin, /etc/vx and /etc/opt. If anything is larger that these directories, a big mistake has been made. Here are sample sizes for / directories:
# du -kx / | sort -rn | head -5
74848 /
34448 /etc
32616 /sbin
14736 /etc/vx
14624 /etc/opt
If /dev is significantly larger than 100, then a spelling error was made by a root user, most likely during a backup. Search /dev for any 'normal' files (there must be none):
find /dev -type f
Remove any files in /dev. This may decrease the usage of / by 50-90%.
Then look at any directory that is part of / and not: /etc /sbin /dev (possibly /root) and mounted filesystems (see bdf for a list of mounted filesystems). Whatever is left is likely to be a mistake. Some poorly written applications will create directories in / without permission from the root administrator. These can be moved to another volume and replaced with a symbolic link.
Another source of files in the wrong location are logfiles that are in /etc. Although this is a clear violation of the recommendations for logfiles (should be in /var/adm or possibly /var/opt/
Bill Hassell, sysadmin