Upgrade to 11.2 from 9.10 failed... reverted... got 10.2... lost pools...

Status
Not open for further replies.
Joined
Oct 30, 2015
Messages
7
Hi -

I've been running this freeNAS box since 2014 and it's been awesome!

This morning, I decided to upgrade from 9.10 and got 11.2-BETA1 (from the stable branch) installed. I upgraded b/c my jails (applications) have been locking up at night requiring a plugin reset daily.

Anyway, after the upgrade completed, I no longer had gui-access to my jails or my installed plugins. I decided to revert back and selected the 9.10 STABLE branch... and got 10.3STABLE... without any ZFS pools mounted... (I have two.) I also have an ngnix error so the gui is no longer available.

Can someone please explain, or point me at a resource, that carefully and patiently explains how to re-mount the existing pools?

Other questions:

Can I downgrade to 9.10 from the command line -- would doing so automagically recover my pools?

Thanks for any help - yes, I'm pretty much a noob with FreeNAS -- it's always worked so well, I've never had to do anything more complex than gui level stuffs so please make no assumptions about what I know. ;)

Thanks!

--mike


Code:

root@deepThought:/boot# ssh -C mshallop@chunkymonkey
mshallop@chunkymonkey's password: 
FreeBSD 10.3-STABLE (FreeNAS.amd64) #0 r295946+21897e6695f(HEAD): Tue Jul 25 00:03:12 UTC 2017

	FreeNAS (c) 2009-2016, The FreeNAS Development Team
	All rights reserved.
	FreeNAS is released under the modified BSD license.

	For more information, documentation, help or support, go here:
	http://freenas.org
chunkyMonkey is storing your stuffs!
Could not chdir to home directory /mnt/cmv1/mshallop: No such file or directory
[mshallop@chunkyMonkey /]$ df -h 
Filesystem					   Size	Used   Avail Capacity  Mounted on
freenas-boot/ROOT/9.10.2-U6-1	 84G	1.5G	 83G	 2%	/
devfs							1.0K	1.0K	  0B   100%	/dev
tmpfs							 32M	8.8M	 23M	28%	/etc
tmpfs							4.0M	8.0K	4.0M	 0%	/mnt
tmpfs							5.0G	130M	4.8G	 3%	/var
[mshallop@chunkyMonkey /]$ cd /data
[root@chunkyMonkey] /data# ls -l
total 11302
drwxr-xr-x   8 www   www			 19 Jul 25 08:08 ./
drwxr-xr-x  19 root  wheel		   29 Jul 25 08:08 ../
drwxrwxr-x   2 root  wheel			2 Apr 18  2014 .snap/
-rw-r--r--   1 root  wheel		   47 Dec  6  2014 0005.run_update.sh.log
drwxrwxr-x   2 root  wheel			2 Apr 18  2014 crash/
-rw-r--r--   1 root  wheel		  424 Dec  9  2014 dhparam.pem
-rw-r--r--   1 root  wheel		  245 Oct 29  2015 dhparam1024.pem
-rw-r-----   1 root  wheel	   230400 Apr 18  2014 factory-v1.db
-rw-r-----   1 root  operator	406528 Jul 25 08:08 freenas-v1.db
-rw-r-----   1 root  wheel	   296960 Dec 12  2014 freenas-v1.db.bak
-rw-r--r--   1 root  www			100 Jul 25 08:08 fstab.swap
-rw-r--r--   1 root  wheel		 2360 Jul 25 07:53 manifest
drwxr-xr-x   2 root  wheel			3 Jul 25 07:53 pkgdb/
-rw-------   1 root  wheel		   32 Dec  9  2014 pwenc_secret
-rw-r--r--   1 root  wheel	 10121826 Jul 25 08:00 rrd_dir.tar.bz2
drwxr-xr-x   3 root  wheel			5 Jul 25 07:29 sentinels/
drwxr-xr-x   2 root  wheel			4 Apr 18  2014 ssh/
-rw-r--r--   1 root  www		   1379 Jul 25 07:55 update.failed
drwxr-xr-x   2 root  wheel			4 Jul 25 08:08 zfs/

