Repurposing a HP MicroServer N36L as an SAS/DAS Drive Enclosure

So, I have a Dell T3610 I've been meaning to use as a base for my next Linux KVM host. It's got the processing power and memory, but not much physical disk storage. 

I decided on getting some sort of external disk enclosure, but one that exposed the individual disks so I could still us a 4-disk BTRFS RAID10 array that existed in my 'old' KVM host.

Not many modern encloses seemed to offer this, with most just exposing a USB port. I decided the best course of action was to procrastinate on the problem for a while and sure enough, a week or so later, I came across my old HP MicroServer, languishing in an upstairs wardrobe. I'd had a chat with a friend about NAS/DAS solutions and he'd mentioned SAS, which I hadn't really heard of / understood before then. A quick dismantle of the N36L revealed it connected it's 4-disk array to it's clapped out motherboard via a Mini-SAS connector.

Amazon came through with an "Internal Mini SAS SFF8087 to External SFF8088" adapter that would let me expose an SAS port on the back of the MicroServer (https://www.amazon.co.uk/gp/product/B01GT3ZDWQ) and ebay gave me an "SAS9201-16e 16-Port 6Gbps SAS Card". This card went into the Dell T3610 and a SAS cable connected the two.

Dell T3610 with N36L DAS

SAS cable/ports

Linux dmesg dump:
[    3.663924] mpt2sas_cm0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (32831392 kB)
[    4.323141] mpt2sas_cm0: CurrentHostPageSize is 0: Setting default host page size to 4k
[    4.323154] mpt2sas_cm0: MSI-X vectors supported: 1
[    4.323157] mpt2sas_cm0:  0 1
[    4.323209] mpt2sas_cm0: High IOPs queues : disabled
[    4.323211] mpt2sas0-msix0: PCI-MSI-X enabled: IRQ 44
[    4.323214] mpt2sas_cm0: iomem(0x00000000fb39c000), mapped(0x00000000ac800950), size(16384)
[    4.323216] mpt2sas_cm0: ioport(0x000000000000d000), size(256)
[    4.899088] mpt2sas_cm0: CurrentHostPageSize is 0: Setting default host page size to 4k
[    4.899092] mpt2sas_cm0: sending message unit reset !!
[    4.915081] mpt2sas_cm0: message unit reset: SUCCESS
[    5.203082] mpt2sas_cm0: scatter gather: sge_in_main_msg(1), sge_per_chain(9), sge_per_io(128), chains_per_io(15)
[    5.203585] mpt2sas_cm0: request pool(0x00000000bbae9029) - dma(0x839400000): depth(30127), frame_size(128), pool_size(3765 kB)
[    6.265715] mpt2sas_cm0: sense pool(0x000000006c47858d)- dma(0x835400000): depth(29868),element_size(96), pool_size(2800 kB)
[    6.266223] mpt2sas_cm0: config page(0x00000000c3388a74) - dma(0x835b71000): size(512)
[    6.266225] mpt2sas_cm0: Allocated physical memory: size(14663 kB)
[    6.266226] mpt2sas_cm0: Current Controller Queue Depth(29865),Max Controller Queue Depth(32455)
[    6.266228] mpt2sas_cm0: Scatter Gather Elements per IO(128)
[    6.330063] mpt2sas_cm0: overriding NVDATA EEDPTagMode setting
[    6.330507] mpt2sas_cm0: LSISAS2116: FWVersion(20.00.07.00), ChipRevision(0x02), BiosVersion(07.39.02.00)
[    6.330509] mpt2sas_cm0: Protocol=(Initiator,Target), Capabilities=(TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set Full,NCQ)
[    6.332068] mpt2sas_cm0: sending port enable !!
[    7.924037] mpt2sas_cm0: hba_port entry: 00000000b54c2c42, port: 255 is added to hba_port list
[    7.926852] mpt2sas_cm0: host_add: handle(0x0001), sas_addr(0x5000d310004deb0d), phys(16)
...
[   13.799113] mpt2sas_cm0: port enable: SUCCESS
[   13.799344] sd 0:0:0:0: Attached scsi generic sg3 type 0
[   13.799407] sd 0:0:0:0: Power-on or device reset occurred
[   13.799459] sd 0:0:1:0: Attached scsi generic sg4 type 0
[   13.799470] sd 0:0:1:0: Power-on or device reset occurred
[   13.799592] sd 0:0:2:0: Attached scsi generic sg5 type 0
[   13.799625] sd 0:0:2:0: Power-on or device reset occurred
[   13.799741] sd 0:0:3:0: Attached scsi generic sg6 type 0
[   13.799750] sd 0:0:3:0: Power-on or device reset occurred
[   13.801510] sd 0:0:0:0: [sdc] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[   13.801511] sd 0:0:0:0: [sdc] 4096-byte physical blocks
[   13.801517] sd 0:0:1:0: [sdd] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[   13.801518] sd 0:0:1:0: [sdd] 4096-byte physical blocks
[   13.801802] sd 0:0:2:0: [sde] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[   13.801803] sd 0:0:2:0: [sde] 4096-byte physical blocks
[   13.801894] sd 0:0:3:0: [sdf] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[   13.801895] sd 0:0:3:0: [sdf] 4096-byte physical blocks
[   13.804507] sd 0:0:0:0: [sdc] Write Protect is off
[   13.804509] sd 0:0:0:0: [sdc] Mode Sense: 7f 00 10 08
[   13.804512] sd 0:0:1:0: [sdd] Write Protect is off
[   13.804514] sd 0:0:1:0: [sdd] Mode Sense: 7f 00 10 08
[   13.805324] sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
[   13.805397] sd 0:0:1:0: [sdd] Write cache: enabled, read cache: enabled, supports DPO and FUA
[   13.805718] sd 0:0:2:0: [sde] Write Protect is off
[   13.805719] sd 0:0:2:0: [sde] Mode Sense: 7f 00 10 08
[   13.805851] sd 0:0:3:0: [sdf] Write Protect is off
[   13.805852] sd 0:0:3:0: [sdf] Mode Sense: 7f 00 10 08
[   13.806596] sd 0:0:2:0: [sde] Write cache: enabled, read cache: enabled, supports DPO and FUA
[   13.806724] sd 0:0:3:0: [sdf] Write cache: enabled, read cache: enabled, supports DPO and FUA
[   13.934717] sd 0:0:3:0: [sdf] Attached SCSI disk
[   13.939345] sd 0:0:2:0: [sde] Attached SCSI disk
[   14.012610] BTRFS: device fsid 98aa5eae-4308-4318-8fa3-93e5ac03d148 devid 1 transid 64705 /dev/sde
[   14.019257] BTRFS: device fsid 98aa5eae-4308-4318-8fa3-93e5ac03d148 devid 3 transid 64705 /dev/sdf
[   14.230732] sd 0:0:1:0: [sdd] Attached SCSI disk
[   14.245523] sd 0:0:0:0: [sdc] Attached SCSI disk
[   14.274241] BTRFS: device fsid 98aa5eae-4308-4318-8fa3-93e5ac03d148 devid 2 transid 64705 /dev/sdd
[   14.304361] BTRFS: device fsid 98aa5eae-4308-4318-8fa3-93e5ac03d148 devid 4 transid 64705 /dev/sdc
[   14.352552] alua: device handler registered
[   14.353352] emc: device handler registered
[   14.354477] rdac: device handler registered
[   14.415260] BTRFS info (device sde): disk space caching is enabled
[   14.415262] BTRFS info (device sde): has skinny extents
  


Additional Links

Comments