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/sxReboot 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!