Currently, the server has two internal HD’s in RAID 1 for the OS that I will likely change to a single SSD when I switch to CentOS 8.
External connections:
- A multidrive external enclose via SAS that uses software RAID (RAID 6)
- External backup HD that uses a LUKS-based encryption
- 2 bonded 1 Gbps Ethernet connections
- LVM2 logical volume on top of the software RAID array (RAID 6)
- LUKS volume on another external drive used for backups
- Logitech Media Server (squeezeboxserver)
- Plex Media Server
- Fileserver (using SAMBA)
- MySQL server
- rsnapshot
- Backblaze B2 online backups via duplicacy
OK, so since I’ve never upgraded this complex of a system before, the question is what things do I need to migrate/be aware of?
I’m thinking that for starters I will need:
- /etc/fstab
- /etc/mdadm.conf
- /etc/lvm/backup
- /root/.ssh/authorized_keys
- LUKS encryption keyfile
- /etc/crypttab
- contents of mysqldump
- contents of /root and /home directories
- /etc/rsnapshot.conf
- /etc/samba/smb.conf and /etc/samba/smbusers
- networking scripts (/etc/sysconfig/network-scripts/ifcfg-bond0
- Results of blkid
1) Ensure everything backed up
2) Unmount filesystem on external RAID array
3) Export volume grout on the RAID: vgchange -an external_RAID; vgexport external_RAID
4) Shut down system
5) Disconnect external RAID array
6) Remove internal drives with Centos 6.10
Now to update to an internal SSD and install Centos 8:
1) Install SSD
2) Install Centos 8 onto the SSD
3) Get basic configuration with networking, basic utilities, mdadm, cryptsetup, etc
4) Configure ssh, copy over authorized_keys file to re-enable passwordless administration
5) Copy over old /etc/mdadm.conf file to the new system
6) Shut down system
7) Reconnect external drive array
8) Restart system. The RAID array should be detected.
9) Copy over old /etc/fstab to the new system
10) Re-establish the LVM2 on top of the software RAID: pvscan; vgimport external_RAID; vgchange -ay external_RAID
11) Re-mount server filesystem: mkdir /srv; mount /srv
12) Remount external encrypted drives:
a. Copy over old /etc/crypttab file and keyfile
b. cryptsetup luksOpen UUID=UUID_of_encrypted_volume encrypted_volume
c. mkdir /mnt/encrypted_data
d. mount /mnt/encrypted_data
13) Install and activate SAMBA
14) Install additional perl modules, etc as required for other applications
15) Install Logitech media server, plex media server, duplicacy, rsnapshot, etc
16) Install MySQL and restore from dump files
I’m sure there are plenty of things that I haven’t fully thought of at this point. Do I have the general outline of the process, or are there some glaring omissions?
Thanks so much in advance!
Mike