[root@chunkyMonkey] /data# zfs list
NAME														 USED  AVAIL  REFER  MOUNTPOINT
freenas-boot												24.8G  82.7G   144K  none
freenas-boot/ROOT										   24.4G  82.7G   144K  none
freenas-boot/ROOT/11.2-BETA1								 656K  82.7G  2.05G  /
freenas-boot/ROOT/9.10-STABLE-201605240427				   148K  82.7G  1.12G  /
freenas-boot/ROOT/9.10-STABLE-201606072003				  8.89M  82.7G  1.35G  /
freenas-boot/ROOT/9.10-STABLE-201606270534				  11.8M  82.7G  1.35G  /
freenas-boot/ROOT/9.10.1									12.4M  82.7G  1.39G  /
freenas-boot/ROOT/9.10.1-U1								 12.2M  82.7G  1.42G  /
freenas-boot/ROOT/9.10.1-U2								 12.7M  82.7G  1.42G  /
freenas-boot/ROOT/9.10.1-U4								  144K  82.7G  1.42G  /
freenas-boot/ROOT/9.10.2									12.8M  82.7G  1.48G  /
freenas-boot/ROOT/9.10.2-U1								 11.7M  82.7G  1.48G  /
freenas-boot/ROOT/9.10.2-U2								 11.8M  82.7G  1.48G  /
freenas-boot/ROOT/9.10.2-U3								 11.6M  82.7G  1.49G  /
freenas-boot/ROOT/9.10.2-U6								 10.2M  82.7G  1.49G  /
freenas-boot/ROOT/9.10.2-U6-1							   22.9G  82.7G  1.52G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201412091831		   3.01M  82.7G  1.03G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201502271818		   2.64M  82.7G  1.03G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201503071634		   3.01M  82.7G  1.02G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201503150158		   3.02M  82.7G  1.05G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201503200528		   2.77M  82.7G  1.05G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201503270027		   3.02M  82.7G  1.05G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201504100216		   2.90M  82.7G  1.11G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201504152200		   3.03M  82.7G  1.13G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201505010007		   3.52M  82.7G  1.13G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201505040117		   3.64M  82.7G  1.13G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201505130355		   3.66M  82.7G  1.13G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201506042008		   3.90M  82.7G  1.14G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201506162331		   3.78M  82.7G  1.14G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201506232120		   6.54M  82.7G  1.14G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201506292332		   9.15M  82.7G  1.14G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201508250051		   8.90M  82.7G  1.15G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201509022158		   8.77M  82.7G  1.15G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201509160044		   8.55M  82.7G  1.15G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201509220011		   9.14M  82.7G  1.15G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201509282017		   1.15G  82.7G  1.15G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201510290351		   9.78M  82.7G  1.15G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201511020249		   9.39M  82.7G  1.16G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201511280648		   8.76M  82.7G  1.15G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201512121950		   22.2M  82.7G  1.17G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201601181840		   9.04M  82.7G  1.16G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201602031011		   9.14M  82.7G  1.16G  /
freenas-boot/ROOT/FreeNAS-9.3-STABLE-201604150515		   11.2M  82.7G  1.19G  /
freenas-boot/ROOT/FreeNAS-d55ab9177fa7bbcd849b9f0687646c3d  11.4M  82.7G  1.11G  /
freenas-boot/ROOT/default								   2.64M  82.7G  1.03G  legacy
freenas-boot/grub											364M  82.7G  11.4M  legacy


