Hi @misc,

I have a problem with a RAID 1 on OpenBSD 6.3.

Hardware : 6501-70 Soekris router (http://www.soekris.com/products/net6501-1.html), that I use among other things as

I added an PCI 2 port S-ATA card (https://www.aliexpress.com/item/PCI-E-to-2-Port-SATA-III-3-0-RAID-Card-88SE9218-Chipset-for-Marvell-NCQ/32706555172.html)

On this card i have plug 2 HDD of 2To each (Toshiba & Western Digital)

At the beginning, i have created the RAID on a 6.2 installation and everything was OK. But after the 6.3 update, when i check if all was correct, i find that my second RAID 1 was «degraded».

The first RAID 1 is for system FS on m-SSD (sd0 & sd1), and his OK.
The second RAID 1 is for NAS on HDD Toshiba & WesternDigital (sd2 & sd3), but the Toshiba is always offline


dmesg extract :
[…]
ahci0 at pci2 dev 6 function 0 "Intel EG20T AHCI" rev 0x01: msi, AHCI 1.1
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, KingDian M100 32, 2016> SCSI3 0/direct fixed t10.ATA_KingDian_M100_32GB_2017092500113_
sd0: 30534MB, 512 bytes/sector, 62533632 sectors, thin
sd1 at scsibus1 targ 1 lun 0: <ATA, SSD 32G, 2016> SCSI3 0/direct fixed t10.ATA_SSD_32G_AA000000000003083868
sd1: 30208MB, 512 bytes/sector, 61865984 sectors, thin
[…]
ahci1 at pci12 dev 0 function 0 vendor "Marvell", unknown product 0x9128 rev 0x20: msi, AHCI 1.2
ahci1: port 0: 3.0Gb/s
ahci1: port 1: 6.0Gb/s
ahci1: port 7: 1.5Gb/s
scsibus2 at ahci1: 32 targets
sd2 at scsibus2 targ 0 lun 0: <ATA, TOSHIBA MQ01ABB2, AY00> SCSI3 0/direct fixed naa.50000395d2c08a16
sd2: 1907729MB, 512 bytes/sector, 3907029168 sectors
sd3 at scsibus2 targ 1 lun 0: <ATA, WDC WD20NPVX-00E, 01.0> SCSI3 0/direct fixed naa.50014ee262315e88
sd3: 1907729MB, 512 bytes/sector, 3907029168 sectors
uk0 at scsibus2 targ 7 lun 0: <Marvell, 91xx Config, 1.01> ATAPI 3/processor fixed
[…]
softraid0 at root
scsibus4 at softraid0: 256 targets
sd4 at scsibus4 targ 1 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd4: 30098MB, 512 bytes/sector, 61640890 sectors
softraid0: volume sd4 is roaming, it used to be sd3, updating metadata
softraid0: trying to bring up sd5 degraded
sd5 at scsibus4 targ 2 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd5: 1907728MB, 512 bytes/sector, 3907028640 sectors
root on sd4a (757605cd5169cd8a.a) swap on sd4b dump on sd4b
[…]


$ bioctl softraid0
Volume      Status               Size Device
softraid0 0 Online        31560135680 sd4     RAID1
          0 Online        31560135680 0:0.0   noencl <sd1d>
          1 Online        31560135680 0:1.0   noencl <sd0d>
softraid0 1 Degraded    2000398663680 sd5     RAID1
          0 Offline                 0 1:0.0   noencl <sd2a>
          1 Online      2000398663680 1:1.0   noencl <sd3a>

$ disklabel sd2
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: TOSHIBA MQ01ABB2
duid: 00bfa9a47b5995f8
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 243201
total sectors: 3907029168
boundstart: 0
boundend: 3907029168
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:       3907029168                0    RAID
  c:       3907029168                0  unused

$ disklabel sd3
# /dev/rsd3c:
type: SCSI
disk: SCSI disk
label: WDC WD20NPVX-00E
duid: b56e09b5a3648e79
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 243201
total sectors: 3907029168
boundstart: 0
boundend: 3907029168
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:       3907029168                0    RAID
  c:       3907029168                0  unused

When i try a reconstruction nothing appen.
$ bioctl -R /dev/sd2a sd5
softraid0: rebuild of sd5 started on sd2a
$ bioctl sd5
Volume      Status               Size Device
softraid0 1 Degraded    2000398663680 sd5     RAID1
          0 Offline     2000398663680 1:0.0   noencl <sd2a>
          1 Online      2000398663680 1:1.0   noencl <sd3a>


I have seen the following topic, may be his problem is similar, but he did not get an answer

https://marc.info/?l=openbsd-misc&m=152376479610324&w=2

I have swapped out hardware (cable, HDD, port), re-created the RAID from scratch, but at each time the Thosiba HDD is offline at reboot. I don't think it's hardware incompatibility because with 6.2 everything was Ok. I think it's software, because the rebuilding doesn't work at all without any warning or error.

So, before buy another HDD, if anyone have an idea …
Thx

Reply via email to