Migrating NEOSYS to EXODUS: Difference between revisions

From NEOSYS Technical Support Wiki
Jump to navigationJump to search
No edit summary
 
(One intermediate revision by one other user not shown)
Line 30: Line 30:
Unallocated space on sda ~ 447.1GB (Full)
Unallocated space on sda ~ 447.1GB (Full)


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


fdisk /dev/sdb
fdisk /dev/sdb
Line 91: Line 91:
mount -a
mount -a


==./update.neosys0.sh==
==Get all scripts==
Run from nl20
Run from nl20
./update.neosys0.sh


==./install.neosys1.on.lxd.sh==
==Install and configure NEOSYS==
Run from new host server
Run from new host server
./install.neosys1.on.lxd.sh


==To fix image upload issue (adlined)==
==To fix image upload issue (adlined)==
Line 102: Line 104:
edir hosts/adlined/work/system.cfg 49
edir hosts/adlined/work/system.cfg 49


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


==tmux==
==tmux==
Line 112: Line 115:
If initial rsync (step 4) was done mid-day and if users are not active,
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.
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.


==Change letterhead==
==Change letterhead==

Latest revision as of 10:45, 7 December 2021

Port forwarding

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

Partitioning

Identify existing partitions

lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
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)

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

fdisk /dev/sdb

n

partition no. : default

First sector : default

Last sector : default

w (write to disk and exit)

Create partition on sda

fdisk /dev/sda

n

primary

default

default

Mirror sdb6 and sda1

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

Verify mirrored successfully

btrfs file usage /btrfs

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

Make a mount point

mkdir /btrfs

Mount

mount /dev/sdb6 /btrfs

Add below to fstab which is used at reboot

  1. mount /btrfs on sdb6 filesystem

/dev/sdb6 /btrfs btrfs defaults 0 0

Reboot to test fstab working

reboot

df -h #to verify mounted successfully

Or alternatively unmount and mount to test fstab working

umount /dev/sdb6

mount -a

Get all scripts

Run from nl20

./update.neosys0.sh

Install and configure NEOSYS

Run from new host server

./install.neosys1.on.lxd.sh

To fix image upload issue (adlined)

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

edir hosts/adlined/work/system.cfg 49

ZoneEdit

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

tmux

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

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.

Change letterhead

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

Enable emails

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

Invite clients to test new system

Review testing done by clients