Hello,

I'm trying to dig a bit deeper into https://github.com/openzfs/zfs/issues/11688 
. Briefly, moving to 2.0 causes a "Permanent errors have been detected in the 
following files:" during a snapshot/send workload (this happened twice).  I 
suspect I can reproduce this again by booting back into 5.10 with ZFS 2.0, but 
I don't want to do this recklessly. (I destroyed the snapshots before looking 
at them, unfortunately).

My first order of business is to try to replicate this in a VM---I want to copy 
my partition (which is 1 tb) to a qcow, and I'd like to get a sanity-check on 
my approach:

zpool snapshot mypool
qemu-nbd  --connect=/dev/nbd0 somefile.qcow
cp /dev/devforpool /dev/nbd0
zpool snapshot -d mypool

and then, within the vm:
zpool import  --rewind-to-checkpoint mypool

I feel like this should be very safe (and should work) but I'd appreciate 
knowing I'm not shooting myself in the foot.

Also, is there a way to, given a objset/object/level/blkid, get zdb to read out 
the block contents?

And finally, is it safe to use zdb -R on a mounted pool, or does that risk 
corrupting the pool?

Thanks,
Antonio Russo
------------------------------------------
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/T757cc84fc859f776-Me48f11aec330fc643824a8bc
Delivery options: https://openzfs.topicbox.com/groups/developer/subscription

Reply via email to