Re-added pool no longer in /mnt directory

Joined
Nov 13, 2018
Messages
5
Hello Forum,
Yesterday I wanted to upgrade the ram on my freenas system. After adding a 16GB ram stick, my raidz2 pool went missing all of the sudden (GUI displayed 'UNKNOWN').
This was even tough all disks were showing in both the bios & freenas gui. Tried removing the ram stick but pool was still unknown.

I eventually managed to get it back via, i think, this command.
Code:
zpool import POOL6X6TZ2

Problem now is that the pool is located in the root folder /POOL6X6TZ2 & not in /mnt/POOL6X6TZ2 any longer.
Since all SMB shares (must) point to /mnt/.. i can't access the data currently.

I haven't found any solution via google, thats why i'm asking you.
Running freenas version 11.3U5
 

Attachments

  • afbeelding_2021-01-23_223722.png
    afbeelding_2021-01-23_223722.png
    53.1 KB · Views: 212
  • afbeelding_2021-01-23_224329.png
    afbeelding_2021-01-23_224329.png
    7.1 KB · Views: 206

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
What does zpool get altroot POOL6X6TZ2 show? This should be set to "/mnt" instead of "/". However, this can only be set at import, so you may need to export and import your pool again.
 
Joined
Nov 13, 2018
Messages
5
attached the output.
So alternatively i do Export/Disconnect in the gui & add it again?
 

Attachments

  • afbeelding_2021-01-23_232242.png
    afbeelding_2021-01-23_232242.png
    5.3 KB · Views: 201

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Yes, the GUI import should correctly set the altroot property to /mnt. Remember to leave the "Erase disks" checkbox in the Export/Disconnect dialog unchecked.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
You should be importing your pool through the GUI. Then it will be mounted properly. This is not supposed to be done from the CLI.
 
Joined
Nov 13, 2018
Messages
5
Thank you very much for the help. All is fixed now. What i should have done was indeed export the 'unknown' pool & add it again. The import GUI didn't show the pool at the time it was still unknown (thats why i resorted to the cli).
Exporting the pool initially seemed to be stuck at 40% ('reconfiguring dataset'), however after 1h30m it finally completed.
 

douglasg14b

Dabbler
Joined
Nov 26, 2017
Messages
26
> You should be importing your pool through the GUI. Then it will be mounted properly. This is not supposed to be done from the CLI.

WHen the GUI doens't show the disks or info and you have to do this through the command line, how do you do it correctly so it shows up under /mnt...?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
> You should be importing your pool through the GUI. Then it will be mounted properly. This is not supposed to be done from the CLI.

WHen the GUI doens't show the disks or info and you have to do this through the command line, how do you do it correctly so it shows up under /mnt...?

zpool import -R /mnt <name of pool>
 
Top