Disk offline and no pool after a reboot on shutdown

Gianluca

Dabbler
Joined
Jan 2, 2014
Messages
13
Currently using 11.3-U5. There was a power failure and the system had shut down inadvertently. When the system shutted down should not be in use the disk.
Upon restart, the pools does not work any more. I have this two alert:


Pool Disk state is OFFLINE: None.
Sun, 17 Jan 2021 02:19:47 AM (Europe/Rome)

That I think is the problem I faced. I already try:

Go to menu >> Storage > Pools : It's completely empty
Go to menu >> Storage > Disks: I can see two disk (the USB one on it it's installed Freenas and the storage one)
Go to menu >> Storage > Import Disk : With all the option it give me always errors
Go to shell:

FreeNAS+-+192.168.42+2021-01-18+at+8.41.06+AM.12+-+Google+Chrome.png


and

FreeNAS+-+192.168.42+2021-01-18+at+8.44.24+AM.12+-+Google+Chrome.png


I'm quite desperate, how can I solve it? The data inside is quite important but not fundamental the configuration is the most important things. How can I solve?
Thanks for the help
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Import Disk : With all the option it give me always errors
This is not the right option. Importing a disk is to get data from a disk that isn't ZFS and copy it to an existing pool.

You may have success with:
zpool import -f Disk

You have chosen a name for your pool that is making it complicated for you to understand ZFA terminology.

Good luck with the import attempt.

Given the message about metadata corruption, you may find that your pool is unable to import in the current state, in which case you may find more success with -F (which can discard the last few changes in order to recover the pool... but can drop some of your data in doing that).
 

Gianluca

Dabbler
Joined
Jan 2, 2014
Messages
13
This is not the right option. Importing a disk is to get data from a disk that isn't ZFS and copy it to an existing pool.

You may have success with:
zpool import -f Disk

You have chosen a name for your pool that is making it complicated for you to understand ZFA terminology.

Good luck with the import attempt.

Given the message about metadata corruption, you may find that your pool is unable to import in the current state, in which case you may find more success with -F (which can discard the last few changes in order to recover the pool... but can drop some of your data in doing that).
First, thanks for your answer. I try to set the command as suggested with no success. Look here:

FreeNAS+-+192.168.42+2021-01-18+at+12.23.43+PM.12+-+Google+Chrome.png


What can I do? The data is not so important but all the configuration (access and so on) it's quite important... At the end of the day if is not possible to restore the disk I can delete it but I need to mantain the pool and the information in it...how can I solve?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
OK, so there's some kind of problem with the disk... are you able to get some output from
camcontrol devlist
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
And glabel status?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I'm trying to work out which disk is underneath that pool and see if we can get a smartctl -a run on it.

Can you detail your hardware a bit more?

It seems you have a backplane between the system and the pool disk... what kind of case do you have?

What kind of disk controller?

let's try the smartctl:
smartctl -a /dev/mfid0
 

Gianluca

Dabbler
Joined
Jan 2, 2014
Messages
13
I'm trying to work out which disk is underneath that pool and see if we can get a smartctl -a run on it.

Can you detail your hardware a bit more?

It seems you have a backplane between the system and the pool disk... what kind of case do you have?

What kind of disk controller?

let's try the smartctl:
smartctl -a /dev/mfid0
So I installed FreeNas on an old DELL server that is a PowerEdge 1950. I had two SATA disk of 1 Tb each and there is a RAID controller behind them. I should have put everything in RAID 0 infact on FreeNas I see this:

FreeNAS+-+192.168.42+2021-01-18+at+2.38.00+PM.12+-+Google+Chrome.png


I try to put your command. Here it is the result

FreeNAS+-+192.168.42+2021-01-18+at+2.38.48+PM.12+-+Google+Chrome.png
 

Tony-1971

Contributor
Joined
Oct 1, 2016
Messages
147
Hi Gianluca,

It is a bad idea to usa RAID controller on FreeNAS. FreeNAS works better if it has direct access to HDD.
See for example https://www.freenas.org/hardware-requirements/

With two disk you can do a mirror so if one disk is broken FreeNAS can still rebuild your pool (without losing any data).

Best Regards,
Antonio
 

Gianluca

Dabbler
Joined
Jan 2, 2014
Messages
13
Hi Antonio,
thanks for the information and if I will make a new nas i use direct access to disk (anyway if the hardware permit it). Now how can I solve this problem?
 

Tony-1971

Contributor
Joined
Oct 1, 2016
Messages
147
Hi Gianluca,

Not sure if it can be solved.
If I undestand well you have 2 hdd and the raid controller use them in RAID 0. Then this single "disk" is use on FreeNAS as one single disk.

The RAID controller see both disk and both are working well?

If the RAID controller tell that one disk failed, then I don't think that can be resolved.

Best Regards,
Antonio
 

Gianluca

Dabbler
Joined
Jan 2, 2014
Messages
13
You understand well.
The Raid controller tell me that both are working well so the problem seems to be only on FreeNas.
For me is ok if I lost all the data but keep the configuration and partition...
 

Tony-1971

Contributor
Joined
Oct 1, 2016
Messages
147
The TrueNAS configuration can be saved and restored: see menu "System / General" (but I have never tried it).

About partition: if you destroy and then create a new pool, then I think that all dataset, zvol and data (if you mean this) are lost and you have to manually recreate them.

Best Regards,
Antonio
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
all the configuration (access and so on)
I think you mean permissions and file structure?

Unfortunately, they are stored in the same ZFS filesystems as the data, so you either lose both or neither. In this case, I suspect you will lose both.
 

Gianluca

Dabbler
Joined
Jan 2, 2014
Messages
13
I think you mean permissions and file structure?

Unfortunately, they are stored in the same ZFS filesystems as the data, so you either lose both or neither. In this case, I suspect you will lose both.
Ok, I understand. Now if I can't do anything other I'm ready to loose everything and rebuild all the configuration. So what I have to do for delete existing disk and restart from scratch?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
So what I have to do for delete existing disk and restart from scratch?
OK, so you will need to consider if you're using the right hardware or are prepared to take the risk with what you have. Read this first: https://www.truenas.com/community/t...s-and-why-cant-i-use-a-raid-controller.81931/

If you're prepared to live with the risk of losing your data again, then you would start by using your RAID card interface to break the stripe/RAID0 and present those disks as RAW/legacy/direct (depends very much on the card as to what options you have actually... principle being you don't want to present the disks as anything other than individual disks).

