Re: SCSI Device Addresses

2008-03-01 Thread Steve Dobson
Hamish On Sat, 2008-03-01 at 22:31 +1100, Hamish Moffatt wrote: > On Sat, Mar 01, 2008 at 11:00:01AM +, Steve Dobson wrote: > > On Sat, 2008-03-01 at 14:31 +1100, Hamish Moffatt wrote: > > > Doesn't udev assign constant sdN/hdN identifiers? It appears to look up > > > the drive serial number a

Re: SCSI Device Addresses

2008-03-01 Thread Steve Dobson
Damon On Sat, 2008-03-01 at 11:46 -0500, Damon L. Chesser wrote: > Lennart Sorensen wrote: > How do you determine the UUID? I use blkid(8). For example on workstation with many types of disk (inc s/w RAID): # blkid /dev/sdb1: UUID="89cc5b7e-049f-4e41-8e13-0017180ae87a" TYPE="xfs" /dev/sda5:

Re: SCSI Device Addresses

2008-03-01 Thread Damon L. Chesser
Eduardo M KALINOWSKI wrote: Damon L. Chesser wrote: How do you determine the UUID? If the system is in a working and known state, you can simply do something like $ ll /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root 10 2008-03-01 04:31 3A5C47515C4706DB -> ../../hda1 lrwxrwxrwx 1 root 10 2008-0

Re: SCSI Device Addresses

2008-03-01 Thread Eduardo M KALINOWSKI
Damon L. Chesser wrote: How do you determine the UUID? If the system is in a working and known state, you can simply do something like $ ll /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root 10 2008-03-01 04:31 3A5C47515C4706DB -> ../../hda1 lrwxrwxrwx 1 root 10 2008-03-01 04:31 9819-26DD -> ../..

Re: SCSI Device Addresses

2008-03-01 Thread Damon L. Chesser
Lennart Sorensen wrote: On Fri, Feb 29, 2008 at 01:54:25PM -0500, Douglas A. Tutty wrote: Is there any advantage of using UUID (which are very long) and a filesystem label (e.g. LABEL=root) which is shorter and more intuitive? If you ever have to deal with a disk from another system us

Re: SCSI Device Addresses

2008-03-01 Thread Hamish Moffatt
On Sat, Mar 01, 2008 at 11:00:01AM +, Steve Dobson wrote: > On Sat, 2008-03-01 at 14:31 +1100, Hamish Moffatt wrote: > > Doesn't udev assign constant sdN/hdN identifiers? It appears to look up > > the drive serial number and attempt to do this. > > From what I've observed hdN is consistant. h

Re: SCSI Device Addresses

2008-03-01 Thread Steve Dobson
Hamish On Sat, 2008-03-01 at 14:31 +1100, Hamish Moffatt wrote: > On Fri, Feb 29, 2008 at 12:01:49PM -0500, Lennart Sorensen wrote: > > UUIDs work for me. Driver modules load in parallel and nothing will > > ensure consistent device names. A unique identifier for the filesystem No it doesn't, h