*New 11.3 series Release:
2019-10-05: XigmaNAS 11.3.0.4.6928 - released, 11.2 series are soon unsupported!

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - 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

undefined zpool state after upgrade to full install - PLEASE HELP

For "upgrading" from FreeNAS/NAS4Free Legacy to XigmaNAS and upgrading XigmaNAS to newer builds.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
birnbacs
Starter
Starter
Posts: 22
Joined: 04 Oct 2018 19:04
Status: Offline

undefined zpool state after upgrade to full install - PLEASE HELP

#1

Post by birnbacs » 01 Nov 2018 13:06

I upgraded my XigmaNAS from USB-based to a full ZFS-based installation, chosing a new SSD for that purpose.
The system is mainly serving files via SMB.

After rebooting and uploading the old configuration, I had to create mountpoints (/mnt/...) so the datasets could be mounted.
After another reboot the datasets are there and writable through SMB but ***ALL CONTENT IS GONE***

The storage pool (moonpool) is of "unknown" health in the console.
I cannot create a new pool because the necessary vdevs are still used by the old pool
I cannot destroy the old pool because it does not exist
Neither can I create or delete a dataset, for the same reason.

Code: Select all

#zfs destroy -f 'moonpool/data'
cannot open 'moonpool/data': dataset does not exist
#zpool destroy 'moonpool'
cannot open 'moonpool': no such pool
#zfs list
NAME                         USED  AVAIL  REFER  MOUNTPOINT
zroot                        437M  99.4G    88K  /zroot
zroot/ROOT                   436M  99.4G    88K  none
zroot/ROOT/default-install   435M  99.4G   435M  /
zroot/tmp                    120K  99.4G   120K  /tmp
zroot/var                    536K  99.4G   536K  /var
Ideas, anybody?


update: I reverted to the USB installation and was very happy to see that my data is back.
Still, how do I go about upgrading the right way?

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1153
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: undefined zpool state after upgrade to full install - PLEASE HELP

#2

Post by JoseMR » 14 Nov 2018 06:16

birnbacs wrote:
01 Nov 2018 13:06
I upgraded my XigmaNAS from USB-based to a full ZFS-based installation, chosing a new SSD for that purpose.
The system is mainly serving files via SMB.

After rebooting and uploading the old configuration, I had to create mountpoints (/mnt/...) so the datasets could be mounted.
After another reboot the datasets are there and writable through SMB but ***ALL CONTENT IS GONE***

The storage pool (moonpool) is of "unknown" health in the console.
I cannot create a new pool because the necessary vdevs are still used by the old pool
I cannot destroy the old pool because it does not exist
Neither can I create or delete a dataset, for the same reason.

Code: Select all

#zfs destroy -f 'moonpool/data'
cannot open 'moonpool/data': dataset does not exist
#zpool destroy 'moonpool'
cannot open 'moonpool': no such pool
#zfs list
NAME                         USED  AVAIL  REFER  MOUNTPOINT
zroot                        437M  99.4G    88K  /zroot
zroot/ROOT                   436M  99.4G    88K  none
zroot/ROOT/default-install   435M  99.4G   435M  /
zroot/tmp                    120K  99.4G   120K  /tmp
zroot/var                    536K  99.4G   536K  /var
Ideas, anybody?


update: I reverted to the USB installation and was very happy to see that my data is back.
Still, how do I go about upgrading the right way?

Sorry for the late reply, after new Full Platforms installs, your ZFS pools will not be auto imported by default, the user must synchronize/import the pool(s), usually a "zpool import -a" can do the trick, this is default behavior for Full Platforms(as well as for FreeBSD), after that either the WebnGUI and/or the zpool.cache will be updated and be aware of your pools on reboots.

I could add a run-once ZFS pool imports(based on was specified on config.xml) for new Full Platforms installs/re-installs, but I find this a bit counter intuitive, though it may be ok once config.xml imported. :idea:

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
Addons at GitHub
JoseMRPubServ
Boot Environments Intro

birnbacs
Starter
Starter
Posts: 22
Joined: 04 Oct 2018 19:04
Status: Offline

Re: undefined zpool state after upgrade to full install - PLEASE HELP

#3

Post by birnbacs » 14 Nov 2018 07:33

Never mind the timing, your reply is much appreciated :-)

Looking around on the half-dead system I came across volumne import but I could not use it from the GUI. Later I was wondering if I should export the volumes before bootingand import them afterwards. I will try on and post my results.

IMO a simple message after a full install that there might be volumes that need importing would be helpful enough.

birnbacs
Starter
Starter
Posts: 22
Joined: 04 Oct 2018 19:04
Status: Offline

Re: undefined zpool state after upgrade to full install - PLEASE HELP

#4

Post by birnbacs » 23 Nov 2018 19:07

OK, sorry this took ages but it's a live system and I am quite busy using it. I got it to work fairly easily after all:
* shut down the machine
* pull the USB stick with the embedded OS
* reboot via SSD
* log in via SSH as root
* typed
zpool import -f <poolname>
* and it's all rainbows and unicorns :-)

I decided not to go for an official export of the pool before rebooting, kept this as a last resort. Could not find the export button in the Web UI either.

CheshireCat
NewUser
NewUser
Posts: 11
Joined: 02 Mar 2013 16:12
Location: Cheshire, UK
Status: Offline

Re: undefined zpool state after upgrade to full install - PLEASE HELP

#5

Post by CheshireCat » 25 Nov 2018 18:43

To find the export button:
Disks > ZFS > Pools > Tools
then select "export pool..." and click Next
Good luck!
NAS4Free 11.2.0.4.6195
HP Microserver N40L 1.5GHz
8GB ECC RAM
2*4TB WD Red as ZFS mirror; 2*6TB WD Red as ZFS mirror
Intel NIC

Post Reply

Return to “Upgrade XigmaNAS”