Windows 2019 iSCSI / Drive has no volume information

SniZz

Cadet
Joined
May 30, 2023
Messages
3
Hi community!

According to the official TrueNas documentation on how to create iSCSI shares and mount them to windows machines i created a basic iSCSI share (no auth)
and tried mounting it to a Windows Server 2019.

However after connecting the iSCSI share to the Windows Server only the drive shows up in diskmanager. The disk shows up without volumeinformation. It can be brought online and can get initialized. I can't create a volume though.
1685454416491.png


The drive shows up in devicemanager:
1685454516315.png



Because that specific Windows Server is a semi-production server I created 2 VMs in a testenvironment running in Hyper-V.
So i installed a VM with the latest TrueNas Core and a Windows Server 2019 and wired them up with privated Hyper-V switches so that they have direct connectivity. While testing i came across the same problem and at this point I have no further ideas what could be causing the problem. The testing environment is a completly seperate system with fresh and updated VMs. I even tested both TrueNas Core and TrueNas Scale to make sure that the problem isn't a FreeBSD thing. In both cases I have the exact same issue.

I went completly trial and error by creating new extents of both kinds (file/device) and ticked and unticked all the checkmarks (sparse, Xen compatibility, enable TPC, Disable physical block size reporting), compression on/off, dedup on/off and different blocksizes and logical blocksizes. I even used Wireshark to see if there are any network related issues. All I can see there is iSCSI traffic without issues although I don't know the protocol well enough to troubleshoot at that level.

After all of that I installed another Windows Server for testing just to make sure that i haven't missconfigured something while testing. Again, same thing.

I noticed that there is another error when using file extends. With file extents i can't even initialize the disk.
1685454039144.png



One important thing to add: Both the testing environment and the production server have no issues at all connecting to a Synology NAS iSCSI share.

So im wondering. Is there a fundamental thing in TrueNas that I might need to add/change to make iSCSI work with Windows Server? Any info is highly appreciated. If you need more information, please let me know. I didn't want to further clutter up the post with configuration screenshots if not necessary.
 

SniZz

Cadet
Joined
May 30, 2023
Messages
3
This is solved. It turned out to be a layer 8 (my fault) error.
When you encounter this behavior check your zvol size. In my case I didn't specify a unit. By doing so TrueNas defaults to KiB (I think?). Obviously Windows has no way of formating a drive properly if there is no space to do so.

Now i recommend to allways show a unit for the zvol size if not specified so that you see what you are about to do.
Because the help panel showed GiB i was certain that it would default to that. You only get to see the unit when you have created the zvol and want to edit it afterwards.
1687789069685.png
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
create iSCSI shares and mount them to windows machines

Hi,

Just to make sure you're aware, iSCSI isn't "sharing" and I hope you're not mounting this to multiple "machines" plural. NTFS is not a cluster-aware filesystem and you will ruin your filesystem, probably irreversibly, if two Windows machines attempt to "share" this iSCSI drive simultaneously.

If you already knew this, great, just ignore me.
 

SniZz

Cadet
Joined
May 30, 2023
Messages
3
Hi,

Just to make sure you're aware, iSCSI isn't "sharing" and I hope you're not mounting this to multiple "machines" plural. NTFS is not a cluster-aware filesystem and you will ruin your filesystem, probably irreversibly, if two Windows machines attempt to "share" this iSCSI drive simultaneously.

If you already knew this, great, just ignore me.
Thanks for your follow up.

I used the term "sharing" because it is in that section in TrueNas (actually sharing of blockstorage via iSCSI).
Yes I am aware of this although technically NTFS or ReFS is used for sharing storage in a Windows Failovercluster. CSV ist just layered above it as a "middleware" to enable cluster awareness.

Reference: https://learn.microsoft.com/en-us/windows-server/failover-clustering/failover-cluster-csvs
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Yes I am aware of this although technically NTFS or ReFS is used for sharing storage in a Windows Failovercluster. CSV ist just layered above it as a "middleware" to enable cluster awareness.

CSV is not a filesystem; it does not make NTFS cluster-aware. It is just a crappy hacky abstraction layer along the lines of Gluster to manage access to the nodes. There are unfortunately very few actual cluster-aware filesystems, VMFS being the only commonly used one.

Point remains, don't try to mount your iSCSI block device on multiple Windows systems. It isn't designed to allow "sharing" of a block storage device unless you have a cluster-aware filesystem, and NTFS isn't that.
 
Top