Move Instaboot Area to New Disk


Problem: You need more space for your instaboot volume

Solution: Create a new disk, attach it your A3, and use it for the instaboot volume


By default, your A3 uses an anonymous Docker volume for your instaboot storage. This volume is described in /home/alike/docker-compose.yml:

... 

volumes:

           - "/mnt/ads:/mnt/ads"

           - "/mnt/ods:/mnt/ods1"

           - "./logs:/home/alike/logs"

           - "./certs:/home/alike/certs"

           - "./configs:/home/alike/configs"

           - "cache-dbs:/home/alike/Alike/remoteDBs"

           - "instaboot:/mnt/instaboot"

...

Because the directory "instaboot" is not qualified, Docker places its contents on your A3 system disk under

/var/lib/docker/volumes/alike_instaboot/_data

The easiest way to create more space for your instaboot area is to remap it to a new disk.


Step 1: Create a New Disk for the A3 VM

  1. Create the new disk in XenCenter (or your hypervisor etc.) for the A3 VM.
  2. Since this disk will house your instaboot area, size it appropriately for your needs!
  3. If it's Xen, the disk name is likely "/dev/xvdb", but yours may vary. Make a note of this.

Step 2: Format the Disk

  1. sudo fdisk /dev/xvdb will format this disk. Be sure to put your correct disk in for the disk name.
  2. type "n" to create a new disk, and then "p" for primary, then enter to accept defaults
  3. type "w" to write out changes
  4. Add the filesystem tools "util-linux": sudo apk add util-linux
  5. Format the disk: sudo mkfs -t ext4 /dev/xvdb1 (MAKE SURE TO CHECK xvd[x]1)

Step 3: Add the Disk to fstab

  1. Make a directory for the mount: mkdir /home/alike/instadata
  2. Obtain the blkid of your disk: "sudo blkid"
  3. copy the uuid and paste it into this line here, so yours goes over 31...ff2:
  4. UUID=31f39d50-16fa-4248-b396-0cba7cd6eff2    /home/alike/instadata  auto   rw,user,auto   0   0
  5. Enter the "menu" area via "menu" and stop Alike services
  6. Reboot the A3
  7. Verify the new mount exists via "df -h". You should see something like:

/dev/xvdb1              548.9G    24.0K    546.4G  0% /home/alike/instadata

Step 4: Migrate existing instaboot data and remap the Docker volume

  1. Verify the A3 services are STOPPED! DO NOT PROCEED IF SERVICES ARE RUNNING OR THE WEBUI IS ACCESSIBLE
  2. Copy instaboot area to the new storage:
  3. sudo cp -R /var/lib/docker/volumes/alike_instaboot/_data /home/alike/instadata/
  4. Edit the YAML:
  5. /home/alike/docker-compose.yml
  6. Comment out the previous line, and add this one:

volumes:

           - "/mnt/ads:/mnt/ads"

           - "/mnt/ods:/mnt/ods1"

           - "./logs:/home/alike/logs"

           - "./certs:/home/alike/certs"

           - "./configs:/home/alike/configs"

           - "cache-dbs:/home/alike/Alike/remoteDBs"

- "/home/alike/instadata:/mnt/instaboot"

 # - "instaboot:/mnt/instaboot"


Please note that Docker uses spaces and not tabs!

Step 5: Reboot and confirm

  1. Return to the menu by typing "menu"
  2. Start Alike services
  3. Log into the Alike UI and navigate to the "instaboot" page
  4. Confirm storage availability!