Revisit of iSCSI Extent vs File for ESXi for Truenas 12 U8

Joined
Dec 27, 2015
Messages
4
Hey Folks,

I wanted to revisit this because all the posts I read about this topic is very old.

I'm running Truenas 12 U8

I'm building an iSCSI datastore for my ESXi lab.
Should I build iSCSI as a ZVOL Device Extent of File Extent?

Please advise and why? (Performance, speed, flexibility, features, etc).

Cheers!
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
ZVOL, my understanding is that not only are they more performant but file extents do not get full VAAI support.

Please note that in either case, you will have "default unsafe writes" with sync=standard. I know it's a lab but just take that into consideration for your lab backup strategy.
 
Joined
Dec 27, 2015
Messages
4
ZVOL, my understanding is that not only are they more performant but file extents do not get full VAAI support.

Please note that in either case, you will have "default unsafe writes" with sync=standard. I know it's a lab but just take that into consideration for your lab backup strategy.
What should "sync" be set to??
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,112
What should "sync" be set to??
For safety, iSCSI ZVOLs and datasets backing file-based extents need to be set as sync=always - this will negatively impact performance unless your pool devices are capable of handling O_SYNC writes at high speed/low latency, and/or you have an SLOG device capable of that.

Leaving it set as sync=standard causes your writes to be staged in RAM only on ZFS, which could cause data loss in a power outage or unexpected shutdown.
 
Joined
Dec 27, 2015
Messages
4
Thank, I appreciate this recommenation!
I'm really happy that it was very easy to make this change by editing the ZVOL (instead of having to recreate it)
 
Last edited:
Top