Switching

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



Expand all | Collapse all

QFX5100 /dev folder is full

  • 1.  QFX5100 /dev folder is full

    Posted 07-08-2021 18:09
    Hi,

    I upgraded my QFX5100 today, but I realized that the /dev/ad0s1a is full. I did search but I did not find solution.

    Anyone knows or do you have the same issue?

    Thanks in advance.

    Eric



    fpc0:
    --------------------------------------------------------------------------
    Filesystem Size Used Avail Capacity Mounted on
    /dev/ad0s1a 1.4G 1.3G 5.8M 100% /
    devfs 1.0K 1.0K 0B 100% /dev
    /dev/md0 115M 115M 0B 100% /packages/mnt/jbase
    /dev/md1 674M 674M 0B 100% /packages/mnt/jkernel-qfx-ex-x86-32-20.2R3.9
    /dev/md2 119M 119M 0B 100% /packages/mnt/jpfe-qfx-ex-x86-32-20.2R3.9
    /dev/md3 13M 13M 0B 100% /packages/mnt/jdocs-dc-re-20.2R3.9
    /dev/md4 297M 297M 0B 100% /packages/mnt/jroute-qfx-ex-x86-32-20.2R3.9
    /dev/md5 31M 31M 0B 100% /packages/mnt/jcrypto-dc-re-20.2R3.9
    /dev/md6 23M 23M 0B 100% /packages/mnt/jcrypto-qfx-5-20.2R3.9
    /dev/md7 12M 12M 0B 100% /packages/mnt/jsd-i386-20.2R3.9-jet-1
    /dev/md8 15M 15M 0B 100% /packages/mnt/jsdn-i386-20.2R3.9
    /dev/md9 82M 82M 0B 100% /packages/mnt/jswitch-qfx-ex-x86-32-20.2R3.9
    /dev/md10 35M 35M 0B 100% /packages/mnt/jweb-ex-20.2R3.9
    /dev/md11 18M 18M 0B 100% /packages/mnt/py-base-i386-20.2R3.9
    /dev/md12 14M 14M 0B 100% /packages/mnt/py-base2-i386-20.2R3.9
    /dev/md13 13M 13M 0B 100% /packages/mnt/py-extensions-i386-20.2R3.9
    /dev/md14 16M 16M 0B 100% /packages/mnt/py-extensions2-i386-20.2R3.9
    /dev/md15 1.1G 58K 999M 0% /tmp
    /dev/ad2s1e 504M 158K 463M 0% /config
    procfs 4.0K 4.0K 0B 100% /proc
    /dev/ad1s1f 484M 11M 434M 2% /var
    /dev/ad1s1d 1.9G 16K 1.8G 0% /var/tmp
    /dev/ad1s1a 242M 9.7M 213M 4% /var/log
    /dev/ad1s1e 242M 8.0K 222M 0% /altconfig
    /dev/ad3s1 1006M 4.0K 926M 0% /user
    /dev/md16 98M 164K 90M 0% /var/mfs/var/run
    /var/jails/rest-api 484M 11M 434M 2% /packages/mnt/jroute-qfx-ex-x86-32-20.2R3.9/web-api/var
    devfs 1.0K 1.0K 0B 100% /packages/mnt/jroute-qfx-ex-x86-32-20.2R3.9/web-api/dev
    /var/jail/etc 484M 11M 434M 2% /packages/mnt/jweb-ex-20.2R3.9/jail/var/etc
    /var/jail/run 484M 11M 434M 2% /packages/mnt/jweb-ex-20.2R3.9/jail/var/run
    /var/jail/tmp 484M 11M 434M 2% /packages/mnt/jweb-ex-20.2R3.9/jail/var/tmp
    /var/tmp 1.9G 16K 1.8G 0% /packages/mnt/jweb-ex-20.2R3.9/jail/var/tmp/uploads
    /var/jail/sess 484M 11M 434M 2% /packages/mnt/jweb-ex-20.2R3.9/jail/var/sess
    devfs 1.0K 1.0K 0B 100% /packages/mnt/jweb-ex-20.2R3.9/jail/dev
    /var/jail/jweb-app 484M 11M 434M 2% /packages/mnt/jweb-ex-20.2R3.9/jail/var/jweb-app
    /dev/md17 13M 13M 0B 100% /packages/mnt/junos-openconfig-20.2R3.9
    /dev/md18 504M 88M 376M 19% /var/rundb

    {master:0}


  • 2.  RE: QFX5100 /dev folder is full

     
    Posted 07-08-2021 21:38
    Hi Eric,

    You can use "no-copy" option while upgrading.

    For now, check for the files taking up more space using below command from shell and delete them if they're not required:

    % du -cks * | sort -rn


  • 3.  RE: QFX5100 /dev folder is full

    Posted 07-09-2021 09:13
    Thanks.

    I run the cli but no result. Not sure if there is a way to delete some unused files.

    :RE:0% du -cks * | sort -rn
    du: No match.


  • 4.  RE: QFX5100 /dev folder is full

     
    Posted 07-09-2021 05:45
    Best place to start is the Junos cleanup command that can recognize and remove some obvious files.

    request system storage cleanup



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



  • 5.  RE: QFX5100 /dev folder is full

    Posted 07-09-2021 09:18
    Yea, I did run the command line many times, but no space has been cleaned up. Not sure what is going on there.

    Thanks, Spuluka.


  • 6.  RE: QFX5100 /dev folder is full

    Posted 07-09-2021 09:34
    jump to the cli as root
    root@switch:RE:0% cd /

    root@switch:RE:0% du -h -d 1


  • 7.  RE: QFX5100 /dev folder is full

    Posted 07-09-2021 11:19
    Here is the output, Thanks.

    SW36:RE:0% du -h -d 1
    2.0K ./.ssh
    6.0K .



  • 8.  RE: QFX5100 /dev folder is full

     
    Posted 07-09-2021 09:27
    Hello Eric,

    check this  KB, it could help.

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB30860&cat=QFX_SERIES&actp=LIST


    Regards,

    Randall


  • 9.  RE: QFX5100 /dev folder is full

    Posted 07-09-2021 11:24
    Hello, Randall

    The KB helps. My problem was on the /dev folder that was 100% used, maybe it was fully allocated to partitions. Please see the screenshot above.

    The /var folder looks good, with small usage.

    /dev folder usage

    Filesystem Size Used Avail Capacity Mounted on
    /dev/ad0s1a 1.4G 1.3G 5.8M 100% /
    devfs 1.0K 1.0K 0B 100% /dev

    /var folder usage.

    procfs 4.0K 4.0K 0B 100% /proc
    /dev/ad1s1f 484M 11M 434M 2% /var
    /dev/ad1s1d 1.9G 16K 1.8G 0% /var/tmp
    /dev/ad1s1a 242M 9.8M 213M 4% /var/log
    /dev/ad1s1e 242M 8.0K 222M 0% /altconfig
    /dev/ad3s1 1006M 4.0K 926M 0% /user
    /dev/md16 98M 164K 90M 0% /var/mfs/var/run



  • 10.  RE: QFX5100 /dev folder is full

    Posted 07-30-2021 08:44
    Here is the output from a healthy 5100 running 14.1X53:

    fpc0:
    --------------------------------------------------------------------------
    Filesystem Size Used Avail Capacity Mounted on
    /dev/ad0s1a 1003M 786M 137M 85% /
    devfs 1.0K 1.0K 0B 100% /dev
    /dev/md0 84M 84M 0B 100% /packages/mnt/jbase
    /dev/md1 398M 398M 0B 100% /packages/mnt/jkernel-qfx-ex-x86-32-14.1X53-D46.7
    /dev/md2 52M 52M 0B 100% /packages/mnt/jpfe-qfx-ex-x86-32-14.1X53-D46.7
    /dev/md3 6.2M 6.2M 0B 100% /packages/mnt/jdocs-dc-re-14.1X53-D46.7
    /dev/md4 173M 173M 0B 100% /packages/mnt/jroute-qfx-ex-x86-32-14.1X53-D46.7
    /dev/md5 26M 26M 0B 100% /packages/mnt/jcrypto-dc-re-14.1X53-D46.7
    /dev/md6 14M 14M 0B 100% /packages/mnt/jsdn-i386-14.1X53-D46.7
    /dev/md7 53M 53M 0B 100% /packages/mnt/jswitch-qfx-ex-x86-32-14.1X53-D46.7
    /dev/md8 24M 24M 0B 100% /packages/mnt/jweb-ex-14.1X53-D46.7
    /dev/md9 12M 12M 0B 100% /packages/mnt/py-base-i386-14.1X53-D46.7
    /dev/md10 605M 10.0K 556M 0% /tmp
    /dev/ad2s1e 504M 552K 463M 0% /config
    procfs 4.0K 4.0K 0B 100% /proc
    /dev/ad1s1f 484M 3.0M 442M 1% /var
    /dev/ad1s1d 1.9G 40K 1.8G 0% /var/tmp
    /dev/ad1s1a 242M 13M 209M 6% /var/log
    /dev/ad1s1e 484M 14K 445M 0% /altconfig
    /dev/ad3s1 1006M 4.0K 926M 0% /user
    /var/jails/rest-api 484M 3.0M 442M 1% /packages/mnt/jroute-qfx-ex-x86-32-14.1X53-D46.7/web-api/var
    /var/jail/etc 484M 3.0M 442M 1% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/etc
    /var/jail/run 484M 3.0M 442M 1% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/run
    /var/jail/tmp 484M 3.0M 442M 1% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/tmp
    /var/tmp 1.9G 40K 1.8G 0% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/tmp/uploads
    devfs 1.0K 1.0K 0B 100% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/dev
    /var/jail/jweb-app 484M 3.0M 442M 1% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/jweb-app
    /dev/md11 504M 51M 413M 11% /var/rundb

    fpc1:
    --------------------------------------------------------------------------
    Filesystem Size Used Avail Capacity Mounted on
    /dev/ad0s1a 1003M 786M 137M 85% /
    devfs 1.0K 1.0K 0B 100% /dev
    /dev/md0 84M 84M 0B 100% /packages/mnt/jbase
    /dev/md1 398M 398M 0B 100% /packages/mnt/jkernel-qfx-ex-x86-32-14.1X53-D46.7
    /dev/md2 52M 52M 0B 100% /packages/mnt/jpfe-qfx-ex-x86-32-14.1X53-D46.7
    /dev/md3 6.2M 6.2M 0B 100% /packages/mnt/jdocs-dc-re-14.1X53-D46.7
    /dev/md4 173M 173M 0B 100% /packages/mnt/jroute-qfx-ex-x86-32-14.1X53-D46.7
    /dev/md5 26M 26M 0B 100% /packages/mnt/jcrypto-dc-re-14.1X53-D46.7
    /dev/md6 14M 14M 0B 100% /packages/mnt/jsdn-i386-14.1X53-D46.7
    /dev/md7 53M 53M 0B 100% /packages/mnt/jswitch-qfx-ex-x86-32-14.1X53-D46.7
    /dev/md8 24M 24M 0B 100% /packages/mnt/jweb-ex-14.1X53-D46.7
    /dev/md9 12M 12M 0B 100% /packages/mnt/py-base-i386-14.1X53-D46.7
    /dev/md10 605M 10.0K 556M 0% /tmp
    /dev/ad2s1e 504M 552K 463M 0% /config
    procfs 4.0K 4.0K 0B 100% /proc
    /dev/ad1s1f 484M 2.0M 443M 0% /var
    /dev/ad1s1d 1.9G 38K 1.8G 0% /var/tmp
    /dev/ad1s1a 242M 15M 207M 7% /var/log
    /dev/ad1s1e 484M 14K 445M 0% /altconfig
    /dev/ad3s1 1006M 4.0K 926M 0% /user
    /var/jails/rest-api 484M 2.0M 443M 0% /packages/mnt/jroute-qfx-ex-x86-32-14.1X53-D46.7/web-api/var
    /var/jail/etc 484M 2.0M 443M 0% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/etc
    /var/jail/run 484M 2.0M 443M 0% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/run
    /var/jail/tmp 484M 2.0M 443M 0% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/tmp
    /var/tmp 1.9G 38K 1.8G 0% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/tmp/uploads
    devfs 1.0K 1.0K 0B 100% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/dev
    /var/jail/jweb-app 484M 2.0M 443M 0% /packages/mnt/jweb-ex-14.1X53-D46.7/jail/var/jweb-app
    /dev/md11 504M 51M 413M 11% /var/rundb