From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r8KBUQrw018741 for ; Fri, 20 Sep 2013 07:30:26 -0400 Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8KBUP6h011644 for ; Fri, 20 Sep 2013 07:30:25 -0400 Received: by mail-vb0-f44.google.com with SMTP id e13so174043vbg.17 for ; Fri, 20 Sep 2013 04:30:25 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 20 Sep 2013 13:30:24 +0200 Message-ID: From: Alessandro MACUZ Content-Type: multipart/alternative; boundary=089e013a132a2347e904e6ceff6b Subject: [linux-lvm] Mirrored LVM volumes and UUID Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: LVM general discussion and development --089e013a132a2347e904e6ceff6b Content-Type: text/plain; charset=ISO-8859-1 Hi all, I can't seem to find such answer on the net. I use mirrored volumes and blkid returns the same UUID for the "raid" volume and the underlying volumes /dev/mapper/lvm01-root_mimage_0: UUID="0b88ad6f-34ed-46d6-abe3-eca0d235b353" TYPE="ext4" /dev/mapper/lvm01-root_mimage_1: UUID="0b88ad6f-34ed-46d6-abe3-eca0d235b353" TYPE="ext4" /dev/mapper/lvm01-root: UUID="0b88ad6f-34ed-46d6-abe3-eca0d235b353" TYPE="ext4" Then such ID is used in fstab to mount root based... on UUID. I wonder how fstab knows that it must use /dev/mapper/lvm01-root and not the others since the three of them share the same UUID, and if by accident the others can be erroneusly used/mounted. Has anyone thought of it? Or it's just me? Alex --089e013a132a2347e904e6ceff6b Content-Type: text/html; charset=ISO-8859-1
Hi all,

I can't seem to find such answer on the net.

I use mirrored volumes and blkid returns the same UUID for the "raid" volume and the underlying volumes

/dev/mapper/lvm01-root_mimage_0: UUID="0b88ad6f-34ed-46d6-abe3-eca0d235b353" TYPE="ext4"
/dev/mapper/lvm01-root_mimage_1: UUID="0b88ad6f-34ed-46d6-abe3-eca0d235b353" TYPE="ext4"
/dev/mapper/lvm01-root: UUID="0b88ad6f-34ed-46d6-abe3-eca0d235b353" TYPE="ext4"

Then such ID is used in fstab to mount root based... on UUID.

I wonder how fstab knows that it must use /dev/mapper/lvm01-root and not the others since the three of them share the same UUID, and if by accident the others can be erroneusly used/mounted.

Has anyone thought of it? Or it's just me?

Alex
--089e013a132a2347e904e6ceff6b--