Migrating NEOSYS to EXODUS: Difference between revisions
(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...") |
No edit summary |
||
Line 1: | Line 1: | ||
==Port forwarding== | ==Port forwarding== | ||
To be done by client IT. | To be done by client IT. | ||
19581 > 22 | |||
19582 > 19582 | |||
4431 > 4431 | |||
==Partitioning== | ==Partitioning== | ||
Line 40: | Line 43: | ||
w (write to disk and exit) | w (write to disk and exit) | ||
===Create partition on sda=== | ===Create partition on sda=== | ||
Line 58: | Line 55: | ||
default | default | ||
===Mirror sdb6 and sda1=== | ===Mirror sdb6 and sda1=== | ||
Line 65: | Line 60: | ||
mkfs.btrfs -f -m raid1 -d raid1 /dev/sdb6 /dev/sda1 | mkfs.btrfs -f -m raid1 -d raid1 /dev/sdb6 /dev/sda1 | ||
===Verify mirrored successfully | ===Verify mirrored successfully=== | ||
btrfs file usage /btrfs | btrfs file usage /btrfs | ||
=== | "Device size" should be combined size of sdb6+sda1" | ||
===Make a mount point=== | |||
mkdir /btrfs | mkdir /btrfs | ||
=== | ===Mount=== | ||
mount /dev/sdb6 /btrfs | mount /dev/sdb6 /btrfs | ||
=== | ===Add below to fstab which is used at reboot=== | ||
#mount /btrfs on sdb6 filesystem | #mount /btrfs on sdb6 filesystem | ||
/dev/sdb6 /btrfs btrfs defaults 0 0 | /dev/sdb6 /btrfs btrfs defaults 0 0 | ||
=== | ===Reboot to test fstab working=== | ||
reboot | reboot | ||
Line 88: | Line 85: | ||
df -h #to verify mounted successfully | df -h #to verify mounted successfully | ||
Or alternatively unmount and mount to test fstab working | |||
umount /dev/sdb6 | umount /dev/sdb6 |
Revision as of 10:37, 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 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
- 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
./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