I'm not sure if this belongs here, but...
Does anyone know of a way to properly copy thin-provisioned (sparse?) iSCSI file extents in FreeNAS 8.3/FreeBSD?
I have a 6TB thin-provisioned file extent inside a ZFS file system along with a number of other extents. I'd like to move the 6TB extent into its own ZFS file system so I can apply different replication and snapshot rules to it.
My issue lies in copying the extent. Currently, there is about 3.4TB/6TB used, however I can't find a reliable way to copy the extent and maintain the thin-provisioned state (sparseness?). Apparently, FreeBSD's version of cp doesn't handle sparse files (unlike GNU cp) and the resulting copy takes up a full 6TB of disk space. I've tried:
- cp, but sparse files are not supported in FreeBSD.
- dd with "conv=sparse". Same results as cp.
- rsync with the "--sparse" option, but it's so slow (less than 5MB/s locally).
If I have to, I'll move the data to another machine and back, but I'd like to do this locally as it will be faster.
Thanks!!
Riley
Does anyone know of a way to properly copy thin-provisioned (sparse?) iSCSI file extents in FreeNAS 8.3/FreeBSD?
I have a 6TB thin-provisioned file extent inside a ZFS file system along with a number of other extents. I'd like to move the 6TB extent into its own ZFS file system so I can apply different replication and snapshot rules to it.
My issue lies in copying the extent. Currently, there is about 3.4TB/6TB used, however I can't find a reliable way to copy the extent and maintain the thin-provisioned state (sparseness?). Apparently, FreeBSD's version of cp doesn't handle sparse files (unlike GNU cp) and the resulting copy takes up a full 6TB of disk space. I've tried:
- cp, but sparse files are not supported in FreeBSD.
- dd with "conv=sparse". Same results as cp.
- rsync with the "--sparse" option, but it's so slow (less than 5MB/s locally).
If I have to, I'll move the data to another machine and back, but I'd like to do this locally as it will be faster.
Thanks!!
Riley