How do I move Mailbox data store to another drive

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

GCamp
Posts: 29
Joined: Wed Mar 07, 2007 5:32 pm
Location: New Paris, IN

How do I move Mailbox data store to another drive

Postby GCamp » Fri Sep 07, 2007 1:10 pm

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?
GCamp

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

Postby btisdall » Fri Sep 07, 2007 2:57 pm

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!
Ben Tisdall
www.redcircleit.com
London

GCamp
Posts: 29
Joined: Wed Mar 07, 2007 5:32 pm
Location: New Paris, IN

Postby GCamp » Fri Sep 07, 2007 3:57 pm

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?
GCamp

jaime.pinto
Scalix Star
Scalix Star
Posts: 709
Joined: Fri Feb 23, 2007 6:50 pm
Location: Toronto - Canada

Postby jaime.pinto » Sat Sep 08, 2007 1:07 am

Image Jaime
||||||||||||||||||||||||||||||||||||||||


Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 3 guests