Hello,
Disk space handling for snapshots in ZFS is a mystery for me. I want to use ZFS snapshots for a regular backup of another file systems. Files are copied over once a week and "labeled" with a snapshot. The idea was that files that have not changed (since the previous backup) will not occupy disk space. However this does not seem to be the case.
To narrow down the issue this was the experiment:
1. Prepare a tar file with some content (few hundred MBs)
2. Untar it on a new ZFS file system
3. Make a snapshot
4. Repeat step 2 and 3 again and again (basically, existing files are overwritten with the same files)
After a while:
I expected that files with the same content do not occupy disk space every time a snapshot is taken ... or?
Cheers,
B.
Disk space handling for snapshots in ZFS is a mystery for me. I want to use ZFS snapshots for a regular backup of another file systems. Files are copied over once a week and "labeled" with a snapshot. The idea was that files that have not changed (since the previous backup) will not occupy disk space. However this does not seem to be the case.
To narrow down the issue this was the experiment:
1. Prepare a tar file with some content (few hundred MBs)
2. Untar it on a new ZFS file system
3. Make a snapshot
4. Repeat step 2 and 3 again and again (basically, existing files are overwritten with the same files)
After a while:
Code:
Write failed: No space left on device: No space left on device
Cheers,
B.