[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disks renamed after update to 'testing'...?



On 2020-08-18 23:00, Urs Thuermann wrote:
David Christensen <dpchrist@holgerdanske.com> writes:

AIUI the OP was mounting an (external?) drive partition for use as a
destination for backups.  Prior to upgrading to Testing, the root
partition was /dev/sda1 (no LVM?) and the backup partition was
/dev/sdb1 (no LVM?).  After upgrading to Testing, the root partition
is /dev/sdb1 and the backup partition device node is unknown.  The OP
was confused by the changed root partition device node.


Please describe how LVM would help in this situation.

Instead of using /dev/sdb1 directly for the backup file system, the OP
could put LVM to /dev/sdb1 (or now /dev/sda1).  I.e. he would create a
physical volume on /deb/sdb1, create a volume group e.g. named vgbkup,
and would then create a logical volume, e.g. named lv1.  The device
name for the backup file system would then always be /dev/vgbkup/lv1
regardless of how the kernel will name underlying device (/dev/sda1 or
/dev/sdb1 or whatever).

In addition, you get the flexibility of LVM of adding, deleting, and
resizing volumes without re-partitioning.

Thanks for the explanation. It seems that pvcreate(8) places an LVM disk label and an LVM metadata area onto disks or partitions when creating a PV; including a unique UUID:

https://www.man7.org/linux/man-pages/man8/pvcreate.8.html


When using a drive as backup media, are there likely use-cases that benefit from configuring the drive with no partition, a single PV, single VG, single LV, and single filesystem vs. configuring the drive with a single partition, single UUID fstab entry, and single filesystem?


David


Reply to: