Hi,
I have a problem to create a second RAID 1 on my router an Soekris
6501-70 (http://www.soekris.com/products/net6501-1.html)
The first RAID 1 is on 2 m-sata SSD (sd0+sd1=sd4) and is fine.
The second is connected to a PCI-E to S-ATA expansion card
(https://www.aliexpress.com/item/PCI-E-to-2-Port-SATA-III-3-0-RAID-Card-88SE9218-Chipset-for-Marvell-NCQ/32706555172.html)
with 2 HDD of 2Tb (both are quite new, so no bad sector or anything
else) (sd2+sd3=sd5).
I do the following commands
# dd if=/dev/zero of=/dev/sd2c bs=1m count=1
# dd if=/dev/zero of=/dev/sd3c bs=1m count=1
# fdisk -iy sd2
# fdisk -iy sd3
# disklabel -E sd2 # make an "a" partition of type RAID
# disklabel -E sd3 # make an "a" partition of type RAID
# bioctl -c 1 -l sd2a,sd3a softraid0
sd5 at scsibus4 targ 2 lun 0: <OPENBSD, SR RAID 1, 006> SCSI2 0/direct fixed
sd5: 1907726MB, 512 bytes/sector, 3907023473 sectors
# dd if=/dev/zero of=/dev/rsd5c bs=1m count=1
# fdisk -iy sd5
# disklabel -E sd5 # make an "d" partition
until here everything is OK. I can detach the device and/or reboot the
router, the RAID still fine.
/root # 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 Online 2000396018176 sd5 RAID1
0 Online 2000396018176 1:0.0 noencl <sd2a>
1 Online 2000396018176 1:1.0 noencl <sd3a>
/root # disklabel sd5
# /dev/rsd5c:
type: SCSI
disk: SCSI disk
label: SR RAID 1
duid: e010d540c6ee0085
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 243200
total sectors: 3907023473
boundstart: 64
boundend: 3907008000
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 3907023473 0 unused
d: 3907007936 64 4.2BSD 8192 65536 1
But when i try to set a file system …
/root # newfs sd5d
/dev/rsd5d: 1907718.7MB in 3907007936 sectors of 512 bytes
584 cylinder groups of 3266.88MB, 52270 blocks, 104704 inodes each
super-block backups (for fsck -b #) at:
256, […], 3900596736,
/root # 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 2000396018176 sd5 RAID1
0 Offline 2000396018176 1:0.0 noencl <sd2a>
1 Online 2000396018176 1:1.0 noencl <sd3a>
I can rebuild the offline device but he still offline …
So, there any option or configuration to explain/solve that ? Something
wrong with what i do ?
Maybe something bad with the expansion card ?
Thanks for any help.