Junos OS

 View Only
last person joined: 23 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  High storage usage on /var reoccuring regularly

    Posted 29 days ago

    Hi,

    so we have an ex2300-c-12p running 23.4R1-S2.4 that is regularly reporting "Minor alarm set, RE 0 /var partition usage is high". After clearing storage with request system storage cleanup the error is gone for about a day and then comes back. Show system storage looks like this:

    fpc0:
    --------------------------------------------------------------------------
    Filesystem              Size       Used      Avail  Capacity   Mounted on
    /dev/gpt/junos          1.3G       916M       341M       73%  /.mount
    tmpfs                   595M        12K       595M        0%  /.mount/tmp
    /var/jails/rest-api       1.3G       916M       341M     73%  /.mount/packages/mnt/junos-runtime/web-api/var
    tmpfs                   323M       568K       323M        0%  /.mount/mfs

    What is a bit weird here, is that /var/jails/rest-api is showing up here even though web-management is not configured. I am thinking this might be the issue but am not sure and also wouldn't know how to remove this safely. I'm also not sure if this mount is normal or not. We have another EX2300 that does not show this mount but that is running on version 18.2R3-S2.9, so I'm not sure if it's normal for this version for this mount to show up even though web-management is not configured.

    I'd be very happy for any ideas you guys can provide.

    Best regards



    ------------------------------
    KEVIN KROLL
    ------------------------------


  • 2.  RE: High storage usage on /var reoccuring regularly

    Posted 28 days ago

    I don't have an answer, Keven, but I'll be following the discussion with great interest. 

    I started installing my 260  EX-2300-C in 2020 and I must admit I stopped paying attention to this warning or trying to figure out the cause. 

    Michel



    ------------------------------
    MICHEL LAPOINTE
    ------------------------------



  • 3.  RE: High storage usage on /var reoccuring regularly

     
    Posted 27 days ago

    Not sure if you have taken a look at the following KB: https://supportportal.juniper.net/s/article/EX-QFX-How-to-troubleshoot-var-partition-usage-is-high?language=en_US

    Regards,




  • 4.  RE: High storage usage on /var reoccuring regularly

    Posted 21 days ago

    @asharp thanks for the link. Just followed the guide and this is the outcome:

    root@sw1:RE:0% du -cks * | sort -rn
    143652  total
    113596  rundb
    29308   log
    364     db
    144     jail
    56      platform-config
    48      opt
    28      pdb
    24      tmp
    20      jails
    16      home
    12      preserve
    8       transfer
    8       cron
    4       tenant
    4       logical-systems
    4       empty
    4       crash
    4       chroot
    0       run
    0       platform
    0       etc
    

    I then went into rundb, as it seems to take up the most space:

    root@sw1:RE:0% du -cks * | sort -rn
    113592  total
    72800   render.db
    36384   schema.db
    1344    juniper.db
    1120    juniper.eph_junos-analytics
    1120    juniper.dyn
    352     juniper.data
    128     juniper.eph_junos-analytics.data
    96      ui-state.db
    96      chassisd.dynamic.db
    96      cdg.db
    12      agentd
    8       sdb
    8       schema.db.cache
    8       render.db.cache
    4       private
    4       enable-process.data
    4       edflags_map.data
    4       disabled-daemons
    4       daemon_notification_map.data
    0       yangs
    0       juniper.eph_junos-analytics.lck
    0       commit.lck
    

    According to ChatGPT render.db and schema.db are used by web-management. However on this switch the web-management service is not activated. Do you guys think it will be safe to delete them?

    I assume this would solve my issue.

    Best regards



    ------------------------------
    KEVIN KROLL
    ------------------------------



  • 5.  RE: High storage usage on /var reoccuring regularly

     
    Posted 13 days ago

    Sorry for not replying earlier, I was travelling for a period of time to attend an automation conference and associated events, just returned this weekend and playing catchup on everything. 

    render.db - I was under the impression that this was used by the CLI, if I recall correctly it can be rebuilt using "mgd -I" followed by a reboot if it is removed. I vaguely recall this approach being used on some EX when the cli fails to load. 
    I don't know what if any association it has with the web-management. 

    regards