Migrating NEOSYS to EXODUS

From NEOSYS Technical Support Wiki
Jump to navigationJump to search

1 Port forwarding

To be done by client IT. 19581 > 22 19582 > 19582 4431 > 4431

2 Partitioning

2.1 Identify existing partitions

loop0    7:0    0  55.4M  1 loop /snap/core18/2128
loop1    7:1    0  55.5M  1 loop /snap/core18/2253
loop2    7:2    0  61.9M  1 loop /snap/core20/1242
loop3    7:3    0  67.2M  1 loop /snap/lxd/21835
loop4    7:4    0  42.2M  1 loop /snap/snapd/14066
loop5    7:5    0  70.3M  1 loop /snap/lxd/21029
loop6    7:6    0  32.3M  1 loop /snap/snapd/12704
sda      8:0    0 447.1G  0 disk
sdb      8:16   0 447.1G  0 disk
├─sdb1   8:17   0   512M  0 part /boot/efi
├─sdb2   8:18   0     1G  0 part /boot
├─sdb3   8:19   0    16G  0 part [SWAP]
├─sdb4   8:20   0    16G  0 part /tmp
└─sdb5   8:21   0    50G  0 part /
sr0     11:0    1  1024M  0 rom 

Unallocated space on sdb ~ 363.6GB

Unallocated space on sda ~ 447.1GB (Full)

2.2 Create new partition for lxd on sdb (sdb6) and allocate remaining space to it

fdisk /dev/sdb


partition no. : default

First sector : default

Last sector : default

w (write to disk and exit)

2.3 Create partition on sda

fdisk /dev/sda





2.4 Mirror sdb6 and sda1

mkfs.btrfs -f -m raid1 -d raid1 /dev/sdb6 /dev/sda1

2.5 Verify mirrored successfully

btrfs file usage /btrfs

"Device size" should be combined size of sdb6+sda1"

2.6 Make a mount point

mkdir /btrfs

2.7 Mount

mount /dev/sdb6 /btrfs

2.8 Add below to fstab which is used at reboot

  1. mount /btrfs on sdb6 filesystem

/dev/sdb6 /btrfs btrfs defaults 0 0

2.9 Reboot to test fstab working


df -h #to verify mounted successfully

Or alternatively unmount and mount to test fstab working

umount /dev/sdb6

mount -a

3 Get all scripts

Run from nl20


4 Install and configure NEOSYS

Run from new host server


5 To fix image upload issue (adlined)

Clear line 49 of hosts/adlined/work/system.cfg

edir hosts/adlined/work/system.cfg 49

6 ZoneEdit

Add t-<client>.hosts.neosys.com and test access

7 tmux

Done on nl20 install.tmux.general.sh install.tmux.neosys.sh

8 Data Comparison

If initial rsync (step 4) was done mid-day and if users are not active, then do AREV live to test copy and immediately do rsync and import_db so that you can compare exodus LIVE with AREV TEST.

Use nextcloud exodus migration checklist for data comparison instructions.

9 Change letterhead

Change all company's letterhead to "THIS IS A TEST SYSTEM" (left) and "DO NOT DO LIVE WORK HERE" (right)

10 Enable emails

On screen 8, touch ~/hosts/<dbname>/work/live.txt to enable emails to users

11 Invite clients to test new system

12 Review testing done by clients