Hello,
I have a remote server with a dead disk. Unfortunately, I will not have physical access for some time. The broken disk cause boot time to be very long with errors like this,
The disk is connected to an SAS2308 controller and the disk symlink (/dev/sge) changes every time. In the screenshot it is /dev/sde, but next boot it shows up as /dev/sda. I want to disable this disk in the system similar to this question.
There is no back plane in the system.
Dead disk
# lsscsi -v
[0:0:3:0] disk ATA WDC WD10EFRX-68J 1A01 /dev/sda
dir: /sys/bus/scsi/devices/0:0:3:0 [/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:09.0/0000:04:00.0/host0/port-0:3/end_device-0:3/target0:0:3/0:0:3:0]
HBA details
# lspci -nn -v -s 04:00.0
04:00.0 Serial Attached SCSI controller [0107]: Broadcom / LSI SAS2308 PCI-Express Fusion-MPT SAS-2 [1000:0087] (rev 05)
Subsystem: Hewlett Packard Enterprise H220i [1590:0041]
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at c000 [size=256]
Memory at dd540000 (64-bit, non-prefetchable) [size=64K]
Memory at dd500000 (64-bit, non-prefetchable) [size=256K]
Expansion ROM at dd400000 [disabled] [size=1M]
Capabilities: [50] Power Management version 3
Capabilities: [68] Express Endpoint, IntMsgNum 0
Capabilities: [d0] Vital Product Data
Capabilities: [a8] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [c0] MSI-X: Enable+ Count=16 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [1e0] Secondary PCI Express
Capabilities: [1c0] Power Budgeting <?>
Capabilities: [190] Dynamic Power Allocation <?>
Capabilities: [148] Alternative Routing-ID Interpretation (ARI)
Kernel driver in use: mpt3sas
Kernel modules: mpt3sas
Error in dmesg
[ 267.833116] mpt2sas_cm0: log_info(0x31110d00): originator(PL), code(0x11), sub_code(0x0d00)
[ 267.833119] sd 0:0:3:0: [sda] tag#4251 CDB: Read(10) 28 00 18 ae c4 00 00 02 00 00
[ 267.833127] sd 0:0:3:0: [sda] tag#4269 FAILED Result: hostbyte=DID_SOFT_ERROR driverbyte=DRIVER_OK cmd_age=3s
[ 267.833126] I/O error, dev sda, sector 414106624 op 0x0:(READ) flags 0x80700 phys_seg 64 prio class 2
[ 267.833148] sd 0:0:3:0: [sda] tag#4269 CDB: Read(10) 28 00 00 44 c7 88 00 00 68 00
[ 267.835486] I/O error, dev sda, sector 4507528 op 0x0:(READ) flags 0x80700 phys_seg 13 prio class 2
[ 267.837828] sd 0:0:3:0: [sda] tag#4268 FAILED Result: hostbyte=DID_SOFT_ERROR driverbyte=DRIVER_OK cmd_age=3s
[ 267.837835] sd 0:0:3:0: [sda] tag#4268 CDB: Read(10) 28 00 00 44 c7 00 00 00 80 00
[ 267.837839] I/O error, dev sda, sector 4507392 op 0x0:(READ) flags 0x80700 phys_seg 16 prio class 2
[ 267.975616] sd 0:0:3:0: Power-on or device reset occurred
[ 271.233140] mpt2sas_cm0: log_info(0x31110d00): originator(PL), code(0x11), sub_code(0x0d00)
How can i set the system/kernel to ignore this device?
Thanks