LVM for Dummies
Posted: 2021/01/05 18:22:56
I'm setting up a server for my students with very limited funds (and Linux expertise). To that end I installed CentOS 8 as a KVM hypervisor on an old desktop and spun up a few VMs. All that's working well. And I'm backing up the VMs every night to a network drive via iSCSI.
But I got paranoid about the single point of failure that is the server's hard drive. So I hooked up an el cheapo USB external drive adapter, and can clone the server hard drive to the external using dd. Pretty old school, but it works. But then I thought, hey, there's a second internal drive bay, why not just stick the clone drive in there?
Well, it definitely does not like having two (essentially identical) internal drives installed. The system boots, but LVM gets very confused and can't find its volumes cl-root, cl-home etc. While I vaguely understand the purpose of LVM, I don't know jack about the details, or configuring it for that matter. Why does the mere presence of a boot disk clone cause it to fail? Is there any way around this? Is it a horrible idea from the start?
Ultimately I suppose the right thing to do (besides get a real server, but no $$) is to start over with 2 internal drives in a RAID 1. But I'm trying to save a day or two of drudgery...
Thank you for any schooling and/or insights.
But I got paranoid about the single point of failure that is the server's hard drive. So I hooked up an el cheapo USB external drive adapter, and can clone the server hard drive to the external using dd. Pretty old school, but it works. But then I thought, hey, there's a second internal drive bay, why not just stick the clone drive in there?
Well, it definitely does not like having two (essentially identical) internal drives installed. The system boots, but LVM gets very confused and can't find its volumes cl-root, cl-home etc. While I vaguely understand the purpose of LVM, I don't know jack about the details, or configuring it for that matter. Why does the mere presence of a boot disk clone cause it to fail? Is there any way around this? Is it a horrible idea from the start?
Ultimately I suppose the right thing to do (besides get a real server, but no $$) is to start over with 2 internal drives in a RAID 1. But I'm trying to save a day or two of drudgery...
Thank you for any schooling and/or insights.