-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESXi : LSI SAS6g MPT2SAS card passtrough : it's not a SATA disk, ignoring #19
Comments
Hello !! Big news ! @pocopico compiled his own mpt2sas.ko driver and I replaced the original one with the one he built. And disk is available in DSM7 ! |
Try with https://github.com/RedPill-TTG/redpill-sas-activator now - it essentially auto-activates builtin LSI driver and commits ccc7acb and 0df1ec8 will mask SAS ports as if they were SATA ones. |
hi, as written here https://xpenology.com/forum/topic/45795-redpill-the-new-loader-for-624-discussion/?do=findComment&comment=218498 and here https://xpenology.com/forum/topic/45795-redpill-the-new-loader-for-624-discussion/?do=findComment&comment=218499 something isnt quite right yet. the new sas-activator extension works great (on 7.0-41222 and 7.0.1-42218) and it's loaded correctly on boot, and the patch let the disks show up as /dev/sd* and not as /dev/sas*.. problems:
will add infos if i find something else. edit: i found out that with the added patch sata_port_shim the sas-activator extension isnt really needed anymore, just by using "supportsas": "yes" it's enough to make mpt2sas load at boot as it should.. is it possible that sata_port_shim breaks something on the hba card disk load "want_idx 1 index 2. delay and reget"? it seems to me that it does.. still cant figure out why the >2tb disks are not ok. |
I won't be able to test >2Tb issue, my 4Tb disks are my production disks. I won't risk it... |
since i'm testing from remote location i actually have the whole production disks on the hba, so swapping the controller around vm is risky i know but i did it multiple times now and in the past and data is not touched my redpill nor dsm, they dont write without confirmation. |
Hello,
I tried again to passtrough LSI SAS2 card to ESXi.
I edited rd.gz from loader to add a new file in /usr/lib/modules-load.d/
70-disk-0000-lsi-mpt2sas.conf
put in it just : mpt2sas
as a reminder, mpt2sas module is already part of default DS3615xs loader.
It works as this, mpt2sas module is loaded correctly at boot.
I still have the same issue, disk is not considered as SATA disk :
:: Loading module mpt2sas[ 2.033193] mpt2sas version 20.00.00.00 loaded
[ 2.033607] scsi34 : Fusion MPT SAS Host
[ 2.034189] I/O scheduler elevator not found
[ 2.035640] mpt2sas0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (4022256 kB)
[ 2.108088] mpt2sas0: MSI-X vectors supported: 1, no of cores: 2, max_msix_vectors: -1
[ 2.109085] mpt2sas 0000:0b:00.0: irq 74 for MSI/MSI-X
[ 2.110071] mpt2sas0-msix0: PCI-MSI-X enabled: IRQ 74
[ 2.110091] mpt2sas0: iomem(0x00000000fd3fc000), mapped(0xffffc90000018000), size(16384)
[ 2.111067] mpt2sas0: ioport(0x0000000000005000), size(256)
[ 2.225979] mpt2sas0: Allocated physical memory: size(7445 kB)
[ 2.226000] mpt2sas0: Current Controller Queue Depth(3305), Max Controller Queue Depth(3432)
[ 2.226972] mpt2sas0: Scatter Gather Elements per IO(128)
[ 2.286584] mpt2sas0: LSISAS2008: FWVersion(20.00.07.00), ChipRevision(0x03), BiosVersion(07.39.02.00)
[ 2.286922] mpt2sas0: Protocol=(Initiator,Target), Capabilities=(TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set Full,NCQ)
[ 2.289072] mpt2sas0: sending port enable !!
[ 2.293066] mpt2sas0: host_add: handle(0x0001), sas_addr(0x5003005703dbf193), phys(8)
[ 2.299931] mpt2sas0: port enable: SUCCESS
[ 2.300423] I/O scheduler elevator not found
[ 2.301076] I/O scheduler elevator not found
[ 2.302799] scsi 34:0:0:0: Direct-Access Samsung SSD 850 EVO 250GB 1B6Q PQ: 0 ANSI: 6
[ 2.303198] scsi 34:0:0:0: SATA: handle(0x0009), sas_addr(0x4433221103000000), phy(3), device_name(0x5002538d4026c106)
[ 2.303902] scsi 34:0:0:0: SATA: enclosure_logical_id(0x5003005703dbf193), slot(0)
[ 2.304037] scsi 34:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[ 2.305024] scsi 34:0:0:0: serial_number(S21PNXBXXXXXXX )
[ 2.305910] scsi 34:0:0:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(7), cmd_que(1)
[ 2.307034] <redpill/scsi_notifier.c:65> Probing SCSI device using sd_probe_shim
[ 2.307566] <redpill/scsi_notifier.c:77> Triggering SCSI_EVT_DEV_PROBING notifications
[ 2.307970] <redpill/native_sata_boot_shim.c:153> Found new SCSI disk vendor="Samsung SSD 850 1B6QS21PNXBGXXXXXX " model="SSD 850 EVO 250GB ": checking boot shim viability
[ 2.308909] <redpill/boot_shim_base.c:29> scsi_is_boot_dev_target: it's not a SATA disk, ignoring
[ 2.309493] <redpill/scsi_notifier.c:87> Calling original sd_probe()
[ 2.310003] <redpill/scsi_notifier.c:91> Triggering SCSI_EVT_DEV_PROBED notifications - sd_probe() exit=0
[ 2.311104] sd 34:0:0:0: [sas0] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 2.312916] sd 34:0:0:0: [sas0] Write Protect is off
[ 2.313276] sd 34:0:0:0: [sas0] Mode Sense: 7f 00 10 08
[ 2.314101] sd 34:0:0:0: [sas0] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 2.316281] sas0: p1
[ 2.318016] sd 34:0:0:0: [sas0] Attached SCSI disk
fdisk -l
Disk /dev/synoboot: 128 MiB, 134217728 bytes, 262144 sectors
Disk model: TYPE D 3SE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf110ee87
Device Boot Start End Sectors Size Id Type
/dev/synoboot1 2048 100351 98304 48M 83 Linux
/dev/synoboot2 100352 253951 153600 75M 83 Linux
/dev/synoboot3 253952 262143 8192 4M 83 Linux
Disk /dev/sda: 16 GiB, 17179869184 bytes, 33554432 sectors
Disk model: Virtual
SATA Hard Drive
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2d4890c5
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 4982527 4980480 2.4G fd Linux raid autodetect
/dev/sda2 4982528 9176831 4194304 2G fd Linux raid autodetect
/dev/sda3 9437184 33349631 23912448 11.4G fd Linux raid autodetect
Disk /dev/sas0: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Disk model: SSD 850 EVO 250GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x49e15208
Device Boot Start End Sectors Size Id Type
/dev/sas0p1 2048 488394751 488392704 232.9G 7 HPFS/NTFS/exFAT
Disk /dev/md0: 2.4 GiB, 2549940224 bytes, 4980352 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/zram0: 1.2 GiB, 1236271104 bytes, 301824 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/zram1: 1.2 GiB, 1236271104 bytes, 301824 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md1: 2 GiB, 2147418112 bytes, 4194176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/md2: 11.4 GiB, 12242124800 bytes, 23910400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg1-syno_vg_reserved_area: 12 MiB, 12582912 bytes, 24576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vg1-volume_1: 11 GiB, 11811160064 bytes, 23068672 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/cachedev_0: 11 GiB, 11811160064 bytes, 23068672 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Serial console output in attachment.
My disk is a SATA disk plugged on SAS controller.
It works fine on Jun's loader.
and SMART is working with passtrough LSI card on it.
7.0.1_21.log
The text was updated successfully, but these errors were encountered: