SRX Services Gateway
Highlighted
SRX Services Gateway

Free Space Issue when trying to upgrade SRX110H1 via USB

‎10-30-2017 03:16 AM

Hi guys,

 

I have tried to load an imagefile/config via USB to a SRX110H1.

But the process abort:

 

da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SanDisk Cruzer Blade 1.26> Removable Direct Access SCSI-5 device
da0: 40.000MB/s transfers
da0: 15267MB (31266816 512 byte sectors: 255H 63S/T 1946C)
Checking compatibility with configuration
Initializing...
Verified manifest signed by PackageProductionEc_2016 method ECDSA
Verified junos-12.1X46-D65.4-domestic signed by PackageProductionEc_2016 method ECDSA
Using /tmp/mnt_usb_dev.1654/junos-srxsme-12.1X46-D65.4-domestic.tgz
Checking junos requirements on /
Available space: 126124 require: 173316

WARNING: The /altroot filesystem is low on free disk space.
WARNING: This package requires 173316k free, but there
WARNING: is only 126124k available.

WARNING: This installation attempt will be aborted.
WARNING: Current configuration not compatible with /tmp/mnt_usb_dev.1654/junos-srxsme-12.1X46-D65.4-domestic.tgz
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry
umass0: detached

 

Of cource I tried the various commands to get free space, but nothing worked:

request system storage cleanup

request system software delete-backup (is not working on SRX110H1 -> dual root)

clear log XY

request system zerorize

 

But the error stays the same.

Here is the current space-overview for this box:

 

root> show system storage
Filesystem              Size       Used      Avail  Capacity   Mounted on
/dev/ad0s1a             294M       148M       123M       55%  /
devfs                   1.0K       1.0K         0B      100%  /dev
/dev/md0                 20M       978K        17M        5%  /junos
/cf/packages            294M       148M       123M       55%  /junos/cf/packages
devfs                   1.0K       1.0K         0B      100%  /junos/cf/dev
/cf/usr                 294M       148M       123M       55%  /junos/cf/usr
/cf/boot                294M       148M       123M       55%  /junos/cf/boot
/dev/md1                412M       412M         0B      100%  /junos
/cf                      20M       978K        17M        5%  /junos/cf
devfs                   1.0K       1.0K         0B      100%  /junos/dev/
/cf/packages            294M       148M       123M       55%  /junos/cf/packages1
/cf/boot                294M       148M       123M       55%  /junos/cf/boot
/cf/usr                 294M       148M       123M       55%  /junos/cf/usr1
procfs                  4.0K       4.0K         0B      100%  /proc
/dev/bo0s3e              24M      10.0K        22M        0%  /config
/dev/bo0s3f             344M       5.9M       311M        2%  /cf/var
/dev/md2                168M        18M       136M       12%  /mfs
/cf/var/jail            344M       5.9M       311M        2%  /jail/var
/cf/var/log             344M       5.9M       311M        2%  /jail/var/log
devfs                   1.0K       1.0K         0B      100%  /jail/dev
/dev/md3                 39M       4.0K        36M        0%  /mfs/var/run/utm
/dev/md4                1.8M       4.0K       1.7M        0%  /jail/mfs

Your help is highly appreciated

 

Cheers, Christoph.

5 REPLIES 5
Highlighted
SRX Services Gateway

Re: Free Space Issue when trying to upgrade SRX110H1 via USB

‎10-30-2017 04:14 AM

Have you seen this list of safe files to delete?

 

https://kb.juniper.net/InfoCenter/index?page=content&id=KB19466

 

I also look for core dumps and check the /var/tmp and all the user home directories.  These are excluded from the storage cleanup.

 

You can also delete any snapshots to save space.

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Highlighted
SRX Services Gateway

Re: Free Space Issue when trying to upgrade SRX110H1 via USB

‎10-30-2017 05:22 AM

Hi,

 

it seems the system-snpashot on the backaup-partition (created via request system snapshot slice alternate) is one reason regarding the storage-issue.

But there is no command on a SRX110 for "request system snapshot delete". Is this a hidden command ?

 

Christoph

Highlighted
SRX Services Gateway

Re: Free Space Issue when trying to upgrade SRX110H1 via USB

[ Edited ]
‎10-30-2017 08:08 AM

Please try below command to list files by their size and see if there are any big logs, traces, etc.

start shell
du -ah /cf | sort -n -r | more

