Upgrade to 18.1 fail - 'pkg update' required

Started by akirosa, February 12, 2018, 06:25:10 PM

Previous topic - Next topic
The Alix 2D3's need a lot of finagling to make work when upgrading or doing complicated setups.
They are very low on CPU and memory; SWAP too slow to really be usable on sync mounted CF. Definitely EOL.

We have a bunch still as AP's; they're a pain sometimes.
You'd be well advices with a newer Alix board, the APU1 and 2's are really nice. Unfortunately the Alix series are getting a bit too old to run the newer distros.

Thanks for the advice
I bought this alix by mistake and so I keep it for what it is without big claims.
For now it is between my router and my small LAN home.
I will wait for the next update to see if it succeeds otherwise I will do a new installation and then import the configuration that I saved.

Apart from the first tests I've been in for two days working in a continuous way without problems (but it's early to sing victory)


You should enable the swap partition and /var and /tmp RAM mounts on Alix.
Do not use traffic graphing and disable all RRD; it save memory and CPU.

If you want a swap file < 2Gb, enable the checkbox in the GUI and do the following: (in this example 1Gb)
Quote
dd if=/dev/zero of=/usr/swap0 bs=1m count=1024
chmod 0600 /usr/swap0
mdconfig -a -t vnode -f /usr/swap0 -u /dev/md98
swapon /dev/md98

Or to change size:
Quote
swapoff -a
swapoff /dev/md98
mdconfig -d -u 98
dd if=/dev/zero of=/usr/swap0 bs=1m count=1536
chmod 0600 /usr/swap0
mdconfig -a -t vnode -f /usr/swap0 -u /dev/md98
swapon /dev/md98

Thanks for the advice

about the swap i don't have much space and /var /tmp are enabled
# df -h
Filesystem                Size    Used   Avail Capacity  Mounted on
/dev/ufs/OPNsense_Nano    3.7G    1.1G    2.4G    31%    /
devfs                     1.0K    1.0K      0B   100%    /dev
tmpfs                      57M     31M     26M    54%    /var
tmpfs                      27M    680K     26M     2%    /tmp
devfs                     1.0K    1.0K      0B   100%    /var/dhcpd/dev


without net flow cpu consumption is not bad

last pid: 15996;  load averages:  0.08,  0.12,  0.47                                                  up 1+00:00:35  23:28:59
37 processes:  1 running, 36 sleeping
CPU:  0.4% user,  0.0% nice,  0.4% system,  1.1% interrupt, 98.1% idle
Mem: 54M Active, 95M Inact, 44M Wired, 7822K Buf, 30M Free
Swap:

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    TIME    WCPU COMMAND
1017 root          1  20    0  7264K  2800K RUN      0:08   0.28% top
26045 root          1  20    0  6140K  1772K bpf      0:32   0.05% filterlog
99848 root          1  20    0  9300K  5004K select   0:01   0.02% sshd
76224 root          1  20    0  5984K  1888K select   0:06   0.01% syslogd
78052 root          1  20    0  8992K  9024K select   0:04   0.01% ntpd
71105 root          1  20    0 11064K  6384K kqread   2:34   0.01% lighttpd
  378 root          1  20    0 24256K 15340K accept   4:04   0.00% python2.7


now is 24 hours that opnsense is working
the only problem i've to solve is:
Missing origin.conf
I want to see how he arranges for the next update

tips are always welcome  :)