OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 15.7 Legacy Series »
  • Upgrade from 15.1.12 not working on Alix with 4Gb CF
« previous next »
  • Print
Pages: [1]

Author Topic: Upgrade from 15.1.12 not working on Alix with 4Gb CF  (Read 5186 times)

gpac

  • Newbie
  • *
  • Posts: 21
  • Karma: 1
    • View Profile
Upgrade from 15.1.12 not working on Alix with 4Gb CF
« on: July 06, 2015, 10:46:30 pm »
Good evening,

Please note that unfortunately upgrading from 15.1.12 nanoBSD is not working on Alix 2d3 with 4 Gb Compact Flash because it claims for a lack of space on /var/cache/pkg : "pkg: Not enough space in /var/cache/pkg, needed 43 MiB available 38 MiB"

Increasing the /var size in web GUI to 70 Mb allowed after a reboot to start the verrryyyy sssslooooww upgrading process with many "g_vfs_done():md1[WRITE(offset=20480000, length=32768)]error = 28", and a "syncache_socket: could not copy policy" during perl5 upgrade/extraction.

Please note that the system was almost idle (one single PC pulling few basic web pages).

After 2 hours waiting for the upgrade to accomplish, and having to work early tomorrow, I'm leaving it and hope it will be done by tomorrow.
Logged

lucifercipher

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 9
    • View Profile
Re: Upgrade from 15.1.12 not working on Alix with 4Gb CF
« Reply #1 on: July 07, 2015, 08:00:49 pm »
Hmm. How big is your CF card? The reason why you are facing slow downs is because of low storage space. Do a df -h perhaps? See if you can purge the cache and proceed with upgrade.
Logged

gpac

  • Newbie
  • *
  • Posts: 21
  • Karma: 1
    • View Profile
Re: Upgrade from 15.1.12 not working on Alix with 4Gb CF
« Reply #2 on: July 07, 2015, 08:20:16 pm »
4 Gb Compact Flash with basic install / nothing special.

One day after it seems to continue doing something : console is issuing several "g_vfs_done():md1[WRITE(offset=38764544, length=32768)]error = 28".

It seems to be so busy that web access is not responding (but I still can access through the firewall to the wan).

I decided to reboot the Alix and here are few outputs :
df -h brings :
Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/ufs/OPNsense0    936M    648M    213M    75%    /
devfs                 1.0K    1.0K      0B   100%    /dev
/dev/md0               38M     60K     35M     0%    /tmp
/dev/md1               67M     16M     46M    26%    /var
devfs                 1.0K    1.0K      0B   100%    /var/dhcpd/dev

fdisk /dev/ufs/OPNsense0 brings :
******* Working on device /dev/ufs/OPNsense0 *******
parameters extracted from in-core disklabel are:
cylinders=1933 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1933 heads=16 sectors/track=63 (1008 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 1948401 (951 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 908/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>



=> What should I do ??
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13624
  • Karma: 1172
    • View Profile
Re: Upgrade from 15.1.12 not working on Alix with 4Gb CF
« Reply #3 on: July 08, 2015, 01:28:21 pm »
The /var MFS memory disk size is too small. A proper fix will be in 15.7.2. For now, you can go to "System: Settings: Misc" and increase the /var MFS size to let's say 100 MB.

The box will need a reboot for these changes to take effect. The upgrade will be ok afterwards. :)

Edit: sorry, I missed the second part. Are you sure your CF card is still ok? This looks like low-level device behaviour. You could try to change /etc/fstab /dev/ufs/OPNsense0 mode to "async" and see if that helps, at least that's how the installer does it.

Normally, however, we do not recommend using async on the root disk.
« Last Edit: July 08, 2015, 01:32:24 pm by franco »
Logged

gpac

  • Newbie
  • *
  • Posts: 21
  • Karma: 1
    • View Profile
Re: Upgrade from 15.1.12 not working on Alix with 4Gb CF
« Reply #4 on: July 15, 2015, 08:01:09 pm »
Thanks for reply. Basically I did a brand new fresh install based on new nano image.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 15.7 Legacy Series »
  • Upgrade from 15.1.12 not working on Alix with 4Gb CF
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2