jgreco
Resident Grinch
- Joined
- May 29, 2011
- Messages
- 18,680
I suppose I should point out that pool hackery of these sorts probably voids the FreeNAS "do-via-GUI" warranty-and-warning.
The general idea of the snapshot-to-snapshot thing is that if you've got a highly fragmented pool, the act of rewriting it into another snapshot defrags the data somewhat. The idea is that after a single local disk copy you could then export the new snapshot and clear the old one. I think that'd be ... difficult ... within the GUI framework, but not impossible.
A different technique, where you use zfs send to dump into a local file, and then wipe your dataset, and then restore from the local file, is a little more terrifying (because you're trusting the integrity of the file) but I think could do a better job of defragging. This is not possible to do within the GUI framework, but might be less tinkering with the GUI.
The general idea of the snapshot-to-snapshot thing is that if you've got a highly fragmented pool, the act of rewriting it into another snapshot defrags the data somewhat. The idea is that after a single local disk copy you could then export the new snapshot and clear the old one. I think that'd be ... difficult ... within the GUI framework, but not impossible.
A different technique, where you use zfs send to dump into a local file, and then wipe your dataset, and then restore from the local file, is a little more terrifying (because you're trusting the integrity of the file) but I think could do a better job of defragging. This is not possible to do within the GUI framework, but might be less tinkering with the GUI.