Page 1 of 1

How do I move Mailbox data store to another drive

Posted: Fri Sep 07, 2007 1:10 pm
by GCamp
Through lack of for-sight I created the /var on a drive that is too small for the number of users I anticipate having. I have ordered a larger drive and I am planning on installing it in the system to used as the data store. How do I configure scalix-postgresql (and what ever else may need to be changed) to look for the mailboxes on this bigger drive?

Posted: Fri Sep 07, 2007 2:57 pm
by btisdall
Best to put /var/opt/scalix in it's own partition.

Prep your new drive/partition & mount it temporarily, eg:

Code: Select all

mkdir /mnt/sx
mount /dev/sdb1 /mnt/sx


Reboot into single-user.

Copy your data (note the p switch):

Code: Select all

tar cf - -C /var/opt/scalix . | tar xvpf - -C /mnt/sx


Edit /etc/fstab so that the new partition is mounted as /var/opt/scalix.

Unmount the partition from the temp mountpoint & check your /etc/fstab for correctness by doing a mount -a.

Go to multi-user.

Note your old /var/opt/scalix data will be hidden from view - once you're happy that the system's working correctly you can go back to single-user, unmount /var/opt/scalix which will bring your old data back into view so you can delete/archive it. Do a mount -a & back to multi-user to finish. I also recommend plenty of bare 'mount' commands along the way to avoid any confusion over what's mounted where!

Posted: Fri Sep 07, 2007 3:57 pm
by GCamp
Ben,

Thanks for your quick reply.

I should have the new drive in about a week and I will try this.

One point of confusion (or should I say ignorance) - How do you put the system into single / multiple user mode?

Posted: Sat Sep 08, 2007 1:07 am
by jaime.pinto