*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Bad USB drive (Solved)

Problems, solutions, software
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
t_knightt
NewUser
NewUser
Posts: 10
Joined: 18 Dec 2017 00:22
Status: Offline

Bad USB drive (Solved)

#1

Post by t_knightt » 18 Dec 2017 00:39

First off let may say thank you anyone who will try to help.

I build a Nas4Free server with my brother. It consists of 8x 1TB drives in one pool (one of the drives serving as parity check) as well as a additional 250gb drive that back-up up daily the sensitive data.

Now here's my problem, My USB drive went dead, but not completely, it just doesn't boot anymore but still functions. I formated a new USB device but unfoirtunately I did not keep a backup of the config file (I know....).

Not here's my question, since the old USB device is still fonctioning, is it possible to access the data on it to retrieve the config file ?

I'm a newbie, my brother did most of the work but is not available anymore.

I suspect there's a way to "mount" the drive but I don't want to mess anything up as all of my sensitive data is on this server.

Please help
Last edited by t_knightt on 22 Dec 2017 15:00, edited 1 time in total.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4949
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Bad USB drive

#2

Post by raulfg3 » 18 Dec 2017 09:04

no need to restore config ( is more easy but not inprescindible).

step to recover your NAS:
1 - Do a new fresh install on a new USB ( this is done, isn't it?).
2 - configure IP, and paswword & users
3 - import your Disk (clear config & import your disk).
4 - Recover your pool (import your pool , from webGUI or fron CLI : zpool import yourpoolname)
5 - Sync WebGUI with your recently imported Pool , Go To ZFS _ Config -> Synchronize and sync.
6 - Done, at this point your data are back and only need to configure all the services by hand (SAMBA, DLNA, ....).

If still wants to recover your config.xml, mount your old USB and find it on /cf/conf/config.xml ).


PD: Simmilar thread: https://www.nas4free.org/forums/viewtop ... xml#p79833
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

t_knightt
NewUser
NewUser
Posts: 10
Joined: 18 Dec 2017 00:22
Status: Offline

Re: Bad USB drive

#3

Post by t_knightt » 18 Dec 2017 13:54

I will definitely try your first approach this evening.

If that doesn't work I will try and find how to mount the old usb drive.

t_knightt
NewUser
NewUser
Posts: 10
Joined: 18 Dec 2017 00:22
Status: Offline

Re: Bad USB drive

#4

Post by t_knightt » 19 Dec 2017 01:55

I was able to retrieve an old configuration file, but for some reason my NAS1 still does not show up.

synchronise returns a "nothing to synchronise" message

my primary objective if to be able to acces the stripe drive

here is a screenshot
https://drive.google.com/open?id=1ScoPL ... lQFay9hTv6

hope someone can help will pay if need be
You do not have the required permissions to view the files attached to this post.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4949
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Bad USB drive

#5

Post by raulfg3 » 19 Dec 2017 07:38

t_knightt wrote:
19 Dec 2017 01:55
synchronise returns a "nothing to synchronise" message
You need to import your pool first so is "Detected" prior to syncrhonize.

you can import from Shelll :

Code: Select all

zpool import NAS1

Code: Select all

zpool import BACKUP
use -f if first time fail eg:

Code: Select all

zpool import -f NAS1

once imported, must appear on Disk | ZFS | Configuration | Detected.

and at this point is when you can sync Detected with webGUI (Current)
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

t_knightt
NewUser
NewUser
Posts: 10
Joined: 18 Dec 2017 00:22
Status: Offline

Re: Bad USB drive

#6

Post by t_knightt » 20 Dec 2017 00:04

I believe I am getting to the root of my problem.

when i try and import the poolsas indicated above with putty, I get "pool is formatted using a newer ZFS version"

Now I have been able to recover my config file from my old USB drive.

I had downloaded a nas4free image to burn onto a CD however I suspect it's the wrong version.

is there a way to identify the ZFS version from the config file and download the appropriate nas4free image file ? (https://drive.google.com/open?id=1LhQNO ... 49HmWO8pYl)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4949
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Bad USB drive

#7

Post by raulfg3 » 20 Dec 2017 07:26

ZFS is retro compatible, so you do not need to install appropiate image file, you can import your pool from your latest N4F install, simply use the "-f" switch to "force" import.

once imported , please post zpool status to see warnings.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

t_knightt
NewUser
NewUser
Posts: 10
Joined: 18 Dec 2017 00:22
Status: Offline

Re: Bad USB drive

#8

Post by t_knightt » 21 Dec 2017 03:28

Ok turns out ZFS is not backward compatible. I tried forcing pool import but got the same error message.

I was however able to find the original Nas4free version and everything boots up and have acces to my data.

Now the only config file I was able to recover was one before I had a hardrive fail (last month).

So my main pool "NAS1" is degraded as you can see one disk cannot be found.

what's they best way to re-assign the disk to the new disk without screwing everything up
You do not have the required permissions to view the files attached to this post.

t_knightt
NewUser
NewUser
Posts: 10
Joined: 18 Dec 2017 00:22
Status: Offline

Re: Bad USB drive

#9

Post by t_knightt » 21 Dec 2017 04:27

is it possible I need to reformat the replaced drive so it can be swapped in the degraded NAS1 pool ?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4949
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Bad USB drive

#10

Post by raulfg3 » 21 Dec 2017 07:07

only need to push the button "Clean Config & Import Disk", after this go to ZFS Configuration Synchronice and Sync webGUI.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

t_knightt
NewUser
NewUser
Posts: 10
Joined: 18 Dec 2017 00:22
Status: Offline

Re: Bad USB drive

#11

Post by t_knightt » 22 Dec 2017 01:19

Your ZFS system is not healthy. It is not recommanded to import non healthy pools nor virtual devices that are part of a non healthy pool.

for some reason it's still trying to find the previous HDD.

See screen shot of the error message, it still says pool is unhealthy even after clear and import discs.
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Data recovery and backups”