Quantcast
Channel: Active questions tagged partition - Server Fault
Viewing all articles
Browse latest Browse all 65

is there any advantage mounting an LV by UUID instead of by path?

$
0
0

I know I can specify mounts in fstab by either putting their path (like /dev/sda1 or /dev/mapper/myvg-logicalVolume1) or by fs label (LABEL=root) or by UUID (UUID=1234-5678-...).

I see a clear advantage in terms of reliability using the UUID for "classic" partitions like /dev/sda1, because if you repartition your drive/more partitions around/add more disks it may be that some of your partitions now get recognized with another name, although mounting by UUID is more difficult to tell in which partition/LV your data is being stored.

But using LVM, my guts tell me that the LVM system itself manages the discovery of their disks/partitions and it doesn't matter if some PV is (after playing with partitions/disk) now named differently. So there won't be any difference (speaking of reliability) mounting by UUID or using the path like /dev/mapper/vg-lv, and the latter is more clear.

Is this correct?


Viewing all articles
Browse latest Browse all 65

Trending Articles