Pool Offline Help Please

maviler

Cadet
Joined
Jun 4, 2020
Messages
7
Hi there
Thank you for reading this.

I have freenas with 4 external 1tb USB drives set up, and the pool was working well. I then had a power cut upon restart the pool went offline line and shows no drives. Also 1 of the drives have failed. it was set up as a raid.

If any one can help, it would be appreciated.

Many Thanks
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,398
Did you have any of the external USB drives and adapters on UPS? Most likely, these are casualties of the power bump, and are preventing communications between the drives and FreeNAS.

Using externally attached USB disks to form a pool is a very bad idea, and you've unfortunately experienced why. Worst case, your pool is lost, as you said this was a RAIDZ1, and 1 drive is already lost. If a 2nd drive is also lost, then rebuilding the pool from parity is impossible, and you've lost your pool.
 

maviler

Cadet
Joined
Jun 4, 2020
Messages
7
Hi Samuel

Thanks for taking the time.

No UPS, I am afraid.

How would i go about rebuilding. Do i add the 3 remaining disks to the pool? or is there a another method.

Thanks
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
If you share the output from zpool status -v we can help you to see where it's at.
 

maviler

Cadet
Joined
Jun 4, 2020
Messages
7
Hi mate so I had 2 pools, the pool called Mirrored-2tb is good. The other one is offline, the 3 external drives are plugged in and are visable in the drives section but come up as not assigned.

root@freenas[~]# zpool status -v
pool: Mirrored-2tb
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:11 with 0 errors on Thu Jun 4 14:04:47 2020
config:

NAME STATE READ WRITE CKSUM
Mirrored-2tb ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gptid/bff0059f-8936-11ea-8e49-f4ce46f1eb8f ONLINE 0 0 0
gptid/c029e838-8936-11ea-8e49-f4ce46f1eb8f ONLINE 0 0 0

errors: No known data errors

pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:14 with 0 errors on Mon May 25 03:45:14 2020
config:

NAME STATE READ WRITE CKSUM
freenas-b


Thanks
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,398
Try running gpart show on each of the unassigned disks. Their GPT partition tables may simply have been lost.
 

maviler

Cadet
Joined
Jun 4, 2020
Messages
7
Thanks this is the result


Warning: settings changed through the CLI are not written to
the configuration database and will be reset on reboot.

root@freenas[~]# gpart show
=> 40 976773088 ada0 GPT (466G)
40 1024 1 freebsd-boot (512K)
1064 33554432 3 freebsd-swap (16G)
33555496 943194112 2 freebsd-zfs (450G)
976749608 23520 - free - (11M)

=> 40 3907029088 ada1 GPT (1.8T)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834696 2 freebsd-zfs (1.8T)

=> 40 3907029088 ada2 GPT (1.8T)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834696 2 freebsd-zfs (1.8T)

=> 40 1953525088 ada3 GPT (932G)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 1949330696 2 freebsd-zfs (930G)

=> 40 1953525088 da0 GPT (932G)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 1949330696 2 freebsd-zfs (930G)

=> 40 1953525088 da1 GPT (932G)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)

Not sure where to go from here?

Thanks
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,398
No, that only lists the disks that are online. Run gpart show <disk identifier> individually for each of the disks that are unassigned.
 

maviler

Cadet
Joined
Jun 4, 2020
Messages
7
Ok here are the 3 working drives

root@freenas[~]# gpart show da0
=> 40 1953525088 da0 GPT (932G)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 1949330696 2 freebsd-zfs (930G)

root@freenas[~]# gpart show da1
=> 40 1953525088 da1 GPT (932G)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 1949330696 2 freebsd-zfs (930G)

=> 40 1953525088 da2 GPT (932G)
40 88 - free - (44K)
128 4194304 1 freebsd-swap (2.0G)
4194432 1949330696 2 freebsd-zfs (930G)

Thanks
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,398
This thread on recovering vdevs may help.
 

maviler

Cadet
Joined
Jun 4, 2020
Messages
7
Thanks for your help, I am very new to freenas how would apply this to my situation?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,398
OK, please run zdb -eC freenas-b. This should list what the pool looked like before the power bump.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,398
Unfortunately, there's nothing left to try. Sorry.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
OK, please run zdb -eC freenas-b. This should list what the pool looked like before the power bump.
Interesting that when I ran it, I get the same no such file or directory... so I ran it with no switches and saw that I probably wanted freenas-boot rather than freenas-b

which gives me:
zdb: can't open 'freenas-boot': File exists

Never seen that kind of error before... is it trying to read or write a file? Seems it complains that a file is there and also that a file is not there...
 

CraigD

Patron
Joined
Mar 8, 2016
Messages
343
Have you tried shucking your USB drives, then plugging then in with SATA power and data cables? (Like what you should have done to start with)
 
Top