I must destroy and recreate a ZFS pool. Please don't ask me why; it's a long story.
The pool contains just one volume, named "depo".
Of course, I had to back up the whole volume. Since ZFS replication won't work (long story...), I decided to mount two NTFS-formatted (ada0 and da0) drives and copy the ZFS volume to them, separately.
Please note that the commands were run after the copying was completed and that the original volume (tank/depo) is 112G in size.
Then I issued these commands separately:
When it was over, just to make sure I won't lose any data, I calculated folder sizes:
So why are the copies of the same size but the source folder bigger? Does it have to do with the internal workings of ZFS? Does it have anything to do with 250+ snapshots of the said volume?
Is there anything I need to worry here? Or can I go ahead and destroy the pool?
The pool contains just one volume, named "depo".
Of course, I had to back up the whole volume. Since ZFS replication won't work (long story...), I decided to mount two NTFS-formatted (ada0 and da0) drives and copy the ZFS volume to them, separately.
Code:
# df -h
Filesystem Size Used Avail Capacity Mounted on
...
tank 3,4T 117K 3,4T 0% /tank
tank/depo 3,5T 112G 3,4T 3% /tank/depo
/dev/fuse 900G 109G 790G 12% /mnt
/dev/fuse 298G 277G 21G 93% /media
Please note that the commands were run after the copying was completed and that the original volume (tank/depo) is 112G in size.
Then I issued these commands separately:
Code:
# cp -Rv /tank/depo /mnt/
# cp -Rv /tank/depo /media/
When it was over, just to make sure I won't lose any data, I calculated folder sizes:
Code:
# du -sh /mnt/depo
109G /mnt/depo
# du -sh /media/depo
109G /media/depo
# du -sh /tank/depo
111G /tank/depo
So why are the copies of the same size but the source folder bigger? Does it have to do with the internal workings of ZFS? Does it have anything to do with 250+ snapshots of the said volume?
Is there anything I need to worry here? Or can I go ahead and destroy the pool?