Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zfssnap reports trying to delete pools #67

Closed
mlindgren80 opened this issue Jun 2, 2015 · 10 comments
Closed

zfssnap reports trying to delete pools #67

mlindgren80 opened this issue Jun 2, 2015 · 10 comments

Comments

@mlindgren80
Copy link

Here is the output that gets mailed to me:

Scrubbing of zfs pools:
   starting scrub of pool 'ssdmirror':
      consult 'zpool status ssdmirror' for the result
   starting scrub of pool 'usbenc':
      consult 'zpool status usbenc' for the result
   skipping scrubbing of pool 'zfsbak':
      last scrubbing is 29 days ago, threshold is set to 30 days
   skipping scrubbing of pool 'zfsraid2':
      last scrubbing is 29 days ago, threshold is set to 30 days
   starting scrub of pool 'zroot':
      consult 'zpool status zroot' for the result
FATAL: trying to delete zfs pool or filesystem? WTF?
  This is bug, we definitely don't want that.
  Please report it to https://github.com/graudeejs/zfSnap/issues
  Don't panic, nothing was deleted :)

And here is my config:

daily_zfsnap_enable="YES"

daily_zfsnap_delete_enable="YES"

daily_zfsnap_fs="zfsraid2/shows zfsbak/movies"
daily_zfsnap_flags="-s -S"
daily_zfsnap_verbose="YES"
daily_zfsnap_delete_flags="-s -S"
daily_zfsnap_delete_verbose="YES"


daily_scrub_zfs_enable="YES"
daily_scrub_zfs_zroot_threshold="7"
daily_scrub_zfs_ssdmirror_threshold="7"
daily_scrub_zfs_zfsbak_threshold="30"
daily_scrub_zfs_usbenc_threshold="14"
daily_scrub_zfs_zfsraid2_threshold="30"

As stated in the email output, it told me to report the issue, so here I am :) I am running FreeBSD 10.1 with its associated ZFS version.

@kim0
Copy link

kim0 commented Aug 2, 2015

hi, I'm hitting this bug too, and it's not clear why. It's a scary error message, so can someone explain more what's happening .. Thanks!

@graudeejs
Copy link
Collaborator

Execute this and post output:

 zfSnap -zpool28fix -n -d -p 'hourly-' -p 'daily-' -p 'weekly-' -p 'monthly-' -p 'reboot-'

And then execute this and post output

sh -x /usr/local/sbin/zfSnap -zpool28fix -n -d -p 'hourly-' -p 'daily-' -p 'weekly-' -p 'monthly-' -p 'reboot-'

Note: I think you're missing -zpool28fix flag in daily_zfsnap_delete_flags. Not that it should cause this misbehavior, but still.

@kim0
Copy link

kim0 commented Aug 2, 2015

@graudeejs .. The first command returns nothing .. The second one returns http://fpaste.org/250760/

Thanks for helping!

@graudeejs
Copy link
Collaborator

Weird, 1st command should return list of zfs commands
Something like:

$ zfSnap -zpool28fix -n -d -p 'hourly-' -p 'daily-' -p 'weekly-' -p 'monthly-' -p 'reboot-'          
/sbin/zfs destroy d/FreeBSD/10r1p5_custom@2015-07-28_20.07.12--5d
/sbin/zfs destroy d/FreeBSD/current@2015-07-28_20.07.12--5d
/sbin/zfs destroy d/FreeBSD@2015-07-28_20.07.12--5d
/sbin/zfs destroy d/home/graudeejs/archive@2015-07-28_20.07.12--5d
/sbin/zfs destroy d/home/graudeejs/photo@2015-07-28_20.07.12--5d
/sbin/zfs destroy d/home/graudeejs/videos@2015-07-28_20.07.12--5d
/sbin/zfs destroy d/home/graudeejs@2015-07-28_20.07.12--5d
/sbin/zfs destroy d/home@2015-07-28_20.07.12--5d

@kim0
Copy link

kim0 commented Aug 2, 2015

I ran it like 5 times .. nothing at all

@graudeejs
Copy link
Collaborator

Try latest version from legacy branch, I added few lines in order to see what exactly caused an error.
17b1f38

Try with this one: https://raw.githubusercontent.com/zfsnap/zfsnap/17b1f389365a57f04448c0800cde327d47baa02e/zfSnap.sh

run:

./zfSnap.sh -zpool28fix -v -d -p 'hourly-' -p 'daily-' -p 'weekly-' -p 'monthly-' -p 'reboot-'

This will try to delete snapshot, and If you get that error, we should see why exactly.

@graudeejs
Copy link
Collaborator

Btw, @kim0, are you using FreeBSD as well?

@kim0
Copy link

kim0 commented Aug 2, 2015

@graudeejs Yes I'm on freebsd 10.1 ... I'll try that version next

@graudeejs
Copy link
Collaborator

@kim0, Any news?

@graudeejs
Copy link
Collaborator

Closing for now, since no new input has been provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants