Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 2020 12:04:46 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: replace disk in zpool - solved
Message-ID:  <e862058f-4806-11b5-0736-abedb0f88419@holgerdanske.com>
In-Reply-To: <c17ebdb0-8632-8102-2ff5-1b40b88111b2@chroot.pl>
References:  <d329c84a-8777-1eca-787c-dad9e0eae752@chroot.pl> <18a94704-5411-3b44-a525-2ae50121a467@holgerdanske.com> <f6297dfe-e0c4-12ef-523c-1944a9c735ff@chroot.pl> <4a8d409e-ecac-77c8-3ad9-025aefdfb4ef@holgerdanske.com> <20200325081814.GK35528@mithril.foucry.net> <bfdac41d-ec4c-a965-5aa9-fd2da46c21ee@chroot.pl> <e5a16974-cfaf-9f7f-a167-d73004c5d9d4@holgerdanske.com> <25828f1e-8a9c-6e05-aa62-eefc734ae412@chroot.pl> <07f3de58-b1ac-d1c1-e794-c455f13cc79c@holgerdanske.com> <c17ebdb0-8632-8102-2ff5-1b40b88111b2@chroot.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-04-14 08:09, Lukasz wrote:
> On 4/1/20 23:43, David Christensen wrote:
>> On 2020-04-01 11:13, Lukasz wrote:
>>> On 3/30/20 21:02, David Christensen wrote:
>>>> On 2020-03-30 11:06, Lukasz wrote:
>>>>> this behavior was due to errors in zpool.
>>>> Solved how?  Could you please expand upon errors in zpool and 
>>>> how you got past them?

>>> I restored corrupted files from backup.

>> That is something I would like to learn how to do on ZFS.  Could 
>> you please elaborate:
>> 
>> - How did you determine what files were corrupt?
>> 
>> - How do you perform backups?
>> 
>> - How did you restore the corrupted files?

> information about corrupted files is at the end of 'zpool status' 
> output. I perform backup by zfs snapshot and zfs send/recv 
> (incremental> snapshots) to an other server. Saying restore form
> backup I mean copy correct files from previous snapshot.

Okay.  I also backup ZFS filesystems via snapshots and incremental 
replication.


Looking at your previous post:

On 2020-03-24 14:15, Lukasz wrote:
 > # zpool status -v mypool

 > errors: Permanent errors have been detected in the following files:
 > 	mypool/XXXXXXXXXXXX


And this Oracle document:

https://docs.oracle.com/cd/E18752_01/html/819-5461/gbbwl.html#gbctx


So, the corruption in your ZFS pool was a file in a dataset that was not 
mounted (?).  Recovery consisted of mounting the dataset and using cp(1) 
to copy a non-corrupt version of the file to the path of the corrupt 
file (?).


David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e862058f-4806-11b5-0736-abedb0f88419>