Import pool configuration from .db file

wzhang

Cadet
Joined
Mar 3, 2024
Messages
6
Hi, I backed my pool configuration into a tar file externally before I upgraded to TrueNAS-13.0-U6.1. After the system finished the upgrade. I could not find the any existing pool by following: storage -> pool -> Add -> Import an existing pool -> no, continue with import -> pool* dropdown list. the dropdown list is empty

i opened the exported tar file and found the following contents:
pwenc_secret
freenas-v1.db
.\.\@PaxHeader
.\.\@PaxHeader

Can someone help me on how to import the configuration into my current pool setting?
Thanks
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
that wont help you.

on upgrade there should be no need to import your pool, it is supposed to be imported already. you cant import an already imported pool.
 

wzhang

Cadet
Joined
Mar 3, 2024
Messages
6
sorry, i am adding the info needed to meet rule requirements:
  • intel i7-3770 CPU@3.4GHz
  • 16GB RAM
  • 1709526384851.png

  • 1709526454402.png
  • I run the zpool status and following is the result:
1709526666043.png
 

wzhang

Cadet
Joined
Mar 3, 2024
Messages
6
i did zpool import and following is the result:
1709528939241.png

i checked and found that all my drives have been connected. do not know why it says unavailable.
any ideas?
 

wzhang

Cadet
Joined
Mar 3, 2024
Messages
6
I finally solved the issue by shutting down the system completely, reconnecting all drives, and then rebooting the system. Once the system was up, I rerun the command of "zpool import". this time it shows that the pool of "zhangDiskPool" is available for import! Then I imported it by "zpool import zhangDiskPool". After rebooting the system again, I was able to go thru the WebUI to import the zhangDiskPool since it showed up in the pool list! Thanks lot! I was afraid I would lose all my data!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You have a pool that consists of 3 mirrors and 3 non-mirrored disks.

Be aware that the loss of any one of the non-mirrored disks will render your pool unavailable (as was the case this time.
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
as sretalla notes, your pool is at risk. you essentially have a stripe pool.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Fortunately, since your pool consists of only single disks and mirrors, this problem can be corrected in either of two ways: (1) if your pool isn't too full (i.e., if the mirrors alone have enough capacity for all your data, keeping the 80% rule in mind), you can just remove the three single disks from your pool; or (2) you can add three more disks as mirrors of the three single disks currently in your pool. You could get fancy and combine these, e.g., by removing two of the single disks and then adding one of them back as a mirror of the remaining single disk.

But you really should do something; if one of those three disks dies, you'll lose all the data in your pool.
 
Top