[root@chunkyMonkey] /data# zfs list -t snap
NAME																	 USED  AVAIL  REFER  MOUNTPOINT
freenas-boot/ROOT/9.10.2-U6-1@2014-12-12-16:59:36					   20.0M	  -  1.03G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-02-28-09:49:22					   20.2M	  -  1.03G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-03-08-09:17:48						283M	  -  1.03G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-03-15-08:11:06						264M	  -  1.02G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-03-21-12:15:50						339M	  -  1.05G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-03-29-09:13:07					   79.1M	  -  1.05G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-04-12-08:19:07					   64.8M	  -  1.05G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-04-24-09:39:51					   51.2M	  -  1.11G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-05-01-08:28:51					   66.8M	  -  1.13G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-05-08-08:17:35					   21.9M	  -  1.13G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-05-22-06:51:04					   22.2M	  -  1.13G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-06-13-05:51:08						267M	  -  1.13G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-06-19-08:35:25					   70.5M	  -  1.14G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-06-28-09:03:02					   67.5M	  -  1.14G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-07-03-12:02:09					   67.5M	  -  1.14G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-08-29-07:01:05					   72.0M	  -  1.14G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-09-11-08:33:44						337M	  -  1.15G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-09-16-07:45:45						273M	  -  1.15G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-09-24-20:34:19					   73.6M	  -  1.15G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-09-29-07:05:22					   83.1M	  -  1.15G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-10-30-07:58:46						136K	  -  1.15G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-10-30-07:59:23						136K	  -  1.15G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-11-03-07:14:26					   11.9M	  -  1.15G  -
freenas-boot/ROOT/9.10.2-U6-1@2015-11-28-08:19:17						385M	  -  1.16G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-01-02-12:27:57						280M	  -  1.15G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-02-01-06:38:16						296M	  -  1.17G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-02-05-07:00:31						272M	  -  1.16G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-04-17-08:27:55						271M	  -  1.16G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-05-22-09:58:46						462M	  -  1.19G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-05-26-09:50:02						226M	  -  1.11G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-06-25-09:29:23						222M	  -  1.12G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-07-01-06:24:20						362M	  -  1.35G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-08-17-09:08:10						359M	  -  1.35G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-10-01-13:53:26						621M	  -  1.39G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-10-05-06:19:56						308M	  -  1.42G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-11-27-08:32:37						309M	  -  1.42G  -
freenas-boot/ROOT/9.10.2-U6-1@2016-12-20-15:40:28						975M	  -  1.42G  -
freenas-boot/ROOT/9.10.2-U6-1@2017-02-12-07:33:34						252M	  -  1.48G  -
freenas-boot/ROOT/9.10.2-U6-1@2017-04-10-11:50:41						208M	  -  1.48G  -
freenas-boot/ROOT/9.10.2-U6-1@2017-04-22-15:38:24						300M	  -  1.48G  -
freenas-boot/ROOT/9.10.2-U6-1@2017-08-20-13:54:37					   1.48G	  -  1.49G  -
freenas-boot/ROOT/9.10.2-U6-1@2018-07-25-07:07:30					   1.48G	  -  1.49G  -
freenas-boot/ROOT/9.10.2-U6-1@2018-07-25-07:50:09					   2.03G	  -  2.05G  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201412091831			116K	  -  8.50M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201502271818			120K	  -  8.50M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201503071634			124K	  -  8.51M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201503150158		   8.45M	  -  8.53M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201503200528		   11.9M	  -  12.0M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201503270027		   11.9M	  -  12.0M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201504100216		   11.9M	  -  12.0M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201504152200		   12.0M	  -  12.0M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201505010007		   12.0M	  -  12.0M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201505040117		   12.0M	  -  12.0M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201505130355		   12.0M	  -  12.1M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201506042008		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201506162331		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201506232120		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201506292332		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201508250051		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201509022158		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201509160044		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201509220011		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201509282017		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201510290351		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201511020249		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201511280648		   12.1M	  -  12.2M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201512121950		   12.2M	  -  12.3M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201601181840		   12.2M	  -  12.3M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201602031011		   12.2M	  -  12.3M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-9.3-STABLE-201604150515		   12.2M	  -  12.3M  -
freenas-boot/grub@Pre-Upgrade-FreeNAS-d55ab9177fa7bbcd849b9f0687646c3d  12.2M	  -  12.3M  -
freenas-boot/grub@Pre-Upgrade-9.10-STABLE-201605240427				  11.3M	  -  11.3M  -
freenas-boot/grub@Pre-Upgrade-9.10-STABLE-201606072003				  11.3M	  -  11.3M  -
freenas-boot/grub@Pre-Upgrade-9.10-STABLE-201606270534				  11.3M	  -  11.3M  -
freenas-boot/grub@Pre-Upgrade-9.10.1									11.3M	  -  11.3M  -

 
D

