iSCSI extent type

Status
Not open for further replies.

Andres Gonzalez

Dabbler
Joined
Oct 21, 2014
Messages
39
Hello,

I'm configuring an iSCSI target and I found that there are two options when configuring the extent:

- device
- file

Is there any difference regarding performance, use, etc. or it's the same ?

Also, It's better to create first a datastore then the zvol on the volume, or creating the zvol under the volume without a datastore it's ok ?

Thanks.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I have no clue what you are referring to when you say "datastore" as FreeNAS has no "datastore".

Right now file-based provie better performance, but once 9.3 comes out zvols will provide better performance. So if I were you I'd go with zvols. The reason why it changes is that 9.3 uses a kernel-based iSCSI service and that changes the mechanics of iSCSI.
 

Andres Gonzalez

Dabbler
Joined
Oct 21, 2014
Messages
39
I have no clue what you are referring to when you say "datastore" as FreeNAS has no "datastore".

Sorry, I wanted to say "dataset".

Right now file-based provie better performance, but once 9.3 comes out zvols will provide better performance. So if I were you I'd go with zvols. The reason why it changes is that 9.3 uses a kernel-based iSCSI service and that changes the mechanics of iSCSI.

OK! Thanks.
It's better to create a dataset and zvol under the dataset, or just create de zvol "under" de volume without dataset ?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Doesn't matter where the zvol is.
 

toadman

Guru
Joined
Jun 4, 2013
Messages
619
True, it doesn't matter, unless you are trying to manage the zvol I suppose. For the OP, remember, you can set dataset specific attributes, so putting the zvol in a separate dataset will allow you to manage it differently than other datasets presumably used for different purposes.

For example, I put my zvols into a separate dataset so I can manage the specifics of compression, dedup, snapshots, and replication independently of my other datasets. I (currently) only use these zvols for vmware storage (datastores).
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
True, it doesn't matter, unless you are trying to manage the zvol I suppose. For the OP, remember, you can set dataset specific attributes, so putting the zvol in a separate dataset will allow you to manage it differently than other datasets presumably used for different purposes.

For example, I put my zvols into a separate dataset so I can manage the specifics of compression, dedup, snapshots, and replication independently of my other datasets. I (currently) only use these zvols for vmware storage (datastores).

Not true. zvols get their own properties just like a dataset. You can set the dedup, compression, etc for a zvol directly.

Just do "zfs get all <pool>/<zvol name>" and you can see for yourself.
 

toadman

Guru
Joined
Jun 4, 2013
Messages
619
Very nice, yes, you are correct (and I stand corrected). ZVOLs do have independent attributes. I do manage my zvols in a single dataset as my needs have it such that all the attributes are the same. And I replicate the entire dataset.

However, this OP may be able to simply assign attributes to a single zvol.
 
Status
Not open for further replies.
Top