Path to switch server to ssd from hard drive.
My current setup is a 1tb Western Digital datacenter drive. This drive has LVM with a 500gb partition that is dedicated to my mythtv backend. I have a 250gb partition that is my current root partition.
I'm fairly certain I know how to shrink the partition, that shouldn't be an issue. My goal is to shrink root down to 95gb (currently it's only at 47gb used. Move it to a 120gb ssd which will also hold a 2gb swap. Then remove the existing volume from the 1tb drive, and ultimately rework the 1tb drive to be a single big volume which will be both mythtv target, and /home for my lan.
That is where it get's fuzzy for me. I'm unsure of the exact process to move the volume to the new drive, and then remove the existing drive from the volume with as little downtime as possible. Once it's freed up I can recreate a new volume on it easy enough. I can kill the mythtv process as needed so I'm not worried about that. But I don't want to bring my nfs shares down (host) any more than required.
To further make it fun I'm debating picking up another 120gb ssd and putting them in raid 1 for redundancy. But I'm guessing that is just a matter of pointing at the raid device instead of the actual device itself.
I know another possibility is to just do a debootstrap install on the new mountpoint and go from there with making sure all configs and such are copied. In theory last step updating grub then rebooting, it should load from the new ssd / raid1? and the 250g partition would be free to eliminate. Just not sure what would be the best approach. Ubuntu 18.04. I do know that since the majority of my services are in lxd containers I can just move them to another machine for temporary holding, then move them back after a reboot.
Any suggestions on how to approach.
Last edited by jmgibson1981; 05-09-2020 at 03:46 PM.
|