Bug#775401: Attach/Replace additional SAS disk udev won't create block device

2015-01-16 Thread Gencho Bonev
Hi Marco,

Please ignore my previous post!
The main issue was that both SAS disks which I've tried to replace with, has
been used previously for hardware raid on the same kind of SAS controller. 
This causes the disks to be recognized as part of degraded HW raid from the
controller.
Deleting this parasite raid volume resolves the issue.

Thank you very much for your effort and prompt reply!

Best Regards,

Gencho


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#775401: Attach/Replace additional SAS disk udev won't create block device

2015-01-15 Thread Gencho Bonev
 
Hi Marco, 
   It can be that my expectations are wrong. In that case could you please 
point me to whom/where I should point this issue.  Just FYI, I've attached 2 
SATA disks to this system approx. 2 months ago with no issues and they were 
recognised  Many thanks in advance!   
Best Regards,  
  Gencho

 


  

Bug#775401: Attach/Replace additional SAS disk udev won't create block device

2015-01-15 Thread Gencho Bonev
Package: udev

Version: 215-8

 

Hello,

 

I've replaced a failed SAS disk on my machine DELL Precision T7500 but udev
won't create block device, sg device is in place.

I'm using Debian Jessie XEN kernel:

# uname -v

#1 SMP Debian 3.16.7-ckt2-1 (2014-12-08)

# uname -r

3.16.0-4-amd64

 

# lsscsi

[0:0:0:0]diskATA  WDC WD40EFRX-68W 0A82  /dev/sdb

[0:0:1:0]diskATA  WDC WD40EFRX-68W 0A82  /dev/sdc

[1:0:0:0]cd/dvd  TSSTcorp DVD+-RW TS-H653H D700  /dev/sr0

[7:0:0:0]diskKingston DataTraveler 2.0   /dev/sda

[8:0:0:0]diskIBM-ESXS ST3146855SS  BA23  /dev/sdd

[8:0:1:0]diskIBM-ESXS ST3146356SS  BA4A  -

 

Here is the CUT from dmesg, you will be able to see sdd device is created
for the SAS drive installed during installation but there is no sd device
created for the newly attached disk:

 

[   35.262000] scsi8 : ioc0: LSISAS1068E B3, FwRev=00192f00h, Ports=1,
MaxQ=266, IRQ=16

[   35.299929] scsi 8:0:0:0: Direct-Access IBM-ESXS ST3146855SS
BA23 PQ: 0 ANSI: 5

[   35.303863] sd 8:0:0:0: Attached scsi generic sg4 type 0

[   35.307329] sd 8:0:0:0: [sdd] 286748000 512-byte logical blocks: (146
GB/136 GiB)

[   35.309994] scsi 8:0:1:0: Direct-Access IBM-ESXS ST3146356SS
BA4A PQ: 0 ANSI: 5

[   35.310583] sd 8:0:0:0: [sdd] Write Protect is off

[   35.310588] sd 8:0:0:0: [sdd] Mode Sense: bb 00 10 08

[   35.313534] sd 8:0:0:0: [sdd] Write cache: enabled, read cache: enabled,
supports DPO and FUA

[   35.315783] scsi 8:0:1:0: Attached scsi generic sg5 type 0

[   35.333122]  sdd: sdd1

[   35.342742] sd 8:0:0:0: [sdd] Attached SCSI disk

[   35.466228] md: bind

 

 

# udevadm info /dev/sg5

P:
/devices/pci:00/:00:1c.0/:05:00.0/host8/port-8:1/end_device-8:1/
target8:0:1/8:0:1:0/scsi_generic/sg5

N: sg5

E: DEVNAME=/dev/sg5

E:
DEVPATH=/devices/pci:00/:00:1c.0/:05:00.0/host8/port-8:1/end_dev
ice-8:1/target8:0:1/8:0:1:0/scsi_generic/sg5

E: MAJOR=21

E: MINOR=5

E: SUBSYSTEM=scsi_generic

E: UDEV_LOG=7

 

