From: John Blinka <john.blinka@gmail.com>
To: "gentoo-user@lists.gentoo.org" <gentoo-user@lists.gentoo.org>
Subject: Re: [RESOLVED] [gentoo-user] zfs repair needed (due to fingers being faster than brain)
Date: Tue, 2 Mar 2021 12:13:49 -0500 [thread overview]
Message-ID: <CAC_tCmqO0JxZyutHi5jb=Jtwj-2y-nK5uq8sYkZST1g4WyjmkA@mail.gmail.com> (raw)
In-Reply-To: <7407510.jJDZkT8p0M@robert-notebook>
[-- Attachment #1: Type: text/plain, Size: 1323 bytes --]
To all who replied to my distress signal,
The repair turned out to be pretty painless. In two ways:
First, getting quality advice from all of you sans the roasting I deserved
;), and
Second, gdisk fixed the gpt header and partition table easily (details
below). After that, I rebooted, zfs recognized the disk, and then it
started a resilver automatically. It was done a few minutes later, and now
everything’s back to normal.
Gdisk noted that both the main gpt header and main partition table were
damaged, but the backups were ok. I bypassed gdisk’s offer to use either
the current gpt or to create a blank gpt, because I didn’t understand
exactly what “current” or “blank” meant.
Instead, I invoked the recovery & transformation menu with “r”. Then I
used “b” to rebuild the damaged main gpt header with the good backup,
followed by “c” to restore the partition table from the good backup. I
then printed the partition table. It looked exactly like the partition
tables on the other disks of the same make and model in the zfs pool
(modulo what looked like a unique zfs partition name). That made me
comfortable, so I wrote the changes to disk, rebooted, and found everything
back to normal after the resilver.
Appreciate all the help. Thanks!
John
[-- Attachment #2: Type: text/html, Size: 1652 bytes --]
next prev parent reply other threads:[~2021-03-02 17:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 22:25 [gentoo-user] zfs repair needed (due to fingers being faster than brain) John Blinka
2021-03-02 1:15 ` antlists
2021-03-02 2:30 ` Grant Taylor
[not found] ` <7407510.jJDZkT8p0M@robert-notebook>
2021-03-02 17:13 ` John Blinka [this message]
2021-03-02 18:15 ` [RESOLVED] " Dale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAC_tCmqO0JxZyutHi5jb=Jtwj-2y-nK5uq8sYkZST1g4WyjmkA@mail.gmail.com' \
--to=john.blinka@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox