Solved Update 14.4 -> 15.1 sits idle since minutes

following https://www.freebsd.org/releases/15.1R/upgrading/#upgrade-fu
after booting into the new kernel and issuing $ freebsd-update install to upgrade userland, at first it downloads stuff, but then sits idle for minutes and a ps faux displays:

Code:
root        1764   0,0  0,0  14404   3092  0  I+   10:43     0:01,85 /bin/sh /usr/sbin/freebsd-update install
root        4080   0,0  0,2  27568  17872  0  I+   10:44     0:00,05 sort -k 1,1 -t | INDEX-NEW
root        4081   0,0  0,0  14100   2380  0  IC+  10:44     0:00,18 tr |
root       88915   0,0  0,0  14248   2636  0  D+   11:26     0:00,00 install -o 0 -g 0 -m 0644 501e686bcb7dc96aa0e2a7537eb51fbe01a21e

How to go on?
 
after rebooting, things seem to go on:

Code:
$ doas freebsd-update install
pkg: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
Creating snapshot of existing boot environment... done.
Installing updates...
 
…idling again, ps faux:

Code:
root        2849   0,0  0,0    14764   3304  0  I+   11:38    0:01,89 /bin/sh /usr/sbin/freebsd-update install
root        5031   0,0  0,2    27580  17776  0  S+   11:39    0:00,04 sort -k 1,1 -t | INDEX-NEW
root        5032   0,0  0,0    14100   2320  0  SC+  11:39    0:00,02 tr | 
root        5033   0,0  0,0    14764   3296  0  S+   11:39    0:00,92 /bin/sh /usr/sbin/freebsd-update install
root       14549   0,0  0,0    14248   2636  0  D+   11:44    0:00,00 install -o 0 -g 0 -m 0555 7a1ae75feb7daeec7f8c9233ff8207b3abc36
 
CTRl-C and restart the install again, hung again, but wrote more instructions (didn't write down, something pkg bootstrap -f),
then did a pkg update -f and now a pkg upgrade. Will download 3GB which will take 90min or so. Looks like progress.

Code:
$ doas pkg upgrade
...
Number of packages to be upgraded: 2
Number of packages to be reinstalled: 1020

The process will require 54 MiB more space.
3 GiB to be downloaded.
...
 
Are your disks still good? The upgrade/update process uses quite a bit of I/O. If you have a bad disk writing performance it's going to take ages. Also, do you have the sources installed in /usr/src/? If freebsd-update(8) has to update those it's really going to hit a LOT of I/O because it has to evaluate a whole lot of small files.
 
  • Thanks
Reactions: mro
no /usr/src - the install website didn't mention that would make sense.
I'm confident in the discs, however how can I diagnose?
Internet bandwidth is 12Mbit.

I wouldn't bother to wait half an hour, if I knew in advance.

I let the pkg upgrade finish and go on from there.
 
however how can I diagnose?
smartctl(8) from sysutils/smartmontools is good to get some internal data from the disks themselves.

Internet bandwidth is 12Mbit.
At the freebsd-update install phases nothing is downloaded from the internet, that only happens during the 'fetch' or 'upgrade' stages. Fetch or upgrade will download everything that's required, install is simply applying everything it downloaded from that first stage. You can do the freebsd-update install entirely offline.
 
  • Thanks
Reactions: mro
Code:
$ iostat
       tty           mmcsd0             ada0            pass0             cpu
 tin  tout KB/t   tps  MB/s KB/t   tps  MB/s KB/t   tps  MB/s  us ni sy in id
   7   347 49.1     1  0.03 16.2   512  8.12  0.0     0  0.00   5  0  2  0 92

looks alive, I'll sit it out.
 
I vaguely remeber a zfs brake back last year (or the year before?). Lifting that sped up things. Can't remember better.
 
I remember that for some upgrades, on a fairly old computer (i5 of third gen IIRC, 16 GiB ram and ZFS on ssd), the userland upgrade took close to one hour. So, wait one hour at least, drink coffee or whatever you like, watch a movie or so, and be patient.
 
  • Thanks
Reactions: mro
smartctl(8) looks like a rabbithole.
smartclt -a /dev/da0 for example.


looks alive, I'll sit it out.
iostat -x 1
Keep an eye on the %b numbers. That's the "busy" percentage. If it's consistently above 90 then your drive simply isn't fast enough for the amount of I/O it has to process.

Code:
           %b      % of time the device had one or more outstanding
                   transactions

But, I see a mmcsd0? Is this system running off an SD card?
 
Back
Top