Migrating NEOSYS to EXODUS

From NEOSYS Technical Support Wiki
Revision as of 10:33, 7 December 2021 by Arvind (talk | contribs) (Created page with "==Port forwarding== To be done by client IT. ==Partitioning== ===Identify existing partitions=== lsblk <pre>NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 5...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Port forwarding

To be done by client IT.

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 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)

Change partition type to btrfs

mkfs.btrfs /dev/sdb6

parted -l

Create partition on sda

fdisk /dev/sda

n

primary

default

default

parted -l

Mirror sdb6 and sda1

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

Verify mirrored successfully. "Device size" should be combined size of sdb6+sda1"

btrfs file usage /btrfs

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 unmount and mount to test fstab working

umount /dev/sdb6

mount -a

./update.neosys0.sh

Run from nl20

./install.neosys1.on.lxd.sh

Run from new host server

To fix image upload issue (adlined)

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

edir hosts/adlined/work/system.cfg 49

ZoneEdit changes 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.

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