Description

Provide a description  of the Juniper EX-series Ethernet switches file system.

Symptoms


Solution

Overview of the EX-series Ethernet switches File System for the EX 3200 and EX 4200:

The following list shows the key directories and file locations:

  1. / - The root file system. Located on the switch’s boot device, which is normally the primary compact flash drive.

  • /config - This directory is located on the boot device (normally the primary compact flash drive) and contains the current operational switch configuration and the last three committed configurations as well as the rescue configuration if one is saved. ( juniper.conf.gz , juniper.conf.1.gz -juniper.conf.3.gz and rescue.conf.gz)

    • /config/db/config : This contains up to 46 additional previous versions of committed configurations, which are stored in the files juniper.conf.4.gz through juniper.conf.49.gz.

  • /var - This directory is also located on the boot device. This file system contains the following subdirectories:

    • /var/db/config : This has a symbolic link to /config/db/config

  • /var/home : Contains users’ home directories, which are created when you create user access accounts. For users using SSH authentication, their .ssh file, which contains their SSH key, is placed in their home directory. When users save or load configuration files, those files are loaded from their home directory unless the users specify a full path name.

  • /var/log : Contains system log and tracing files.  

  • /var/tmp : Contains daemon core files (if present) and is the recommended location for storing temporary software and configuration files.

NOTE:    In order to keep space free on the filesystem, the contents of the /var directory are deleted upon a successful software upgrade. This makes it especially important to backup  wanted files and logs.  This directory should not be deleted manually.

The command  " show system storage "  can be used to get information about the file system and storage drive.

switch> show system storage
Filesystem              Size       Used      Avail  Capacity   Mounted on
/dev/da0s2a              92M        83%        14M                     /
devfs                   1.0K       1.0K         0B     100%           /dev
devfs                   1.0K       1.0K         0B     100%           /dev/
/dev/md0                 30M        30M         0B      100%      /packages/mnt/jbase
/dev/md1                 12M        12M         0B      100%      /packages/mnt/jcrypto-ex-9.0R2.10
/dev/md2                3.9M       3.9M         0B      100%      /packages/mnt/jdocs-ex-9.0R2.10
/dev/md3                 67M        67M         0B      100%      /packages/mnt/jkernel-ex-9.0R2.10
/dev/md4                 11M        11M         0B      100%      /packages/mnt/jpfe-ex42x-9.0R2.10
/dev/md5                 26M        26M         0B      100%      /packages/mnt/jroute-ex-9.0R2.10
/dev/md6                9.6M       9.6M         0B      100%      /packages/mnt/jswitch-ex-9.0R2.10
/dev/md7                 13M        13M         0B      100%      /packages/mnt/jweb-ex-9.0R2.10
/dev/md8                 63M       8.0K        58M        0%      /tmp
/dev/da0s2f              61M       650K        56M        1%      /var
/dev/da0s3e              28M       154K        25M        1%      /config
/dev/da0s3d             157M       4.0K       145M        0%      /var/tmp
/dev/md9                 59M       7.0M        47M       13%      /var/rundb
procfs                  4.0K       4.0K         0B      100%          /proc
/var/jail/etc           61M       650K        56M        1%       /packages/mnt/jweb-ex-9.0R2.10/jail/var/etc
/var/jail/run           61M       650K        56M        1%       /packages/mnt/jweb-ex-9.0R2.10/jail/var/run
/var/jail/tmp           61M       650K        56M        1%       /packages/mnt/jweb-ex-9.0R2.10/jail/var/tmp
/var/tmp                157M       4.0K       145M      0%        /packages/mnt/jweb-ex-9.0R2.10/jail/var/tmp/uploads
devfs                   1.0K       1.0K         0B      100%      /packages/mnt/jweb-ex-9.0R2.10/jail/dev