.png)
Ich hatte bisher noch nie ein SAS-Laufwerk und habe mir vor kurzem einen Fusion-MPT 2-Controller zugelegt:
04:00.0 SCSI storage controller: Broadcom / LSI SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] (rev 03)
Zusammen mit einem Seagate ST10000NM002G 10TB SAS-Laufwerk. Ich habe alles angeschlossen und die gute Nachricht ist, dass das mp3sas-Modul den Controller erkennt und die Festplatte ebenfalls erkannt wird.
Die schlechte Nachricht ist, dass die Festplatte als schreibgeschützt erkannt wird:
[ 11.078668] sd 5:0:0:0: [sda] 19532873728 512-byte logical blocks: (10.0 TB/9.10 TiB)
[ 11.082640] sd 5:0:0:0: [sda] 4096-byte physical blocks
[ 11.086516] sd 5:0:0:0: [sda] Write Protect is on
[ 11.091759] sd 5:0:0:0: [sda] Mode Sense: df 00 90 08
[ 11.093572] sd 5:0:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
[ 11.164638] sd 5:0:0:0: [sda] Attached SCSI disk
Das heißt, ich kann problemlos davon lesen, aber nichts auf das Blockgerät schreiben. Ich habe versucht, es über sysfs zurückzusetzen:
# cat /sys/devices/pci0000:00/0000:00:03.1/0000:02:00.0/0000:03:00.0/0000:04:00.0/host5/port-5:0/end_device-5:0/target5:0:0/5:0:0:0/block/sda/ro
1
# echo 0 >/sys/devices/pci0000:00/0000:00:03.1/0000:02:00.0/0000:03:00.0/0000:04:00.0/host5/port-5:0/end_device-5:0/target5:0:0/5:0:0:0/block/sda/ro
bash: /sys/devices/pci0000:00/0000:00:03.1/0000:02:00.0/0000:03:00.0/0000:04:00.0/host5/port-5:0/end_device-5:0/target5:0:0/5:0:0:0/block/sda/ro: Permission denied
Ich habe auch gelesen, dass es für SAS-Laufwerke anscheinend einige „Formatierungen“ gibt, die mit sg-utils, insbesondere dem sg_format
Tool, durchgeführt werden können, aber:
# sg_format --format /dev/sda
error opening device file: /dev/sda: Read-only file system
sg_format failed: Read-only file system
Auch das schlägt fehl, da die Festplatte schreibgeschützt ist. Ich habe auch Folgendes versucht hdparm
:
# hdparm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Standards:
Likely used: 1
Configuration:
Logical max current
cylinders 0 0
heads 0 0
sectors/track 0 0
--
Logical/Physical Sector size: 512 bytes
device size with M = 1024*1024: 0 MBytes
device size with M = 1000*1000: 0 MBytes
cache/buffer size = unknown
Capabilities:
IORDY not likely
Cannot perform double-word IO
R/W multiple sector transfer: not supported
DMA: not supported
PIO: pio0
# hdparm -r /dev/sda
/dev/sda:
readonly = 1 (on)
# hdparm -r0 /dev/sda
/dev/sda:
setting readonly to 0 (off)
readonly = 1 (on)
# hdparm -r /dev/sda
/dev/sda:
readonly = 1 (on)
Ich weiß nicht, ob die Festplatte defekt ist, der Controller defekt ist oder ob ich etwas falsch mache. Was kann ich tun, um die Festplatte im R/W-Modus zum Laufen zu bringen?