I have some few servers (Ubuntu 16) and it's a mess who LVM was configured and used by my predecesor (for me, maybe is not). I have to install new server (Ubuntu 18) but I won't do a mess like is it right now. So I start looking for the best pratice and reason to do it it'so hard to find answers.
My idea right now is to that, separate data and OS (there is a drive only for the /boot, don't ask me why). Now I can add disk and add it to a Volume Group for the OS or for the data. And if a drive die only one of the volume group will be lost right ?
mount on /
with the swap file mount on /data
^ ^
| |
| |
+-----------+----------+ +-----------+----------+
| | | |
| LV: vg_1_lv_1 | | LV: vg_2_lv_2 |
| | | |
+----------+-----------+ +----------+-----------+
| |
| |
+----------+-----------+ +----------+-----------+
mount on /boot | | | |
^ | VG: vg_1 | | VG: vg_2 |
| | | | |
| +----------+-----------+ +----------+-----------+
| | |
+-------------+ +---------+-------+ +----------+-----------+ +----------+-----------+
| /dev/sda1 | | /dev/sda2 | | | | |
| BIOS boot | | Linux filesystem| | PV: /dev/sdb | | PV: /dev/sdc |
+------+------+ | ext4 | | | | |
| +---------+-------+ +----------+-----------+ +----------+-----------+
| | | |
+------+-----------------------+-------+ +----------+----------+ +----------+----------+
| /dev/sda | | /dev/sdb | | /dev/sdc |
+--------------------------------------+ +---------------------+ +---------------------+
I have few question:
Do I need to partitionning a disk before use it in a LVM instance ?
One said "yes" source and in The documentation of RedHat it said "no"sourceIf I need to partitionning a disk, which type I choose ?
I mean is a long list of partition typesUse a whole disk isn't good ? Why ?
Second thing, TLDP LVM HOW TO don't recommand to use a whole disk as a PV and explain but in the RedHat Doc (above) they are no warning about it. Actually, I quite abuse of this utilisation.