Assuming that goes fine, you then create your pool with them in FreeNAS. https://www.ixsystems.com/documentation/freenas/11.3-U5/storage.html#creating-pools
 

dslewiston

Cadet
Joined
Jun 13, 2022
Messages
9
Not sure if it is relevant or not but I just had this issue on a TrueNAS-SCALE-22.02.2.1 deployment. I rebooted the system and when it returned it failed to initialize the pool and the apps were not running. I ran "zpool import -f Disk" and the pool started and was fine but the apps were still not loading.

I noticed that under the services, the SMB service was not started even though it was checked to automatically start. Now this was the only real change I had made so I unchecked it and rebooted my system and everything came back as normal. I suspect that something in the load order is happening to fast where the SMB is trying to load the pool share and maybe the pool isn't ready yet so everything freezes and crashes.
 

neofusion

Contributor
Joined
Apr 2, 2022
Messages
159
Not sure if it is relevant or not but I just had this issue on a TrueNAS-SCALE-22.02.2.1 deployment. I rebooted the system and when it returned it failed to initialize the pool and the apps were not running. I ran "zpool import -f Disk" and the pool started and was fine but the apps were still not loading.

I noticed that under the services, the SMB service was not started even though it was checked to automatically start. Now this was the only real change I had made so I unchecked it and rebooted my system and everything came back as normal. I suspect that something in the load order is happening to fast where the SMB is trying to load the pool share and maybe the pool isn't ready yet so everything freezes and crashes.
Your problem sounds different. The OP had two disks in a HW Raid 0 and then ran into I/O problems.
If you are also running a Raid 0 setup that hasn't failed yet I suggest you immediately make a copy and rethink your storage setup.
 
Top