Regards, Wojtek

Highlighted
SRX Services Gateway

Re: Free Space Issue when trying to upgrade SRX110H1 via USB

‎10-31-2017 03:38 AM

Looking closer I see that deleting snapshots only seems to be high end SRX models so you will need to find other files to remove.

 

Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
http://puluka.com/home
Highlighted
SRX Services Gateway

Re: Free Space Issue when trying to upgrade SRX110H1 via USB

[ Edited ]
‎11-03-2017 04:26 AM

Hi guys, thanks for your replys.

It seems the problem is somhow related to the Version 12.1X46-D65.4.

An upgrade from any other 12.1X-version to 12.1X46-D65.4 succeeds.

But if I want to deploy (re-deploy) the 12.1X46-D65.4 via USB-Load again (for example to deploy a new config-file) the upgrade abort.

 

Using /tmp/mnt_usb_dev.2251/junos-srxsme-12.1X46-D65.4-domestic.tgz
Checking junos requirements on /
Available space: 126124 require: 173316

WARNING: The /altroot filesystem is low on free disk space.
WARNING: This package requires 173316k free, but there
WARNING: is only 126124k available.

 

I also cannot upgrade (or downgrade) to another 12.X Version anymore.

 

Using /tmp/mnt_usb_dev.2757/junos-srxsme-12.1X46-D67-domestic.tgz
Checking junos requirements on /
Available space: 126124 require: 173316

WARNING: The /altroot filesystem is low on free disk space.
WARNING: This package requires 173316k free, but there
WARNING: is only 126124k available.

WARNING: This installation attempt will be aborted.
WARNING: Current configuration not compatible with /tmp/mnt_usb_dev.2757/junos-srxsme-12.1X46-D67-domestic.tgz

 

The problem seems to be fixed in version 12.1X46-D67.

Here I can deploy 12.1X46-D67 several times via USB and with no abort

 

da0: <Kingston DataTraveler 160 PMAP> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 3826MB (7835648 512 byte sectors: 255H 63S/T 487C)
Formatting alternate root (/dev/ad0s1a)...
/dev/ad0s1a: 299.2MB (612844 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 74.81MB, 4788 blks, 9600 inodes.
super-block backups (for fsck -b #) at:
 32, 153248, 306464, 459680
Extracting /tmp/mnt_usb_dev.1754/junos-srxsme-12.1X46-D67-domestic.tgz ...
Checking compatibility with configuration
Initializing...
Verified manifest signed by PackageProductionEc_2017 method ECDSA
Verified junos-12.1X46-D67-domestic signed by PackageProductionEc_2017 method ECDSA
Using junos-12.1X46-D67-domestic from /altroot/cf/packages/install-tmp/junos-12.1X46-D67-domestic
Copying package ...
Verified junos-boot-srxsme-12.1X46-D67.tgz signed by PackageProductionEc_2017 method ECDSA
Verified junos-srxsme-12.1X46-D67-domestic signed by PackageProductionEc_2017 method ECDSA
Verified manifest signed by PackageProductionEc_2017 method ECDSA
Hardware Database regeneration succeeded

....

 

The problem is, that I need to rely on the USB-Load.

I have lots of SRX110H1 running with 12.1X46-D65.4, which was the Junos recommended version (Juniper changed this  now to 12.1X46-D67 some days ago).

 

The upgrade via CLI always works. Here I can start the upgrade with no-validate / no-copy, which seems to resolve the issue. But of course only via CLI, and as I mentioned I need to use the USB-Load in some cases.

 

It always seems, that the backup-partition is the cause for the problems. Is there a way to do some formatting or clearing the backup-partition on a SRX110h1 ?

 

Summary:

Deploy Image/Config via USB starting from 12.1X --> 12.1X46-D65.4 --> fine

Re-Deploy Image/Config via USB  from 12.1X46-D65.4 --> 12.1X46-D65.4  --> bad

Deploy Image/Config via USB  from 12.1X46-D65.4 --> 12.1X  --> bad

Deploy Image/Config via USB starting from 12.1X --> 12.1X46-D67   --> fine

Re-Deploy Image/Config via USB  from 12.1X46-D67 --> 12.1X46-D67  --> fine

 

So in the end, I need to find a way, to push a config-file to a SRX110H1 running 12.1X46-D65.4 via USB.

 

Any suggestions ? 🙂

 

Christoph

Feedback