Cache Trim Failing? ("FITRIM ioctl failed: Remote I?O error") (SOLVED)


Recommended Posts

1 hour ago, mihcox said:

Thanks for this, do i just boot into the LSI, then run this from there and it should be fine?

No, you need to boot the EFI shell via UEFI. Format your USB to FAT32 and put the shell on the root of the device then boot the shell, there should be an option in the bios to do so.

 

https://superuser.com/questions/1057446/how-do-i-boot-to-uefi-shell

 

NOTE: Prior to proceeding with the firmware downgrade, please review the differences between MBR and UEFI boot mechanisms and review how you can boot an EFI shell.

 

Edited by ezhik
Link to comment
  • 6 months later...

Added 9211-8i to the list.

 

Instructions:

Quote

# latest release that supports TRIM is P16 (as of 2021-01-30)
# check if trim works
fstrim -v -a


# reboot into EFI Shell:
shellx64.efi


# full erase of controller bios and firmware:
sas2flash.efi -o -e 6
 

# flash the controller firmware WITHOUT bios, replace $controller with your model
sas2flash.efi -o -f p16\$controller_it.bin

 

# flash the controller firmware WITH bios, replace $controller with your model

sas2flash.efi -o -f p16\$controller_it.bin -b p16\mptsas2.rom


# NOTE: For unRAID you'd be better off without the BIOS (you do not need to boot from it, nor do you need to configure anything).
 

# verify you are now running P16 firmware (the bios should say N/A if not installed)
sas2flash.efi -listall

--
Cheers.


--

@blakeslade, please see above for 9211-8i.

 

 

lsi-flash-efi-20210130.zip

  • Like 2
  • Thanks 1
Link to comment
  • 1 month later...

@JorgeB @ezhik

Is the 9207-8i P16 firmware still the only firmware that allows for trim with the latest mpt3sas driver in UNRAID 6.9.1? Or have they decided to allow it again in the driver?

 

Ezhik - Have you noticed any issues with the P16 firmware e.g. stability, data corruption etc? I understand it has been about 2 years since you started using the P16 firmware on the 9207-8i controller so if anyone can answer this question it would be yourself haha :)

 

If not, does anyone have any recommendations on a good controller that supports TRIM?

Link to comment
2 hours ago, Solverz said:

@JorgeB @ezhik

Is the 9207-8i P16 firmware still the only firmware that allows for trim with the latest mpt3sas driver in UNRAID 6.9.1? Or have they decided to allow it again in the driver?

 

Ezhik - Have you noticed any issues with the P16 firmware e.g. stability, data corruption etc? I understand it has been about 2 years since you started using the P16 firmware on the 9207-8i controller so if anyone can answer this question it would be yourself haha :)

 

If not, does anyone have any recommendations on a good controller that supports TRIM?

 

Q: Is the 9207-8i P16 firmware still the only firmware that allows for trim with the latest mpt3sas driver in UNRAID 6.9.1? Or have they decided to allow it again in the driver?

A: Have not tested it out, but you are more than welcome :)

 

Q: Have you noticed any issues with the P16 firmware e.g. stability, data corruption etc?

A: I am still rocking P16 firmware on 9207-8i and 9201-16i, haven't noticed any corruption, but then again - I don't open every file all the time and therefore - so far so good.

 

Cheers.

  • Thanks 1
Link to comment
On 3/11/2021 at 6:18 AM, Solverz said:

 

Ezhik - Have you noticed any issues with the P16 firmware e.g. stability, data corruption etc? I understand it has been about 2 years since you started using the P16 firmware on the 9207-8i controller so if anyone can answer this question it would be yourself haha :)

 

 

I've been running P16 on multiple controllers for ~6 months, including my main array and two ZFS pools (SSD and SAS disk).  ZFS pools have checksums for all data, the pools are scrubbed regularly.  No issues encountered.

  • Thanks 1
Link to comment
On 3/10/2021 at 10:03 PM, ezhik said:

 

Q: Is the 9207-8i P16 firmware still the only firmware that allows for trim with the latest mpt3sas driver in UNRAID 6.9.1? Or have they decided to allow it again in the driver?

A: Have not tested it out, but you are more than welcome :)

 

Q: Have you noticed any issues with the P16 firmware e.g. stability, data corruption etc?