#ls -l
/sys/devices/pci\:00/\:00\:1c.0/\:05\:00.0/host8/port-8\:1/end_d
evice-8\:1/target8\:0\:1/8\:0\:1\:0/ | grep block

-r--r--r-- 1 root root 4096 Jan 15 11:46 device_blocked

 

And for the working disk:

 

# ls -l
/sys/devices/pci\:00/\:00\:1c.0/\:05\:00.0/host8/port-8\:0/end_d
evice-8\:0/target8\:0\:0/8\:0\:0\:0/ | grep block

drwxr-xr-x 3 root root0 Jan 15 11:13 block

-r--r--r-- 1 root root 4096 Jan 15 11:47 device_blocked

 

I've deleted the device from /sys/devices...

And rescanned scsi bus and here is the debug info:

 

# udevd --debug

version 215

device 0x7f9c5e610760 has devpath '/devices/virtual/block/dm-3'

restoring old watch on '/dev/dm-3'

adding watch on '/dev/dm-3'

device 0x7f9c5e610760 has devpath '/devices/virtual/block/dm-2'

restoring old watch on '/dev/dm-2'

adding watch on '/dev/dm-2'

device 0x7f9c5e610760 has devpath '/devices/virtual/block/dm-1'

restoring old watch on '/dev/dm-1'

adding watch on '/dev/dm-1'

device 0x7f9c5e610760 has devpath
'/devices/pci:00/:00:1a.7/usb1/1-4/1-4:1.0/host7/target7:0:0/7:0:0:0
/block/sda/sda1'

restoring old watch on '/dev/sda1'

adding watch on '/dev/sda1'

device 0x7f9c5e610760 has devpath '/devices/virtual/block/dm-0'

restoring old watch on '/dev/dm-0'

adding watch on '/dev/dm-0'

device 0x7f9c5e610760 has devpath
'/devices/pci:20/:20:07.0/:23:00.0/host0/port-0:0/end_device-0:0
/target0:0:0/0:0:0:0/block/sdb'

restoring old watch on '/dev/sdb'

adding watch on '/dev/sdb'

device 0x7f9c5e610760 has devpath
'/devices/pci:00/:00:1c.0/:05:00.0/host8/port-8:0/end_device-8:0
/target8:0:0/8:0:0:0/block/sdd/sdd1'

restoring old watch on '/dev/sdd1'

adding watch on '/dev/sdd1'

device 0x7f9c5e610760 has devpath
'/devices/pci:20/:20:07.0/:23:00.0/host0/port-0:1/end_device-0:1
/target0:0:1/0:0:1:0/block/sdc'

restoring old watch on '/dev/sdc'

adding watch on '/dev/sdc'

device 0x7f9c5e610760 has devpath
'/devices/pci:00/:00:1a.7/usb1/1-4/1-4:1.0/host7/target7:0:0/7:0:0:0
/block/sda/sda5'

restoring old watch on '/dev/sda5'

adding watch on '/dev/sda5'

device 0x7f9c5e611040 has devpath
'/devices/pci:00/:00:1a.7/usb1/1-4/1-4:1.0/host7/target7:0:0/7:0:0:0
/block/sda/sda2'

restoring old watch on '/dev/sda2'

adding watch on '/dev/sda2'

device 0x7f9c5e610760 has devpath
'/devices/pci:00/:00:1c.0/:05:00.0/host8/port-8:0/end_device-8:0
/target8:0:0/8:0:0:0/block/sdd'

restoring old watch on '/dev/sdd'

adding watch on '/dev/sdd'

device 0x7f9c5e610760 has devpath
'/devices/pci:00/:00:1a.7/usb1/1-4/1-4:1.0/host7/target7:0:0/7:0:0:0
/block/sda'

restoring old watch on '/dev/sda'

adding watch on '/dev/sda'

=== trie on-disk ===

tool version:  215

file size: 6544365 bytes

header size 80 bytes

strings1667421 bytes

nodes  4876864 bytes

load module index

Network interface NamePolicy= disabled