- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can I Nullify one directory in /var?
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
02-10-2008 05:22 PM
02-10-2008 05:22 PM
We always hit the /var full.
i run this command to check the file size:
# find /var -xdev -size +2048
/var/opt/ignite/recovery/arch.include
can i nullify this file? hope to hear from you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2008 05:38 PM
02-10-2008 05:38 PM
Re: Can I Nullify one directory in /var?
/var/adm/cron/log/OLDlog
i'm afraid to nullify any important file. where can i find the usage of this directories? whether can i nullify it or need to backup first? hope to hear from you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2008 11:15 PM
02-10-2008 11:15 PM
Solutiongenerally for ignite backups people have different filesystem which is different from /var.
/var/opt/ignite/recovery/arch.include this files contain listing of all the files to be backed up.So better to make another filesystem , if you are backing up more servers on this machine.
/var/adm/cron/log/ you can remove because they just contain info about all the command run by run.If logs are very big null them and restart the cron.
lsof /var would help you find , all the big files open and consuming space which u can not see by bdf.
Hope ths help
Kapil
can i nullify this this file also?
/var/adm/cron/log/OLDlog
i'm afraid to nullify any important file. where can i find the usage of this directories? whether can i nullify it or need to backup first? hope to hear from you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 12:07 AM
02-11-2008 12:07 AM
Re: Can I Nullify one directory in /var?
Thank you for the reply. get better understanding about the /var file trimming. would really appreciate if you can share the how do you keep your /var or any other file system in good shape? do you schedule cron job to clear some disc space? hope to hear frm you. thanks a bundle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 06:32 PM
02-11-2008 06:32 PM
Re: Can I Nullify one directory in /var?
du -kx /var | sort -rn | head -20
/var is a variable directory and there are many uses for the space. /var should be quite large, several GB as a minimum but it all depends on what you do with your system. If you set it up as an Ignite network server, you may need 200 to 500 GB for /var. Do you use a lot of HP-UX email? Run a lot of very large print jobs?
There is no simple answer except daily checks using bdf and du. That is the (thankless) job of the system administrator. You can automate this task with scripts but you must first find where most of the space is located. Then truncate or remove unnecessary files.
Disks are too cheap to have disk space affect the reliability of your system. Add more disks and then split the very large directories into separate mountpoints. Typical mountpoints are:
/var/adm
/var/adm/sw
/var/mail
/var/spool
/var/opt/ignite
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 06:49 PM
02-11-2008 06:49 PM
Re: Can I Nullify one directory in /var?
How can we know it does large print jobs? how can i check this large print jobs?
hope to hear frm you. thank u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2008 07:38 PM
02-11-2008 07:38 PM
Re: Can I Nullify one directory in /var?
/var/preserve contains aborted "vi" files. The newer ones may still be wanted by their owners but most likely the older ones can be deleted.
/var/opt contains the "var" equivalent of larger software products. Each one may contain tmp and log folders. You have to klnow what each one is before cleaning up in here.
/var/mail, you should read the root mail and delete individual mail messages from within a mail reader such as elm.
/var/adm/sw, use the "cleanup" tool to delete doubly and more superseded patches.
There are more, you should identify and get comfortable with each folder under /var before cleaning up.