Recover Data drive mounted as parity.


Recommended Posts

Hi, 

 

I've been helping a friend get an unraid box going over the last year. This week, we were doing some maintenance, updates and what-not. 

There were 2 Flash drives needed to keep the server happy? 1 seemed to have the key, the other the config? Not sure what happened there but, while consolidating the correct key to the correct drive, the incorrect config was loaded and the array started by accident.

 

Its a 2x 4tb drive ZFS array with no parity.

a 1tb NVME cache drive formatted ZFS.

 

Disk 1 had about 1tb of data on it (nothing critical)

 

The incorrect config set disk 1 as a parity drive. It started, was immediately noticed and shutdown. 

 

Correct config was reloaded and disk 1 now reads 'unsupported, missing or invalid file system'. With no dockers or VM's (although they appear to be on the cache drive). 

 

The Data on the drive is very replaceable, but if there is a possibility to recover the now blank unraid to where we were it would be desirable.

 

Diagnostics attached. 

 

Thank you, 

 

 

tower-diagnostics-20240328-1805.zip.crdownload

Link to comment

root@Tower:~# zpool import
   pool: disk2
     id: 3778156303258639302
  state: UNAVAIL
status: One or more devices contains corrupted data.
 action: The pool cannot be imported due to damaged devices or data.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-5E
 config:

        disk2       UNAVAIL  insufficient replicas
          md1p1     UNAVAIL

   pool: nvme-cache
     id: 9499952707851697450
  state: ONLINE
 action: The pool can be imported using its name or numeric identifier.
 config:

        nvme-cache   ONLINE
          nvme0n1p1  ONLINE

Link to comment
Just now, shtnarg said:

are both drives (the entire pool)

If I understood correctly both devices were assigned to the array, in the array, each device is a separate filesystem, you only need that one.

 

P.S. based on the pool name that disk was initially disk2, not disk1.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.