Junos
Highlighted
Junos

How to free space in QFX after upgrading junos?

‎04-28-2020 02:56 AM

Hi

I upgraded the Junos and now we getting error like disk full as partition mounted.

Tried to delete storage file but it does not work

 


--------------------------------------------------------------------------
Filesystem Size Used Avail Capacity Mounted on
/dev/da0s1a 401M 238M 131M 65% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/md0 134M 134M 0B 100% /packages/mnt/jbase
/dev/md1 144M 127M 5.0M 96% /packages/mfs-jkernel
/dev/md2 388M 388M 0B 100% /packages/mnt/jkernel-qfx-3-15.1R7.9
/dev/md3 18M 13M 3.1M 81% /packages/mfs-jpfe
/dev/md4 54M 54M 0B 100% /packages/mnt/jpfe-qfx-3-15.1R7.9
/dev/md5 8.7M 4.0M 3.9M 51% /packages/mfs-jdocs
/dev/md6 11M 11M 0B 100% /packages/mnt/jdocs-qfx-15.1R7.9
/dev/md7 29M 24M 2.0M 92% /packages/mfs-jroute
/dev/md8 179M 179M 0B 100% /packages/mnt/jroute-qfx-3-15.1R7.9
/dev/md9 11M 6.6M 3.7M 64% /packages/mfs-jcrypto
/dev/md10 42M 42M 0B 100% /packages/mnt/jcrypto-qfx-15.1R7.9
/dev/md11 13M 8.8M 3.5M 72% /packages/mfs-jswitch
/dev/md12 71M 71M 0B 100% /packages/mnt/jswitch-qfx-3-15.1R7.9
/dev/md13 8.9M 4.3M 3.9M 52% /packages/mfs-py-base-xlr
/dev/md14 15M 15M 0B 100% /packages/mnt/py-base-xlr-15.1R7.9
/dev/md15 63M 8.0K 58M 0% /tmp
/dev/da0s3e 252M 124K 232M 0% /config
/dev/da0s1f 216M 1.3M 197M 1% /var
/dev/da0s3d 1007M 118K 926M 0% /var/tmp
procfs 4.0K 4.0K 0B 100% /proc
/dev/da0s3f 2.4G 6.0K 2.2G 0% /var/shared
/dev/da0s3g 299M 21M 255M 7% /var/rundb
/var/jails/rest-api 216M 1.3M 197M 1% /packages/mnt/jroute-qfx-3-15.1R7.9/web-api/var

7 REPLIES 7
Highlighted
Junos

Re: How to free space in QFX after upgrading junos?

‎04-28-2020 03:08 AM

HI

 

Below link will provide the way to free the space on qfx

 

https://www.juniper.net/documentation/en_US/junos/topics/task/troubleshooting/system-storage-cleanup...

 

Also check if you have any big files in /var/homes like old image files etc..

 

Hope this helps

Highlighted
Junos

Re: How to free space in QFX after upgrading junos?

‎04-28-2020 03:24 AM

I did that already still its showing mounted partition full.

 

Highlighted
Junos

Re: How to free space in QFX after upgrading junos?

‎04-28-2020 03:44 AM

You may try the following shell command to list out all the files > 10MB on the device.

 

sh -c 'find / -size +10485760c 2> /dev/null' | xargs du -h | sort -nr

 

Try to find if there are some unnecessary image files in some folders which may causing the partition to swell.

Highlighted
Junos

Re: How to free space in QFX after upgrading junos?

‎04-28-2020 03:52 AM

Most are in packages .. is it safe to delete the files ?

127M /packages/mfs-jkernel/jkernel-qfx-3-15.1R7.9
127M /packages/jkernel-qfx-3-15.1R7.9
81M /packages/mnt/jkernel-qfx-3-15.1R7.9/usr/sbin/chassisd
61M /packages/mnt/jroute-qfx-3-15.1R7.9/usr/sbin/rpd
49M /packages/mnt/jpfe-qfx-3-15.1R7.9/usr/sbin/fxpc
37M /packages/mnt/jkernel-qfx-3-15.1R7.9/usr/sbin/authd
24M /packages/mfs-jroute/jroute-qfx-3-15.1R7.9
24M /packages/jroute-qfx-3-15.1R7.9
23M /packages/mnt/jkernel-qfx-3-15.1R7.9/usr/lib/dd/libjkernel-dd.tlv
23M /packages/jbase-qfx-15.1R7.9
23M /packages/jbase-15.1R7.9
19M /packages/mnt/jswitch-qfx-3-15.1R7.9/usr/sbin/jdhcpd
19M /packages/mnt/jkernel-qfx-3-15.1R7.9/usr/sbin/jdhcpd
18M /packages/mnt/jroute-qfx-3-15.1R7.9/usr/sbin/mcsnoopd
17M /var/rundb/schema.db
16M /packages/mnt/jroute-qfx-3-15.1R7.9/usr/sbin/static-routed
16M /packages/mnt/jbase/usr/lib/librtsock.so.1
14M /packages/mnt/jroute-qfx-3-15.1R7.9/usr/lib/dd/libjroute-dd.tlv
14M /packages/mnt/jbase/usr/share/icu/4.6/icudt46l.dat
13M /packages/mnt/jkernel-qfx-3-15.1R7.9/usr/libdata/chassisd/chassisd.static.db
13M /packages/mnt/jkernel-qfx-3-15.1R7.9/modules/bcmsdk_5_9_x.ko
13M /packages/mfs-jpfe/jpfe-qfx-3-15.1R7.9
13M /packages/jpfe-qfx-3-15.1R7.9
12M /packages/mnt/jswitch-qfx-3-15.1R7.9/usr/sbin/l2ald
12M /packages/mnt/jkernel-qfx-3-15.1R7.9/usr/lib/dd/libjddosd.tlv
11M /packages/mnt/jcrypto-qfx-15.1R7.9/usr/sbin/kmd
10M /packages/mnt/jswitch-qfx-3-15.1R7.9/usr/sbin/l2cpd
10M /packages/mnt/jkernel-qfx-3-15.1R7.9/usr/sbin/mib2d

Highlighted
Junos

Re: How to free space in QFX after upgrading junos?

‎04-28-2020 04:01 AM

No we should not delete the package files are these are internal packages loaded with junos.

Could you check the output of following command

%df -h /var/

 

Also what was the original version before upgrade ?

Junos

Re: How to free space in QFX after upgrading junos?

‎04-28-2020 04:12 AM


root@us:RE:0% df -h /var
Filesystem Size Used Avail Capacity Mounted on
/dev/da0s1f 216M 11M 188M 5% /var

 

Error  I get are like this

Disk Free: /dev/md0, mounted on: /packages/mnt/jbase

Disk Free: /dev/md10, mounted on: /packages/mnt/jcrypto-qfx-15.1R7.9

Disk Free: /dev/md14, mounted on: /packages/mnt/py-base-xlr-15.1R7.9

Highlighted
Junos

Re: How to free space in QFX after upgrading junos?

[ Edited ]
‎05-04-2020 05:30 AM

Hi Fiber9,

 

Check for "show system snapshot" if any old snapshorts available which are consuming space then try try deleting those files.

 

Regards

Nadeem 

Feedback