NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/57081: ZFS pool rolled back two years, all data lost since.



The following reply was made to PR kern/57081; it has been noted by GNATS.

From: Roy Marples <roy%marples.name@localhost>
To: Taylor R Campbell <riastradh%NetBSD.org@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: kern/57081: ZFS pool rolled back two years, all data lost since.
Date: Fri, 11 Nov 2022 14:11:03 +0000

 On 11/11/2022 10:29, Taylor R Campbell wrote:
 > <vdev> here should be `/dev/rdk5', judging by your description.
 
 That's wrong! But it's also correct.
 
 The problem, as usual, is between the chair and the keyboard.
 Thanks to me not reading src/UPDATING I didn't update the bootloader so the 
 system didn't load the ZFS modules.
 Upon thinking maybe the ramdisk needed updating I rebuilt that with the latest 
 but forgot to rename the zpool so it booted the wrong disk! This was a disk from 
 my old dev machine which I had installed but unused still.
 
 Totally confused me.
 
 I would like to solve this so it doens't happen again.
 I'm sure I mentioned it before, but I need the bootloader to set a kernel string 
 - something like kern.bootopts and is set so:
 
 :rndseed /var/db/entropy-file;bootopts="POOL=mypool;ROOT=thisroot";boot
 
 Then the ramdisk knows which pool and root to try to import without any code 
 changes to the ramdisk.
 
 Anyway, you don't know how glad I am to have my data back :)
 
 Thanks!
 
 Roy
 


Home | Main Index | Thread Index | Old Index