Re: udev works ok in CentOS 6.x??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 03/13/2012 07:01 PM, John R Pierce wrote:
> On 03/13/12 8:19 AM, C. L. Martinez wrote:
>> Please, any help?
>
> avoid using ANY device names for SCSI class devices, they are near
> useless.    mount the volumes via label or uUID.
>
>
>
Sorry to re-open this thread, but how can I obtain this uuid?? For 
example. With one disk, uuid is showed:

[root@newc6srv by-uuid]# ls -la /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 80 Mar 28 13:19 .
drwxr-xr-x 4 root root 80 Mar 28 13:19 ..
lrwxrwxrwx 1 root root 10 Mar 28 13:19 
0faf5e22-ff30-4ab8-a9ac-733c593eec40 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 28 13:19 
37501499-c52d-4a84-9ec8-778adf511ebd -> ../../sda2

but when I add two disks, uuid isn't showed:

root@newc6srv by-uuid]# ls -la /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 80 Mar 28 13:19 .
drwxr-xr-x 4 root root 80 Mar 28 13:19 ..
lrwxrwxrwx 1 root root 10 Mar 28 13:19 
0faf5e22-ff30-4ab8-a9ac-733c593eec40 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 28 13:19 
37501499-c52d-4a84-9ec8-778adf511ebd -> ../../sda2

[root@newc6srv by-uuid]# ls -la /dev/sd*
brw-rw---- 1 root disk 8,  0 Mar 28 13:19 /dev/sda
brw-rw---- 1 root disk 8,  1 Mar 28 13:19 /dev/sda1
brw-rw---- 1 root disk 8,  2 Mar 28 13:19 /dev/sda2
brw-rw---- 1 root disk 8, 16 Mar 28 13:19 /dev/sdb
brw-rw---- 1 root disk 8, 17 Mar 28 13:19 /dev/sdb1
brw-rw---- 1 root disk 8, 32 Mar 28 13:19 /dev/sdc
brw-rw---- 1 root disk 8, 33 Mar 28 13:19 /dev/sdc1

and dmesg:

sd 2:0:0:0: [sda] Assuming drive cache: write through
  sda:
sd 3:0:0:0: [sdb] 536870912 512-byte logical blocks: (274 GB/256 GiB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 61 00 00 00
sd 3:0:0:0: [sdb] Cache data unavailable
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sd 3:0:0:0: [sdb] Cache data unavailable
sd 3:0:0:0: [sdb] Assuming drive cache: write through
  sdb: sda1 sda2
sd 2:0:0:0: [sda] Cache data unavailable
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI disk
sd 4:0:0:0: [sdc] 536870912 512-byte logical blocks: (274 GB/256 GiB)
sd 4:0:0:0: [sdc] Write Protect is off
sd 4:0:0:0: [sdc] Mode Sense: 61 00 00 00
sd 4:0:0:0: [sdc] Cache data unavailable
sd 4:0:0:0: [sdc] Assuming drive cache: write through
sd 4:0:0:0: [sdc] Cache data unavailable
sd 4:0:0:0: [sdc] Assuming drive cache: write through
  sdc: sdb1
sd 3:0:0:0: [sdb] Cache data unavailable
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sd 3:0:0:0: [sdb] Attached SCSI disk
  sdc1
sd 4:0:0:0: [sdc] Cache data unavailable
sd 4:0:0:0: [sdc] Assuming drive cache: write through
sd 4:0:0:0: [sdc] Attached SCSI disk

Then, how can I obtain these uuids??


-- 
CL Martinez
carlopmart {at} gmail {d0t} com
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux