Project

General

Profile

Actions

Bug #3190

open

zfs incremental: cannot receive incremental stream:destination ... has been modified since most recent snapshot

Added by Richard PALO about 9 years ago. Updated about 6 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2012-09-14
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

This was rather a frustrating discovery, running on oi_151a5:

bash-4.0# zfs list -rt all apool
NAME                                                   USED  AVAIL  REFER  MOUNTPOINT
apool                                                  111G   183G    97K  /apool
apool@2012-09-01                                        26K      -   100K  -
apool/richard                                          111G   183G  93,6G  /apool/richard
apool/richard@zfs-auto-snap_monthly-2012-07-06-06h37  2,17G      -  69,5G  -
apool/richard@zfs-auto-snap_weekly-2012-08-03-17h09   2,23G      -  74,6G  -
apool/richard@zfs-auto-snap_monthly-2012-08-06-07h11   132M      -  78,4G  -
apool/richard@zfs-auto-snap_weekly-2012-08-14-07h30    951M      -  79,2G  -
apool/richard@zfs-auto-snap_weekly-2012-08-21-07h30    351M      -  77,1G  -
apool/richard@zfs-auto-snap_daily-2012-08-28-07h19    81,3M      -  84,7G  -
apool/richard@zfs-auto-snap_weekly-2012-08-28-07h30   80,9M      -  84,7G  -
apool/richard@zfs-auto-snap_daily-2012-08-29-07h30     190M      -  84,7G  -
apool/richard@zfs-auto-snap_daily-2012-08-30-07h30    95,0M      -  92,4G  -
apool/richard@zfs-auto-snap_daily-2012-08-31-07h30    51,8M      -  92,5G  -
apool/richard@zfs-auto-snap_daily-2012-09-01-07h30    47,9M      -  92,5G  -
apool/richard@2012-09-01                               148M      -  93,1G  -
apool/richard@zfs-auto-snap_monthly-2012-09-11-19h25   116M      -  93,6G  -
apool/richard@zfs-auto-snap_daily-2012-09-13-08h13    84,5M      -  93,6G  -
bash-4.0# zfs list -rt all cpool/richard
NAME                                                   USED  AVAIL  REFER  MOUNTPOINT
cpool/richard                                          107G   112G  93,1G  /cpool/richard
cpool/richard@zfs-auto-snap_monthly-2012-07-06-06h37  3,41G      -  69,5G  -
cpool/richard@zfs-auto-snap_monthly-2012-08-06-07h11   146M      -  78,3G  -
cpool/richard@zfs-auto-snap_weekly-2012-08-14-07h30    951M      -  79,2G  -
cpool/richard@zfs-auto-snap_weekly-2012-08-21-07h30    351M      -  77,1G  -
cpool/richard@zfs-auto-snap_daily-2012-08-28-07h19    81,2M      -  84,7G  -
cpool/richard@zfs-auto-snap_weekly-2012-08-28-07h30   80,9M      -  84,7G  -
cpool/richard@zfs-auto-snap_daily-2012-08-29-07h30     190M      -  84,7G  -
cpool/richard@zfs-auto-snap_daily-2012-08-30-07h30    94,9M      -  92,4G  -
cpool/richard@zfs-auto-snap_daily-2012-08-31-07h30    51,7M      -  92,5G  -
cpool/richard@zfs-auto-snap_daily-2012-09-01-07h30    47,9M      -  92,5G  -
cpool/richard@2012-09-01                              1,04M      -  93,1G  -
cpool/richard@zfs-auto-snap_daily-2012-09-03-19h13     749K      -  93,1G  -
cpool/richard@zfs-auto-snap_weekly-2012-09-06-19h13       0      -  93,1G  -
bash-4.0# zfs send -i apool/richard@2012-09-01 apool/richard@zfs-auto-snap_daily-2012-09-13-08h13 | zfs receive cpool/richard
cannot receive incremental stream: most recent snapshot of cpool/richard does not
match incremental source
bash-4.0# zfs destroy cpool/richard@zfs-auto-snap_weekly-2012-09-06-19h13
bash-4.0# zfs destroy cpool/richard@zfs-auto-snap_daily-2012-09-03-19h13
bash-4.0# zfs list -rt all cpool/richard
NAME                                                   USED  AVAIL  REFER  MOUNTPOINT
cpool/richard                                          107G   112G  93,1G  /cpool/richard
cpool/richard@zfs-auto-snap_monthly-2012-07-06-06h37  3,41G      -  69,5G  -
cpool/richard@zfs-auto-snap_monthly-2012-08-06-07h11   146M      -  78,3G  -
cpool/richard@zfs-auto-snap_weekly-2012-08-14-07h30    951M      -  79,2G  -
cpool/richard@zfs-auto-snap_weekly-2012-08-21-07h30    351M      -  77,1G  -
cpool/richard@zfs-auto-snap_daily-2012-08-28-07h19    81,2M      -  84,7G  -
cpool/richard@zfs-auto-snap_weekly-2012-08-28-07h30   80,9M      -  84,7G  -
cpool/richard@zfs-auto-snap_daily-2012-08-29-07h30     190M      -  84,7G  -
cpool/richard@zfs-auto-snap_daily-2012-08-30-07h30    94,9M      -  92,4G  -
cpool/richard@zfs-auto-snap_daily-2012-08-31-07h30    51,7M      -  92,5G  -
cpool/richard@zfs-auto-snap_daily-2012-09-01-07h30    47,9M      -  92,5G  -
cpool/richard@2012-09-01                              1,04M      -  93,1G  -
bash-4.0# 
bash-4.0# zfs send -i apool/richard@2012-09-01 apool/richard@zfs-auto-snap_daily-2012-09-13-08h13 | zfs receive cpool/richard
cannot receive incremental stream: destination cpool/richard has been modified
since most recent snapshot
bash-4.0# 

As indicated, apool is the live volume and cpool is for all the backups, which gets mounted (import/export) on the same host.

Unfortunately, autosnapshot seems to have executed, but even when deleting all more recent snapshots on the backup disk to correspond to the beginning incremental snapshot, zfs spits up the error.

Is this intended behaviour?

Actions

Also available in: Atom PDF