dlavigne

Guest
You shouldn't have been able to select a lower train number. If you did that from BETA1, please create a report at bugs.freenas.org.

To revert, reboot back into your 9.10 system. It should still be in the boot menu unless you manually deleted that boot env.
 
Joined
Oct 30, 2015
Messages
7
Thank you for the fast reply!

I've not deleted anything... I also should have mentioned that this is a headless system...

Can you please explain how to (re)boot into 9.10 from the command line?

TIA!
 
D

dlavigne

Guest
beadm list will show your boot env.
beadm activate boot_env_name instructs the system to boot into the specified boot_env_name on next boot.
 
  • Like
Reactions: UDO
Joined
Oct 30, 2015
Messages
7
beadm list will show your boot env.
beadm activate boot_env_name instructs the system to boot into the specified boot_env_name on next boot.

Thanks! I found this info in another post and was able to recover back to the 9.10STABLE release!

If I want to u/g to version 11, then, I should choose 11-STABLE instead of 11.2-STABLE so as to avoid the original problem? (Losing the installed plugins and jails)

--mike
 
D

dlavigne

Guest
Going from 9.10 (based on 10.x FreeBSD) to 11.x (based on 11.x FreeBSD) is an ABI change. This means that you really do want to reinstall your apps. Most users do a fresh plugin or jail install, grab their existing configs, test everything is A-OK, then delete the old plugin or jail.
 

TAC

Contributor
Joined
Feb 16, 2014
Messages
152
If go from 9.10 to 11.x:

1) Is there a Legacy GUI in 11.x that shows the old jails. Am correct in assume I can continue to use my 9.10 jails and apps in 11.x but just can't update them?

2) Did I hear rumors of a script that would migrate jails to the new 11.x iocage format?

3) From above it sounds like reinstalling the plugin after migration might be the cleanest route, then deleting the old jail once you've confirm operation of the app in a new iocage jail.

4) I can always recover my 9.10 system from the "Upload Config" tab on the system menu as long as I don't upgrade my Zpool?

Thnx,
 

diskdiddler

Wizard
Joined
Jul 9, 2014
Messages
2,377
If go from 9.10 to 11.x:

1) Is there a Legacy GUI in 11.x that shows the old jails. Am correct in assume I can continue to use my 9.10 jails and apps in 11.x but just can't update them?


2) Did I hear rumors of a script that would migrate jails to the new 11.x iocage format?

3) From above it sounds like reinstalling the plugin after migration might be the cleanest route, then deleting the old jail once you've confirm operation of the app in a new iocage jail.

4) I can always recover my 9.10 system from the "Upload Config" tab on the system menu as long as I don't upgrade my Zpool?

Thnx,

1, click logout and then click on legacy ui at the bottom of the log in prompt
(Also you can't MAKE anymore warden / old jails but you can check the details, stop / start them and even delete them)
2, yes and it works half ok - it's not flawless but it does work, 3 of my 6 jails, I used that script and they run fine (warden 100% disabled for nearly a month now)
This thread should help you.
https://forums.freenas.org/index.ph...tion-script-some-quick-tips-for-others.68597/
3, This will totally be the 'cleanest' method - but depending on the plugin the migration script is a good stop gap.
4, I wouldn't bother with 9 anymore, that's crazy talk, if you go back for some reason, 11.1 U5 is the way to go.

I'm personally pretty happy with 11.2 Beta2, there's been a bit of fiddling but it's now behaving well
 
  • Like
Reactions: UDO
Status
Not open for further replies.
Top