A: I am still rocking P16 firmware on 9207-8i and 9201-16i, haven't noticed any corruption, but then again - I don't open every file all the time and therefore - so far so good.

 

Cheers.

 

8 hours ago, ConnectivIT said:

 

I've been running P16 on multiple controllers for ~6 months, including my main array and two ZFS pools (SSD and SAS disk).  ZFS pools have checksums for all data, the pools are scrubbed regularly.  No issues encountered.

 

Ahh that's great news then! That reassures me that the P16 IT firmware should be fine for use, I am going to flash it now and install the controller in my system.

Can finally move my SSD's from the petty 3Gbps onboard sata ports to 6Gbps using the 9207-8i controller on the P16 IT firmware.

 

Appreciate you both sharing your expereince using the P16 It firmware, I am sure many will read these posts which will help others make their decision :D

Link to comment

So I just checked this after updating to 6.9.1

 

Two 9207-8i's on P16 firmware. All my SSDs TRIM fine, except for my 850 Evo.

Something something zeros after discard? I remember reading this as a reason for issues with Samsung drives, can't find specifics at the moment though.

 

Moved it to one of the motherboard ports and it TRIMs fine again. 

Haven't tried with P20 fw as of yet.

 

 

Link to comment
2 hours ago, -Daedalus said:

So I just checked this after updating to 6.9.1

 

Two 9207-8i's on P16 firmware. All my SSDs TRIM fine, except for my 850 Evo.

Something something zeros after discard? I remember reading this as a reason for issues with Samsung drives, can't find specifics at the moment though.

 

Moved it to one of the motherboard ports and it TRIMs fine again. 

Haven't tried with P20 fw as of yet.

 

 

I have 860's, no issues:

 

root@u4:~# dmesg -T|grep -i 'lsi'
[Sat Mar 13 12:48:52 2021] mpt2sas_cm0: LSISAS2308: FWVersion(16.00.00.00), ChipRevision(0x05), BiosVersion(07.31.00.00)

root@u4:~# dmesg -T|grep -i 'samsung'
[Sat Mar 13 12:48:52 2021] ata5.00: ATA-11: Samsung SSD 860 EVO 500GB, *, RVT03B6Q, max UDMA/133
[Sat Mar 13 12:48:52 2021] ata6.00: ATA-11: Samsung SSD 860 EVO 500GB, *, RVT03B6Q, max UDMA/133
[Sat Mar 13 12:48:52 2021] scsi 5:0:0:0: Direct-Access     ATA      Samsung SSD 860  3B6Q PQ: 0 ANSI: 5
[Sat Mar 13 12:48:52 2021] scsi 6:0:0:0: Direct-Access     ATA      Samsung SSD 860  3B6Q PQ: 0 ANSI: 5

root@u4:~# fstrim -v -a
/etc/libvirt: 8 GiB (8588054528 bytes) trimmed on /dev/loop3
/var/lib/docker: 63.3 GiB (67954708480 bytes) trimmed on /dev/loop2
/mnt/cache: 874.8 GiB (939358191616 bytes) trimmed on /dev/mapper/sdf1

 

Edited by ezhik
  • Like 1
Link to comment
13 hours ago, -Daedalus said:

Two 9207-8i's on P16 firmware. All my SSDs TRIM fine, except for my 850 Evo.

Something something zeros after discard? I remember reading this as a reason for issues with Samsung drives, can't find specifics at the moment though.

 

Moved it to one of the motherboard ports and it TRIMs fine again. 

Haven't tried with P20 fw as of yet.

 

Will not work at all on P20 firmware.

 

fstrim on P16 only works if SSD supports deterministic read zero after trim (for samsung 8xx, this is from 860 onwards).  Described well in this post:

https://forums.unraid.net/topic/84156-lsi-9211-8i-and-trim-support/?do=findComment&comment=779516

  • Like 1
Link to comment
  • 7 months later...

buyed for first time 9207-8i and connected 2 SSD to it, also see this error . so i understand i need to flash it from p20 to p16 for trim will work on unraid 6.9.2 too?

i have kingston :SSD 

1. sv300 ------

2. suv500 - Deterministic read data after TRIM

i can see that only suv500 trim not working ?

image.png.1456f827b0641d9e45a6f658f016c7d2.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.