I'm in the process of lab testing a Nas4Free server that I'm about to implement at work for Clonezilla/Trilead backup/archival purposes.
My build is based on a single ZFS pool with a single lzjb compressed dataset. I'd like to present file based extents through iSCSI so I can extend/resize the "volumes" as needed. The FreeNAS WIKI states that this can be done by stopping the iSCSI service and running the "truncate -s +2T /dev/fu/bar" command on the extent. However, the "truncate" command doesn't appear to exist on Nas4Free (command not found). If truncate isn't the supported way of extending the extent, what's the supported way of resizing a file based extent?
FYI, at first I was using ZFS volumes instead of datasets because I could easily resize them. However, with ZFS volumes it kind of defeats the purpose of compression because you have to explicitly carve out volumes. Even if you're running 2.0x compression and the dataset/pool is only showing 50% utilization, the iSCSI client sees the volume as being full. That's why I think I need to use datasets and just "present" volumes of a certain size to the clients. That way I can over-present and advertise more space than is actually available so I can utilize the compression.
Am I totally on the wrong track? Could someone steer me in the right direction?
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Resizing file based extent
-
substr
- experienced User

- Posts: 113
- Joined: 04 Aug 2013 20:21
- Status: Offline
Re: Resizing file based extent
Sounds risky. Make sure you have a backup/snaps each time.
Do you know the -s option lets you create a volume without carving out all the space? -s for sparse. Also the 9.2 builds will support lz4 compression which is even better than lzjb for these purposes.
Do you know the -s option lets you create a volume without carving out all the space? -s for sparse. Also the 9.2 builds will support lz4 compression which is even better than lzjb for these purposes.
