UUID sdg6 = UUID sdh6 ! If I wanted to retire /dev/sdg6 from the Raid
array, I would not be able to use the UUID, only the unique SDxn.
Aren't UUIDs supposed to be unique? Roger
"$ lsblk -f" output is very nice ! Thanks.
On Tue, 26 Nov 2024, George at Clug wrote:
"$ lsblk -f" output is very nice ! Thanks.
I tried this and noticed UUID duplication in the output. Here is part of what I
saw:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
...
sdg
...
├─sdg6 linux_raid_member 1.0 10.218.0.100:3 f5e37a29-357a-e3f2-c731-e29eddce5e91
│ └─md3 ext4 1.0 39c24711-ab43-497c-bf3e-12b4032575ac 758.4G 7% /mnt/home
...
sdh
...
├─sdh6 linux_raid_member 1.0 10.218.0.100:3 f5e37a29-357a-e3f2-c731-e29eddce5e91
│ └─md3 ext4 1.0 39c24711-ab43-497c-bf3e-12b4032575ac 758.4G 7% /mnt/home
UUID sdg6 = UUID sdh6 ! If I wanted to retire /dev/sdg6 from the Raid array, I
would not be able to use the UUID, only the unique SDxn.
Aren't UUIDs supposed to be unique? Roger
"$ lsblk -f" output is very nice ! Thanks.
On Tue, 26 Nov 2024, George at Clug wrote:
"$ lsblk -f" output is very nice !  Thanks.
I tried this and noticed UUID duplication in the output. Here is part
of what I saw:
NAMEÂ Â Â FSTYPEÂ Â Â Â Â Â Â Â Â Â Â FSVER LABEL UUIDÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â FSAVAIL FSUSE% MOUNTPOINT
...
sdg
... ├─sdg6 linux_raid_member 1.0  10.218.0.100:3 f5e37a29-357a-e3f2-c731-e29eddce5e91 │ └─md3 ext4 1.0                 39c24711-ab43-497c-bf3e-12b4032575ac 758.4G    7%
/mnt/home
...
sdh
... ├─sdh6 linux_raid_member 1.0  10.218.0.100:3 f5e37a29-357a-e3f2-c731-e29eddce5e91 │ └─md3 ext4 1.0                 39c24711-ab43-497c-bf3e-12b4032575ac 758.4G    7%
/mnt/home
UUID sdg6 = UUID sdh6 ! If I wanted to retire /dev/sdg6 from the Raid array, I would not be able to use the UUID, only the unique SDxn.
Aren't UUIDs supposed to be unique? Roger
Yes, they are: somebody did something wrong on your suystem. Odds it was
you. It sure was not me :-Þ
When did you add the most recent of these drives? How did you add it?
Aren't UUIDs supposed to be unique? Roger
Roger Price (12024-11-26):
UUID sdg6 = UUID sdh6 !
Aren't UUIDs supposed to be unique?
Yes, they are: somebody did something wrong on your suystem. Odds it was
you. It sure was not me :-Þ
When did you add the most recent of these drives? How did you add it?
Members of a raid filesystem have to be seen as an integral part of one filesystem,
a special case. It's another reason I stick to use of LABELs.
# lsblk -f | egrep -A1 'raid|NAME'
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
--
├─sda5 linux_raid_member 1.0 msi85:0tmp 6cb3…
│ └─md0 ext4 1.0 hr18md0tmp 8aea…
--
├─sdb5 linux_raid_member 1.0 msi85:0tmp 6cb3…
│ └─md0 ext4 1.0 hr18md0tmp 8aea…
Sorry, the formatting was messed up and the message unreadable.
On Tue, 26 Nov 2024, George at Clug wrote:
"$ lsblk -f" output is very nice ! Thanks.
I tried this and noticed UUID duplication in the output. I attach a small text file which shows what I saw. UUID sdg6 = UUID sdh6 !
NAME FSTYPE UUID
...
├─sdg6 linux_raid_membe3 f5e37a29-357a-e3f2-c731-e29eddce5e
│ └─md3 ext4 1.039c24711-ab43-497c-bf3e-12b4032575a.4G
...
├─sdh6 linux_raid_membe3 f5e37a29-357a-e3f2-c731-e29eddce5e91
│ └─md3 ext4 39c39c24711-ab43-497c-bf3e-12b403257.4G
If I wanted to retire /dev/sdg6 from the Raid array, I would not be able to use the UUID, only the unique SDxn.
Aren't UUIDs supposed to be unique? Roger
What about juste enter blkid as root?
Will also give UUID and Label.
You have
to specify sda5 or sdb5.
On Tue, 26 Nov 2024, Hans wrote:
What about juste enter blkid as root?
Will also give UUID and Label.
# blkid /dev/sdg6
/dev/sdg6: UUID="f5e37a29-357a-e3f2-c731-e29eddce5e91"
UUID_SUB="8ae02b9d-d818-1d8a-88f6-5cb77b15d0eb"
LABEL="10.218.0.100:3" TYPE="linux_raid_member" PARTUUID="000871f1-06"
# blkid /dev/sdh6
/dev/sdh6: UUID="f5e37a29-357a-e3f2-c731-e29eddce5e91"
UUID_SUB="7821cc06-e7f5-358b-cf95-fb0ec2f34585"
LABEL="10.218.0.100:3" TYPE="linux_raid_member" PARTUUID="0000b24f-06"
# blkid /dev/md0
/dev/md0: UUID="8a31b513-cd62-4639-b5e5-3a8f8879164f" BLOCK_SIZE="4096"
TYPE="ext4"
The UUIDs are the same for sdg6 and sdh6 but there is a UUID_SUB to distinguish
them. blkid sees a new value for md0's UUID, not the same as lsblk.
Roger
On Tue, 26 Nov 2024, Felix Miata wrote:
Members of a raid filesystem have to be seen as an integral part of one filesystem,
a special case. It's another reason I stick to use of LABELs.
# lsblk -f | egrep -A1 'raid|NAME'
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
--
├─sda5 linux_raid_member 1.0 msi85:0tmp 6cb3…
│ └─md0 ext4 1.0 hr18md0tmp 8aea…
--
├─sdb5 linux_raid_member 1.0 msi85:0tmp 6cb3…
│ └─md0 ext4 1.0 hr18md0tmp 8aea…
It makes sense to me that md0 should be reported twice with the same UUID, but surely the underlying hardware should be getting a unique UUID?
The use of LABELs is attractive, but I notice you have the same label for sda5 and sdb5. This means you cannot intervene on "msi85:0tmp". You have
to specify sda5 or sdb5.
Hi Roger,...
Am 26.11.2024 um 08:51 schrieb Roger Price:
On Tue, 26 Nov 2024, George at Clug wrote:
"$ lsblk -f" output is very nice !  Thanks.
I tried this and noticed UUID duplication in the output. Here is part
of what I saw:
Aren't UUIDs supposed to be unique? Roger
The UUID reported might be the one of the file system.
The UUID is in a slot of the /file system/.
Of course, if the RAID system allows to attach individual "things" (perhaps UUIDs?) to each of its components you could do that (no idea whether Linux RAID allows that, though).
On Tue, 26 Nov 2024, Nicolas George wrote:
Roger Price (12024-11-26):
You have to specify sda5 or sdb5.There is nothing wrong with having to specify sda5 or sdb5.
Indeed, and it's the only way for Raid specification. For example /proc/mdstat contains no mention of device UUIDs.
It is only a problem if you want to specify now and expect it to be
still valid after the next reboot.
I'm guessing that this feature is something systemd has given us.
Roger Price (12024-11-26):
You have to specify sda5 or sdb5.There is nothing wrong with having to specify sda5 or sdb5.
It is only a problem if you want to specify now and expect it to be
still valid after the next reboot.
I'm guessing that this feature is something systemd has given us.
Sent: Tuesday, November 26, 2024 at 2:51 AM
From: "Roger Price" <debian@rogerprice.org>
To: "debian-user Mailing List" <debian-user@lists.debian.org>
Subject: The "uniqueness" of UUIDs
On Tue, 26 Nov 2024, George at Clug wrote:
"$ lsblk -f" output is very nice ! Thanks.
I tried this and noticed UUID duplication in the output. Here is part of what I
saw:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
...
sdg
...
├─sdg6 linux_raid_member 1.0 10.218.0.100:3 f5e37a29-357a-e3f2-c731-e29eddce5e91
│ └─md3 ext4 1.0 39c24711-ab43-497c-bf3e-12b4032575ac 758.4G 7% /mnt/home
...
sdh
...
├─sdh6 linux_raid_member 1.0 10.218.0.100:3 f5e37a29-357a-e3f2-c731-e29eddce5e91
│ └─md3 ext4 1.0 39c24711-ab43-497c-bf3e-12b4032575ac 758.4G 7% /mnt/home
UUID sdg6 = UUID sdh6 ! If I wanted to retire /dev/sdg6 from the Raid array, I
would not be able to use the UUID, only the unique SDxn.
Aren't UUIDs supposed to be unique? Roger
Felix Miata wrote:
Members of a raid filesystem have to be seen as an integral part of one filesystem,
a special case. It's another reason I stick to use of LABELs.
# lsblk -f | egrep -A1 'raid|NAME'
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
--
├─sda5 linux_raid_member 1.0 msi85:0tmp 6cb3…
│ └─md0 ext4 1.0 hr18md0tmp 8aea…
--
├─sdb5 linux_raid_member 1.0 msi85:0tmp 6cb3…
│ └─md0 ext4 1.0 hr18md0tmp 8aea…
It makes sense to me that md0 should be reported twice with the same UUID, but
surely the underlying hardware should be getting a unique UUID?
The use of LABELs is attractive, but I notice you have the same label for sda5
and sdb5. This means you cannot intervene on "msi85:0tmp". You have to specify
sda5 or sdb5.
On Tue, 26 Nov 2024, Felix Miata wrote:
The use of LABELs is attractive, but I notice you have the same label for sda5
and sdb5. This means you cannot intervene on "msi85:0tmp". You have to specify
sda5 or sdb5.
Not at all. hr18md0tmp is an ext4 filesystem LABEL. I wouldn't want to disturb its
two underlying partitions separately except via mdadm.
"except via mdadm" : exactly the point I would like to make. mdadm needs to be able to address the individual underlying devices. Only /dev/sdxn style addressing can do this, not duplicate UUIDs, or duplicate LABELs.
The use of LABELs is attractive, but I notice you have the same label for sda5
and sdb5. This means you cannot intervene on "msi85:0tmp". You have to specify
sda5 or sdb5.
Not at all. hr18md0tmp is an ext4 filesystem LABEL. I wouldn't want to disturb its
two underlying partitions separately except via mdadm.
On Tue, Nov 26, 2024 at 03:53:28PM +0100, Roger Price wrote:
"except via mdadm" : exactly the point I would like to make. mdadm needs to >> be able to address the individual underlying devices. Only /dev/sdxn style >> addressing can do this, not duplicate UUIDs, or duplicate LABELs.
If those we are talking about are file system UUIDs/LABELs (and all evidence supports that), they *are not* duplicate. They are *the same*. Change "one" and *poof* the "other" will change along. Because they are on the file system,
which is sitting astride your MD devices.
On Tue, 26 Nov 2024, George at Clug wrote:
"$ lsblk -f" output is very nice ! Thanks.
I tried this and noticed UUID duplication in the output. I attach a small text file which shows what I saw. UUID sdg6 = UUID sdh6 !
NAME FSTYPE UUID
...
├─sdg6 linux_raid_membe3 f5e37a29-357a-e3f2-c731-e29eddce5e
│ └─md3 ext4 1.039c24711-ab43-497c-bf3e-12b4032575a.4G
...
├─sdh6 linux_raid_membe3 f5e37a29-357a-e3f2-c731-e29eddce5e91
│ └─md3 ext4 39c39c24711-ab43-497c-bf3e-12b403257.4G
If I wanted to retire /dev/sdg6 from the Raid array, I would not be able to use the UUID, only the unique SDxn.
Aren't UUIDs supposed to be unique?
On Tue, 26 Nov 2024, tomas@tuxteam.de wrote:
On Tue, Nov 26, 2024 at 03:53:28PM +0100, Roger Price wrote:
"except via mdadm" : exactly the point I would like to make. mdadm needs to
be able to address the individual underlying devices. Only /dev/sdxn style
addressing can do this, not duplicate UUIDs, or duplicate LABELs.
If those we are talking about are file system UUIDs/LABELs (and all evidence
supports that), they *are not* duplicate. They are *the same*. Change "one" and *poof* the "other" will change along. Because they are on the file system,
which is sitting astride your MD devices.
My understanding is that a Linux file system is a hierachical structure starting with the root directory (/) which organises the directories and files. The files are stored on various devices which have identities such
as /dev/sdxn, UUID or LABEL. These identities are for the devices, not
parts of the file system.
The file system and the underlying devices are separate notions, which is
why I don't understand your phrase "file system UUIDs/LABELs".
My understanding is that a Linux file system is a hierachical
structure starting with the root directory (/) which organises the >directories and files. The files are stored on various devices which
have identities such as /dev/sdxn, UUID or LABEL. These identities
are for the devices, not parts of the file system.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 15:25:07 |
Calls: | 10,389 |
Files: | 14,061 |
Messages: | 6,416,911 |