- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- running low on /var disk space, how to add more?
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-22-2009 07:50 AM
тАО11-22-2009 07:50 AM
running low on /var disk space, how to add more?
I'm running sles9 SP3.
it's a mail server that's been running very well for a few years now. it's running cyrus as the imap server. The / directory is now over 90% full. When I did a du -sh on it I can see the /var/spool/imap directory is the one with most of the disk space usage.
What is a simple way to add more disk space to the /var directory? I have 2 file systems on the machine, / and /opt2. /opt2 is where I keep the vmware virtual machine as well as the disk backups that get synced to online backup.
I'm thinking I can get more disk space by doing backups on network so I can use that free disk space for /var.
My question is how? I know there are a few ways but I want to be sure I don't damage this system - it is a production mail server.
Thank you,
Oskar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2009 11:52 AM
тАО11-22-2009 11:52 AM
Re: running low on /var disk space, how to add more?
Please post output of following command:
df -kh
If the system is set up with lvm, extending the system is easy. You would increase the diskspace allocated via vmware and then lvextend.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2009 02:00 PM
тАО11-22-2009 02:00 PM
Re: running low on /var disk space, how to add more?
The first place I would check is /var/log. You may be able to recover some space by removing old log files or trimming large log files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2009 04:19 PM
тАО11-22-2009 04:19 PM
Re: running low on /var disk space, how to add more?
I don't have LVM setup.
That would make things easy wouldn't it!
I've already cleaned up the /var/log directory as much as possible.
My problem is that cyrus (/var/spool/imap) has almost 20gb of data.
What else?
Oskar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2009 07:29 PM
тАО11-22-2009 07:29 PM
Re: running low on /var disk space, how to add more?
Wel yes, LVM would be a better solution for this type of problems. but in your case, its not the real problem.
If you say your /var/spool/imap grows to this much and it happens suddenly it can be a caused by a misConfiguration,network or spam problem.
i suggest you to backup all the content of the imap folder and clear all logs and see how fast your file system grows.
that is the best you could do for now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2009 06:07 AM
тАО11-23-2009 06:07 AM
Re: running low on /var disk space, how to add more?
2. Setup a cron job that runs a cleanup script
3. even better use file system monitor, such as OMU, to alert you whne /var get to specific threshold then automatically runs cleanup script
4. creating a soft link to "/var/spool/imap" where you have plenty of space is another approach but it does not get to root cause of the problem.
T+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2009 07:36 AM
тАО11-23-2009 07:36 AM
Re: running low on /var disk space, how to add more?
I like the idea of a soft link to /var/spool/imap!
I'll try moving the /var/spool/imap contents to /opt2 which has lots of space and put a softlink in the / directory for /var/spool/imap pointing to the real location in /opt2.
Hope this works, I'll do a backup first!
Oskar