Created
October 4, 2017 21:53
-
-
Save dlangille/142607fabf5ba64ff84f13e4910817d9 to your computer and use it in GitHub Desktop.
Upgrading iocage from py27-iocage-0.9.5_1 to py36-iocage: 0.9.9.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There is an upgrade process, but it is obvious. | |
Here's what I have running: | |
$ jls | |
JID IP Address Hostname Path | |
1 10.100.0.201 x8dtu-nginx01.vpn.unixathome. /iocage/jails/872e580e-d98e-45ab-87fe-6380f81c767d/root | |
2 10.100.0.200 x8dtu-pg01.vpn.unixathome.org /iocage/jails/197dd6eb-e1b5-48ad-94d9-f11cdf913ccc/root | |
6 10.100.0.124 mx-ingress01.freshports.org /iocage/jails/51fbd2fc-7be6-4b56-995a-0757f7b71943/root | |
9 10.100.0.202 x8dtu-ingress01.vpn.unixathom /iocage/jails/5b20a966-e37e-4d3d-a24a-c658afd7cf80/root | |
At first glance, it seems to be broken: | |
sudo iocage console x8dtu-ingress01 | |
******************************************************************************** | |
fdescfs(5) is not mounted, performance may suffer. Please run: | |
mount -t fdescfs null /dev/fd | |
You can also permanently mount it in /etc/fstab with the following entry: | |
fdescfs /dev/fd fdescfs rw 0 0 | |
******************************************************************************** | |
jail 'x8dtu-ingress01' not found! | |
OK, get that mounted: | |
sudo mount -t fdescfs null /dev/fd | |
No, it wasnt't that: | |
$ sudo iocage console x8dtu-ingress01 | |
jail 'x8dtu-ingress01' not found! | |
OK, let's see if we can stop a jail: | |
$ sudo iocage console 5b20a966 | |
5b20a966-e37e-4d3d-a24a-c658afd7cf80 (x8dtu-ingress01) is running, all jails must be stopped before iocage will continue migration | |
Migration? OH.... | |
$ sudo iocage stop ALL | |
******************************************************************************** | |
Jail: 5b20a966-e37e-4d3d-a24a-c658afd7cf80 was renamed to x8dtu-ingress01 | |
******************************************************************************** | |
Please issue your command again. | |
Here, I did not follow the clear instruction, and stopped the remaining jails, one by one, by UUID. | |
OK, all stopped, let's start: | |
$ sudo iocage start ALL | |
******************************************************************************** | |
Jail: 872e580e-d98e-45ab-87fe-6380f81c767d was renamed to x8dtu-nginx01 | |
******************************************************************************** | |
Please issue your command again. | |
Oh... again? | |
$ sudo iocage start ALL | |
******************************************************************************** | |
Jail: 51fbd2fc-7be6-4b56-995a-0757f7b71943 was renamed to mx-ingress01 | |
******************************************************************************** | |
Please issue your command again. | |
AGAIN? OK.... | |
$ sudo iocage start ALL | |
* Starting x8dtu-pg01 | |
+ Started OK | |
+ Starting services OK | |
* Starting x8dtu-ingress01 | |
+ Started OK | |
+ Starting services OK | |
* Starting mx-ingress01 | |
+ Started OK | |
+ Starting services OK | |
* Starting x8dtu-nginx01 | |
+ Started OK | |
+ Starting services OK | |
$ jls | |
JID IP Address Hostname Path | |
10 10.100.0.200 x8dtu-pg01.vpn.unixathome.org /iocage/jails/x8dtu-pg01/root | |
11 10.100.0.202 x8dtu-ingress01.vpn.unixathom /iocage/jails/x8dtu-ingress01/root | |
12 10.100.0.124 mx-ingress01.freshports.org /iocage/jails/mx-ingress01/root | |
13 10.100.0.201 x8dtu-nginx01.vpn.unixathome. /iocage/jails/x8dtu-nginx01/root | |
Thank you. I much prefer the shorter names and the shorter path names. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment