Issues with LVM and renamed drives
Working on a virtual machine, I´m adding a second disk to an existing system.
The first disk (sda) is formatted as following:
sda1 => boot
sda2 => swap
sda3 => /
sda4 => extended
sda5 => lvm
/usr, /tmp, /opt and so on are all LVs inside the LVM.
The thing is: when I add the new disk, it is added as sda and the older disk goes to sdb.
1) First I added labels to / and /boot and modified /etc/fstab: that solved the entire system booting issue;
2) Added labels to all LVs (usr, tmp, var and so on): When the system boots it is unable to locate the LVs
2.1) I believe the issue is caused because the LVM´s PV is pointed as /dev/sda5: Is there any way I can somehow "label" /dev/sda5 and then change the LVM configuration somehow to point the PV to this label?
2.2) Tried pvchange --add-tag and that didn´t work.
Thanks once again.