UNMAP failed

Rene2322

Cadet
Joined
Jun 5, 2020
Messages
3
A few months ago I setup a home-server with a ESXi 6.5 hypervisor and some VM's. One of these VM's (called VM-NAS-01) is running FreeNAS 11.2-U8. 1 dedicated storage controller in passthru mode. 1 datapool consisting of 6x 3TB WD-red in RaidZ2 and a 16GB Optane M10 for ZIL. I'm still using this NAS for testing and learning before I start filling it with value content.

Last week I (successfully) upgraded my Hypervisor to ESXi 7.0. While booting the VM's again I noticed an error in the console of the FreeNAS-VM.

Code:
(da0:mpt0:0:0:0): UNMAP failed, switching to WRITE SAME(16) with UNMAP BIO_DELETE
(da0:mpt0:0:0:0): UNMAP. CDB 42 00 00 00 00 00 00 00 00 00
(da0:mpt0:0:0:0): CAM status: SCSI Status Error
(da0:mpt0:0:0:0): SCSI status: Check Condition
(da0:mpt0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB)
(da0:mpt0:0:0:0): Command byte 7 is invalid
(da0:mpt0:0:0:0): Error 22, Unretryable error


I'm not sure this is a result of my upgrade, or a result of the power failure a few weeks ago where my server didn't respond fast enough to the signal of my UPS. I just noticed it today.

Anyway, the web-interface is fully responding, showing no errors. I'm not understanding whats wrong here.
Upgrading to the latest stable train 11.3 didn't solve this. Every reboot, the console is showing this same error.

What actions are needed to solve his?
 

sdhuff79

Cadet
Joined
Jul 22, 2020
Messages
1
Just upgraded to 11.3-U3 from 11.3-U3.2 when I noticed the error. But I am in the same setup with FreeNAS as a VMware VM using LSI card passthrough setup. I tried several things by disabling sysctl kern.cam.da.0.delete_method=DISABLE and that doesn't work.
 

Rene2322

Cadet
Joined
Jun 5, 2020
Messages
3
Code:
(da0:mpt0:0:0:0)
seems to be my ESXi datastore (NVMe SSD). Physically there is nothing wrong with this disk, so maybe my upgrade went a little wrong for this Virtual Machine.

Is it possible to move the FreeNAS configuration to another clean FreeNAS instance? Because when I create a new Virtual Machine running the latest FreeNAS no errors appear in the console.

Is it like:
- create a "new FreeNAS" VM with the exact same hardware
- save config from "old FreeNAS"
- shutdown "old FreeNAS"
- boot "new FreeNAS"
- upload config into "new FreeNAS"
Or do I miss things here...?

Thanks
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Is it like:
- create a "new FreeNAS" VM with the exact same hardware
- save config from "old FreeNAS"
- shutdown "old FreeNAS"
- boot "new FreeNAS"
- upload config into "new FreeNAS"
Or do I miss things here...?
You could keep the existing VM, but export the config, remove the boot disk and add another one, install, then restore the config. (or do it the way you propose with a few more clicks)
 

Tonkatsu

Cadet
Joined
Jan 22, 2021
Messages
1
I hit this topic, as I had the same issue, wanted to share my experience for anyone else hitting this problem:

In my case it was caused by creating a snapshot in esxi of the freenas. The moment FREENAS started up, I hit the error.
I solved it by removing/deleting the snapshot in ESXI 6.7U2.
After this the FREENAS VM started up again.

One more note, I noticed
FREENAS was importing the boot pool when this problem happened.

Good luck everyone!
 
Top