jails problem upgrading jail to 13.1 using iocage

Code:
# iocage upgrade imap-3 -r 13.1-RELEASE
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 12.3-RELEASE from update1.freebsd.org... done.
. . .
Fetching metadata signature for 13.1-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 12.3-RELEASE for merging... done.
Preparing to download files... done.
/tmp/tmpc0cikleu: cannot open files/.gz: No such file or directory
. . .
/tmp/tmpc0cikleu: cannot open files/.gz: No such file or directory
Attempting to automatically merge changes in files... done.

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /boot/device.hints
Does this look reasonable (y/n)? n

This does not look right to me. Other 13.1 jails do have /boot/device.hints. If I say ok then I get a large number of other files that no longer exist in FreeBSD 13.1-RELEASE but in fact do exist in other jails. Does anyone have any idea what is going on?
 
This does not look right to me. Other 13.1 jails do have /boot/device.hints.
It's a useless file for a jail regardless. It's for the kernel, which a jail doesn't have (a jail runs on the host's kernel).
 
There are many more. Are all these useless in jails as well?
Code:
The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /boot/device.hints
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/auto_master
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/autofs/include_ldap
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/autofs/include_nis
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/autofs/include_nis_nullfs
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/autofs/special_hosts
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/autofs/special_media
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/autofs/special_noauto
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/autofs/special_null
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/blacklistd.conf
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/bluetooth/hcsecd.conf
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/bluetooth/hosts
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/bluetooth/protocols
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/cron.d/at
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/crontab
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/csh.cshrc
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/csh.login
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/csh.logout
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 13.1-RELEASE: /etc/ddb.conf
Does this look reasonable (y/n)? y
. . .
 
Not sure what's going on here. Many of those files from /etc/ should definitely NOT be deleted. I suspect these errors are the cause:
Code:
/tmp/tmpc0cikleu: cannot open files/.gz: No such file or directory
. . .
/tmp/tmpc0cikleu: cannot open files/.gz: No such file or directory

I have no idea how iocage(8) performs upgrades, so I have no idea what's going wrong here. One common failure is a full filesystem (/tmp full?), that could certainly result in weird issues.
 
I doubt disk space is the problem:

Code:
zfs list
NAME                                             USED  AVAIL  REFER  MOUNTPOINT
zroot                                           1.09T  4.16T   117K  /zroot
zroot/ROOT                                       663G  4.16T   117K  none
. . .
zroot/tmp                                        482M  4.16T  14.5M  /tmp
. . .
 
Perhaps there is a space problem. Have a look at zfs list -o space; especially look at the column USEDBYSNAP that shows the space used by snapshots/clones.

As iocage jails are based on ZFS clones, upgrading from one FreeBSD major version to the next usually takes up a lot of space. Therefore, out of space considerations you might prefer to use iocage's upgrade mechanism only for FreeBSD minor version upgrades where the diff between upgrades and the FreeBSD major version, with which the jail was originally created, remains relatively small. For FreeBSD major version upgrades consider (re)building your iocage jails from scratch.
 
These are all thick jails, not clones.

There seems to be lots of space:
Code:
zpool list
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
zroot   928G   257G   671G        -         -    38%    27%  1.00x    ONLINE  -

zfs list
NAME                                           USED  AVAIL     REFER  MOUNTPOINT
zroot                                          257G   642G       88K  /zroot
zroot/ROOT                                    18.3G   642G       88K  none

. . .
zroot/tmp                                     6.13M   642G      104K  /tmp
. . .
zroot/var/tmp                                  200K   642G       88K  /var/tmp
 
Back
Top