How to share a physical disk directly over ISCSI

Hi there. I would like to export a whole disk (/dev/sde) as an ISCSI extent, and I can’t figure out what I’m doing wrong.

I am running 25.04.2.4 and when adding an extent, I set the Extent Type to Device, but all I see in the device list are zvols, not disk devices.

The popup help for Extent Type lead me to belive this should work, it says " *Device* provides virtual storage access to zvols, zvol snapshots, or physical devices."

I have:

  • Verified that the disk I added is at /dev/sde – it appears in lsblk output and the Disks UI.
  • Tried wiping the disk to make sure it wasn’t detected as in use for something else.
  • Tried manually creating a partition table on the disk in case you’re supposed to export a single partition and not the whole device.
  • looked at the online documentation. It has a similar description that says physical devices can be be selected as extents.

I’m not sure what else to try. Can anyone spot what I am doing wrong?

Thanks,
KM

It’s unsupported on TrueNAS.

Well, that’s too bad, but thank you for getting back to me so quickly. It’s unfortunate that the documentation says the opposite and I wasted a bunch of time trying to figure it out.

Hopefully it’s possible to fix this confusion for the future. I’ve used the feedback button on the documentation page to report that it is incorrect.

Regards,
KM

Which documentation?

The “Extent Type” on this page includes “physical devices”:

The popup help in the UI to add extents says the same:

And the AI documentation search came up with step by step instructions for it:

Thanks,
KM

Okay. I told the docs team and they’ll fix it. IIRC we used to allow this with some old truenas versions and the docs were apparently never updated.

3 Likes

I remember this being brought up on the old forums, unfortunately I cannot link it here (it was thread ID 104740). It is supported on TrueNAS Core, but not on Scale. Scale removed this for some reason.

So this was solved by… the misleading term will be removed from the docs? Is there no way whatsoever to re-add this feature?
I found it to be extremely useful, since I don’t always require ZFS. By mapping an entire device into an extent, I can basically put existing drives into TrueNAS and have them appear with all data intact.

I would like it very much if this feature was re-added, or some work-around was created.

You can feel free to make a feature request thread.