NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to use bioctl with mpt?



I have no deep knowledge of NetBSD code, but I use
lot of servers in production with LSI 1064 and 1068.
I think mpt driver lack real support for RAID management
on these chips, Unknown async events are proving that.
I may be wrong but I have no cases where RAID was
managed through bio and mpt.

31.05.2019 16:45, John Klos пишет:
Hello, all,

I'm trying to figure out how to create a mirrored set of disks using bioctl with an mpt controller:

mpt0 at pci11 dev 1 function 0: Symbios Logic SAS1064 (rev. 0x02)
mpt0: interrupting at ivec 1f8f
mpt0: Phy 0: Link Status Unknown
mpt0: Phy 0: Link Status Unknown
mpt0: Phy 0: Link Status Unknown
mpt0: Phy 0: Link Status Unknown
mpt0: Unknown async event: 0xb000000
scsibus0 at mpt0: 63 targets, 8 luns per target
mpt0: Unknown async event: 0xb000000
...
sd0 at scsibus0 target 0 lun 0: <FUJITSU, MAY2073RCSUN72G, 0501> disk fixed
sd0: 70007 MB, 14100 cyl, 24 head, 423 sec, 512 bytes/sect x 143374738 sectors
sd0: tagged queueing
sd1 at scsibus0 target 1 lun 0: <ATA, SAMSUNG MZ7LM480, 204Q> disk fixed
sd1: 447 GB, 457863 cyl, 16 head, 127 sec, 512 bytes/sect x 937703088 sectors
sd1: tagged queueing
sd2 at scsibus0 target 2 lun 0: <LSILOGIC, Logical Volume, 3000> disk fixed
sd2: 558 GB, 572261 cyl, 16 head, 128 sec, 512 bytes/sect x 1171990528 sectors
sd2: tagged queueing


I couldn't create a mirror in NetBSD, so I booted in to Solaris and made it there. After rebooting in to NetBSD, bioctl showed the status to be "Degraded". I couldn't figure out how to get the mirror to resync inside of NetBSD, so I rebooted in to Solaris and let it stay there until resyncing finished. Solaris then showed:

raidctl -l c1t2d0
Volume                  Size    Stripe  Status   Cache  RAID
         Sub                     Size                    Level
                 Disk
----------------------------------------------------------------
c1t2d0                  558.8G  N/A     SYNC     OFF    RAID1
                 0.2.0   558.8G          GOOD
                 0.3.0   558.8G          GOOD


Rebooting in to NetBSD after that still shows "Degraded":

bioctl mpt0 show
Volume Status       Size         Device/Label    Level Stripe
=============================================================
      0 Degraded     559G sd0 FUJITSU MAY2073RCSUN72G 050   RAID 1    N/A
    0:0 Online       559G         0:4.0 noencl <SEAGATE ST600MM0006 0003>
    0:1 Online       559G         0:3.0 noencl <SEAGATE ST9600205SS 0004>


How is one supposed to use bioctl to rebuild a mirror? Why is the mirror degraded from booting in to NetBSD?

Thanks,
John


Home | Main Index | Thread Index | Old Index