SATA disks distinguishable, but missing by-uuid entry.
On Wed, 04 Feb 2009 17:02:18 +0100, Frederik Kriewitz wrote:
> On Wed, Feb 4, 2009 at 3:21 PM, Hendrik Boom <hendrik@topoi.pooq.com>
> wrote:
>> Fun. Lost of symlinks. Can I use these to identify the drives to be
>> used in RAID pairs or for LLVM?
>
> Yes
>
>> by-uuid seems to miss one of the SATA drives completely, although it
>> does list one SATA drive, the IDE drive, and the plugged-in USB drive.
>> And although the symbolic links point to partitions, it doesn't mention
>> anything but the first partition on /dev/sda1.
>>
>> /dev/disk/by-uuid:
>> total 0
>> lrwxrwxrwx 1 root root 10 2009-01-21 10:53
>> 233b1187-918e-4d12a396-5ea2242912f4 -> ../../sda1 lrwxrwxrwx 1 root
>> root 10 2009-01-21 10:53 ab38a373-751e-4aff-98ab-89cda2c54726 ->
>> ../../hda1 lrwxrwxrwx 1 root root 10 2009-02-04 06:41
>> f7b4688d-ad49-4a6d-88ca-77c6865ff894 -> ../../sdc1
>>
>> Nor does it list my llvm or RAID devices here. Presumably that's
>> because they aren't real disks, and I should seek them elsewhere.
>>
>> But I'm wondering about the missing SATA drive by-uuid. Its first
>> partition is mounted as /dev/sdb1, and I can read and write it.
>
> There might be duplicate UUIDs. Have a look at the blkid and/or vol_id
> tool(s). In case of a raid/lvm (or in any other case of a logical
> device) I use the named devices in /dev/mapper/ to mount them.
So do I.
> I use the
> by-path links for identifying disks by there physical position (e.g. in
> a bay) or the model/serial-number links in /dev/disk/by-id to identify a
> specific device independent of it's physical position/connection.
I suppose that will work for the immediate purpose. But having one
primary ext3 partition present in by-uuid and another missing is, to say
the least, disquieting.
It doesn't look like there's a duplicate UUID. /dev/sda and /dev/sdb
are each new drives, on which I've created one one-gigabyte
partition, and their uuid's are here.
I see why /dev/sda2 might be missing from the by-uuid list: it's a swap
partition, and presumably has no UUID but is instead recognized by
its partition's type code.
-- hendrik
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
02-04-2009, 08:56 PM
Ron Johnson
SATA disks distinguishable, but missing by-uuid entry.
On 02/04/2009 11:54 AM, Hendrik Boom wrote:
On Wed, 04 Feb 2009 17:02:18 +0100, Frederik Kriewitz wrote:
On Wed, Feb 4, 2009 at 3:21 PM, Hendrik Boom <hendrik@topoi.pooq.com>
wrote:
Fun. Lost of symlinks. Can I use these to identify the drives to be
used in RAID pairs or for LLVM?
Yes
by-uuid seems to miss one of the SATA drives completely, although it
does list one SATA drive, the IDE drive, and the plugged-in USB drive.
And although the symbolic links point to partitions, it doesn't mention
anything but the first partition on /dev/sda1.
Nor does it list my llvm or RAID devices here. Presumably that's
because they aren't real disks, and I should seek them elsewhere.
But I'm wondering about the missing SATA drive by-uuid. Its first
partition is mounted as /dev/sdb1, and I can read and write it.
There might be duplicate UUIDs. Have a look at the blkid and/or vol_id
tool(s). In case of a raid/lvm (or in any other case of a logical
device) I use the named devices in /dev/mapper/ to mount them.
So do I.
I use the
by-path links for identifying disks by there physical position (e.g. in
a bay) or the model/serial-number links in /dev/disk/by-id to identify a
specific device independent of it's physical position/connection.
I suppose that will work for the immediate purpose. But having one
primary ext3 partition present in by-uuid and another missing is, to say
the least, disquieting.
It doesn't look like there's a duplicate UUID. /dev/sda and /dev/sdb
are each new drives, on which I've created one one-gigabyte
partition, and their uuid's are here.
I see why /dev/sda2 might be missing from the by-uuid list: it's a swap
partition, and presumably has no UUID but is instead recognized by
its partition's type code.
I wouldn't even worry about that, actually. Just use the UUID.
--
Ron Johnson, Jr.
Jefferson LA USA
"I am not surprised, for we live long and are celebrated poopers."
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts default 0 0
none /proc/bus/usb usbfs defaults 0 0
SATA disks distinguishable, but missing by-uuid entry.
On Wed, 04 Feb 2009 17:54:05 +0000, Hendrik Boom wrote:
>
> I suppose that will work for the immediate purpose. But having one
> primary ext3 partition present in by-uuid and another missing is, to say
> the least, disquieting.
>
I rebooted, and now all the entries are present in /dev/disks.by-uuid.
Go figure.
-- hendrik
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org