Recreating or Migrating Space and Saturn

Space and Saturn are special cases because they are KVM and need a separate virtual hard disk drives that we do not want to backup for some partitions. Therefore you must create the new harddisk before starting the machine using the GUI, create a new hard drive.

Type:       Virtio
Storage:   local-lvm
Size:       10G
Backup:   No

Start the virtual machine using the console login as root, then create a partition and format the second drive


fdisk /dev/vdb
Press “n” for a new partition
Accept “Primary” as the type
Use “1” as the partiton number
default for the starting and ending blocks
Press “w” to write to the disk

Create file system
mkfs.ext4 /dev/vdb1

Finally in the case of Space edit the fstab file and add the following line removing the original /var/log mount line, if you are doing a migration then this will already be done.

vi /etc/fstab
/dev/vdb1 /var/log ext4 defaults,noatime 1 2

Next mount the new drive and copy the old log files over it this is a new install or migration you can skip this step.

mount /dev/vdb1 /mnt
rsync -avz --progress /var/log/ /mnt

Reboot the space Virtual appliance as you are done

You’re still glowin’, you’re still crowin’

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.