Jump to content

ZPool Not Importing One Drive Unavailable

Over a year ago my home server's boot drives failed and since then I haven't gotten to setting it back up or recovering that data (busy with school). I now finally have some time on my hands and was trying to import the zpool from the old server on a new computer. One of the four drives I had in the zpool seems to have failed, how can I recover the data from this pool? or is it gone?

 

 

$ sudo zpool import

pool: Storage
     id: 9852532683918131691
  state: FAULTED
status: The pool was last accessed by another system.
 action: The pool cannot be imported due to damaged devices or data.
	The pool may be active on another system, but can be imported using
	the '-f' flag.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY
 config:

	Storage                              	 FAULTED  corrupted data
	 raidz1-0                                DEGRADED
	   c0b73961-6484-4bba-937c-17b861467448  ONLINE
	   d9e047e6-efe4-492c-96c1-94912d1c824d  ONLINE
	   8c3fff5f-c9a8-40c8-8e09-fac69e7dff2c  UNAVAIL
	   299a799c-4d57-44c0-ab01-26a4b9699598  ONLINE

 

$ sudo zpool import -fF Storage

cannot import 'Storage': I/O error
	Destroy and re-create the pool from
	a backup source.

 

Link to comment
Share on other sites

Link to post
Share on other sites

Do all the drives appear to the system?

 

I'd probably try making a image of all the drives, and importing from the images.

Link to comment
Share on other sites

Link to post
Share on other sites

9 hours ago, Electronics Wizardy said:

Do all the drives appear to the system?

No idea why I didn't check this already. All drives appear, but not as they should. All the drives are 500gb and have a gpt partition table, except one of them is reporting 1.82TiB and seems to have been reformatted with a dos partition table as well as not reporting the correct model. From this I'm assuming that the drive has broken or been reformatted, or both.

Because this is still a raidz array, I should be able to get my data with one missing drive right? how would I go about this?

Link to comment
Share on other sites

Link to post
Share on other sites

On 3/19/2024 at 6:23 AM, archiso said:

Because this is still a raidz array, I should be able to get my data with one missing drive right? how would I go about this?

Disclaimer: while I do use ZFS with Raid Z, I have not had to troubleshoot dead drives yet. This is probably a very bad idea and could result in data loss.

 

You could remove the weirdly formatted drive so ZFS thinks that it has failed, instead of just being in a weird state..? My guess is it's maybe trying to read from the drive and getting nothing, but it doesn't recognize that as a failure. Not sure if it would work or not. See disclaimer above.

elephants

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×