Add more disk space. Looking for best practise...

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Vladimir75

Add more disk space. Looking for best practise...

Postby Vladimir75 » Thu Jun 28, 2007 5:58 am

Good Day!
I'm running a scalix for 2 years and really very happy with the system.
But now my /var slice where all usere mailboxes are stored has only 1Gb of free space. What is the best practise to add more space?
I have archived old mails to pst files.
Do I need to reinstall the system to a new server with more disk capacity?

BR, Vladimir

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Re: Add more disk space. Looking for best practise...

Postby btisdall » Thu Jun 28, 2007 7:21 am

Vladimir75 wrote:Good Day!
I'm running a scalix for 2 years and really very happy with the system.
But now my /var slice where all usere mailboxes are stored has only 1Gb of free space. What is the best practise to add more space?
I have archived old mails to pst files.
Do I need to reinstall the system to a new server with more disk capacity?

BR, Vladimir


Not if you're happy with it, just add more disk capacity. How to do this varies according to your system - are you using RAID and/or LVM?

OTOH you might want to use this opportunity to upgrade your OS and/or Scalix version depending on where you are at the moment, to save having to do this farther down the track when support ceases.
Ben Tisdall
www.redcircleit.com
London

Shredder

Postby Shredder » Fri Jun 29, 2007 10:48 am

Best way I have found is to add the storage. Stop the Scalix server. Copy the /var/opt/scalix directory to the new server. Verify it is there and complete. Delete it from the old /var partition. Mount the new drive as /var/opt/scalix. Bring Scalix back up.

Basically this puts just the Scalix data on the new storage.

Shredder

rogueind

Postby rogueind » Mon Jul 02, 2007 11:01 am

Is /var/opt on LVM? If so, this is a rather trivial task to complete. (Provided you have free extents, or can shrink other filesystems on the machine)

If you have free extents/space on the machine look at the lv[extend,reduce] tools on your box. Just be extremely careful when doing these tasks. The example below is for my machine, and you will have to cut it to fit, and paint it to match your environment. This is also for an RHEL4 box, running LVM2 with ext3 partitions.

Sample of how i resize lvm partitions:

In this case, I shrunk /home (was 25GB, will be 15GB when finished) and grew /var/opt by 10GB.

Get more space:

Code: Select all

service scalix stop
service scalix-tomcat stop
umount /home
e2fsck -f /dev/HS01/home

resize2fs -p /dev/HS01/home 15G
lvresize /dev/HS01/home -L 15G
mount /home


Now, resize /var/opt

Code: Select all

umount /var/opt
e2fsck -f /dev/HS01/var_opt
lvextend /dev/HS01/var_opt +10G
resize2fs /dev/HS01/var_opt
mount /var/opt

and restart your scalix services

Code: Select all

service scalix start
service scalix-tomcat start

mississippiman

help

Postby mississippiman » Mon Jul 16, 2007 11:09 am

I'm running Scalix 11 on a Suse 10.1 system. I have 0 space left in /var and can no longer send or recieve. I've tried the steps listed above but without any luck. Is there something I that i need to do that is specific to Suse, or should I just throw another hard drive in for storage (if so how would i go about doing that) Thanks for the help


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 4 guests

cron