Consider the following command and the output:
zfs send -Pvi \
tank/vms/langara@zfsnap-2016-05-11_00.00.00--1w \
tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w \
| dd > /dev/null
Run 1:
incremental zfsnap-2016-05-11_00.00.00--1w tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w 4903284160
size 4903284160
17:29:42 1244483472 tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
17:29:43 2487508120 tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
17:29:44 3741453864 tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
9582310+895 records in
9582799+1 records out
4906393272 bytes (4.9 GB) copied, 3.94883 s, 1.2 GB/s
Run 2:
incremental zfsnap-2016-05-11_00.00.00--1w tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w 4903284160
size 4903284160
17:30:07 1209666712 tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
17:30:08 2411042632 tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
17:30:09 3632274072 tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
17:30:10 4853372344 tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
9582450+654 records in
9582799+1 records out
4906393272 bytes (4.9 GB) copied, 4.05346 s, 1.2 GB/s
Run without the -P
option:
total estimated size is 4.57G
TIME SENT SNAPSHOT
17:36:23 1.11G tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
17:36:24 2.25G tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
17:36:25 3.39G tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
17:36:26 4.50G tank/vms/langara@zfsnap-2016-05-13_00.00.00--1w
9582443+679 records in
9582799+1 records out
4906393272 bytes (4.9 GB) copied, 4.01077 s, 1.2 GB/s
I have 4 related questions.
- Is the initial size listed with the
-P
switch an estimate? I assume it's the same as without the-P
switch, but missing the clarification that it's an estimate. - Is there any way to have
zfs send
output the actual stream size once the send is complete? - Is there any way to figure out the stream size estimated by
zfs send
by using existing ZFS properties or is a dry-run send the only way? - Is there anything like
logicalwritten
(NOTE: not a real property) that would give me the same information as thewritten
property, but using uncompressed sizes?