Description

This article explains the output of executing the show system storage command in MX Series routers that run Junos OS with upgraded FreeBSD 10 kernel (Junos OS 15.1 and later). It uses a question and answer (Q&A) format to walk through some of the common queries related to the storage system in Junos OS with upgraded FreeBSD.

 

Solution

The following outputs show significant difference between show system storage executed on a router that is running FreeBSD 6.1 (prior to 15.1) and that running the upgraded FreeBSD 10 (15.1 onwards).

Output 1

show system storage executed on Junos OS with FreeBSD 6.1

 
labroot@optimus-re0> show system storage  
Filesystem            Size       Used      Avail  Capacity   Mounted on
/dev/ad0s1a           3.4G       623M       2.5G    20%      /          << Compact Flash (CF)
devfs                 1.0K       1.0K       0B      100%     /dev
/dev/md0              81M        81M        0B      100%     /packages/mnt/jbase
/dev/md1              102M       102M       0B      100%     /packages/mnt/jkernel64-15.1R5-S3.4
/dev/md2              392M       392M       0B      100%     /packages/mnt/jpfe-X960-15.1R5-S3.4
/dev/md3              11M        11M        0B      100%     /packages/mnt/jdocs-15.1R5-S3.4
/dev/md4              171M       171M       0B      100%     /packages/mnt/jroute-15.1R5-S3.4
/dev/md5              62M        62M        0B      100%     /packages/mnt/jcrypto64-15.1R5-S3.4
/dev/md6              234K       234K       0B      100%     /packages/mnt/jmacsec-15.1R5-S3.4
/dev/md7              74M        74M        0B      100%     /packages/mnt/jpfe-common-15.1R5-S3.4
/dev/md8              1.4M       1.4M       0B      100%     /packages/mnt/jplatform-15.1R5-S3.4
/dev/md9              630M       630M       0B      100%     /packages/mnt/jruntime-15.1R5-S3.4
/dev/md10             87M        87M        0B      100%     /packages/mnt/jruntime64-15.1R5-S3.4
/dev/md11             27M        27M        0B      100%     /packages/mnt/jweb-15.1R5-S3.4
/dev/md12             12M        12M        0B      100%     /packages/mnt/py-base-i386-15.1R5-S3.4
/dev/md13             7.9G       12K        7.2G    0%       /tmp
/dev/md14             7.9G       1.8M       7.2G    0%       /mfs
/dev/ad0s1e           383M       102K       353M    0%       /config
procfs                4.0K       4.0K       0B      100%     /proc
/dev/ad1s1f           18G        1.9G       14G     12%      /var     << Hard Disk (SSD)
/var/jails/rest-api   18G        1.9G       14G     12%      /packages/mnt/jroute-15.1R5-S3.4/web-api/var
/var/jail             18G        1.9G       14G     12%      /packages/mnt/jweb-15.1R5-S3.4/jail/var
/var/log              18G        1.9G       14G     12%      /packages/mnt/jweb-15.1R5-S3.4/jail/var/log
devfs                 1.0K       1.0K       0B      100%     /packages/mnt/jweb-15.1R5-S3.4/jail/dev

 

Output 2

show system storage executed on Junos OS with upgraded FreeBSD 10 (Junos OS 15.1+)

 
labroot@PE1> show system storage
Filesystem           Size       Used      Avail  Capacity   Mounted on
/dev/md0.uzip        22M        22M       0B      100%      /
devfs                1.0K       1.0K      0B      100%      /dev
/dev/gpt/junos       21G        11G       8.0G    59%       /.mount
devfs                1.0K       1.0K      0B      100%      /.mount/dev
/dev/md1.uzip        24M        24M       0B      100%      /.mount/packages/mnt/os-libs-11
/dev/md2.uzip        25M        25M       0B      100%      /.mount/packages/mnt/os-runtime
procfs               4.0K       4.0K      0B      100%      /.mount/proc
tmpfs                20G        12K       20G     0%        /.mount/tmp
/dev/md3.uzip        1.5M       1.5M      0B      100%      /.mount/packages/mnt/os-zoneinfo64-cbccbd33
/dev/md4.uzip        19M        19M       0B      100%      /.mount/packages/mnt/os-libs-compat32-11
/dev/md5.uzip        540K       540K      0B      100%      /.mount/packages/mnt/os-compat32
/dev/md6.uzip        10M        10M       0B      100%      /.mount/packages/mnt/py-extensions32-0d8a2256
/dev/md7.uzip        14M        14M       0B      100%      /.mount/packages/mnt/py-base32-9121d5fe
/dev/md8.uzip        8.0M       8.0M      0B      100%      /.mount/packages/mnt/os-crypto
/dev/md9.uzip        17M        17M       0B      100%      /.mount/packages/mnt/junos-net
/dev/md10.uzip       19M        19M       0B      100%      /.mount/packages/mnt/junos-libs
/dev/md11.uzip       100M       100M      0B      100%      /.mount/packages/mnt/junos-libs-compat32
/dev/md12.uzip       600M       600M      0B      100%      /.mount/packages/mnt/junos-runtime
/dev/md13.uzip       100M       100M      0B      100%      /.mount/packages/mnt/junos-runtime/web-api/jail/junos-libs
/dev/md14.uzip       17M        17M       0B      100%      /.mount/packages/mnt/junos-runtime/web-api/jail/junos-net
/var/jails/rest-api  21G        11G       8.0G     59%      /.mount/packages/mnt/junos-runtime/web-api/var
/dev/md15            18M        18M       0B      100%      /.mount/packages/mnt/junos-runtime/web-api/jail/rt
/dev/md16.uzip       6.6M       6.6M      0B      100%      /.mount/packages/mnt/junos-libs-compat32-mx
/dev/md17.uzip       278M       278M      0B      100%      /.mount/packages/mnt/junos-runtime-mx
/dev/md18.uzip       49M        49M       0B      100%      /.mount/packages/mnt/junos-platform
/dev/md19.uzip       36M        36M       0B      100%      /.mount/packages/mnt/junos-modules64-93c47103
/dev/md20.uzip       5.3M       5.3M      0B      100%      /.mount/packages/mnt/junos-modules-mx64-348530ea
/dev/md21.uzip       674K       674K      0B      100%      /.mount/packages/mnt/junos-libs-mx
/dev/md22.uzip       30M        30M       0B      100%      /.mount/packages/mnt/junos-dp-crypto-support-mtx32-2f9630c7
/dev/md23.uzip       239M       239M      0B      100%      /.mount/packages/mnt/junos-daemons64-35a1c9ef
/dev/md24.uzip       8.6M       8.6M      0B      100%      /.mount/packages/mnt/junos-daemons-mx64-3a712ed4
/dev/md25.uzip       15M        15M       0B      100%      /.mount/packages/mnt/jsdn32-f9bb71a9
/dev/md26.uzip       12M        12M       0B      100%      /.mount/packages/mnt/jsd-jet-132-532380f2
/dev/md27.uzip       589M       589M      0B      100%      /.mount/packages/mnt/jpfe-wrlinux32-51442486
/dev/md28.uzip       571M       571M      0B      100%      /.mount/packages/mnt/jpfe-X96032-a9541135
/dev/md29.uzip       60M        60M       0B      100%      /.mount/packages/mnt/jpfe-common32-885821b2
/dev/md30.uzip       563M       563M      0B      100%      /.mount/packages/mnt/jpfe-X32-560db519
/dev/md31.uzip       452M       452M      0B      100%      /.mount/packages/mnt/jfirmware32-bcab9ac8
/dev/md32.uzip       13M        13M       0B      100%      /.mount/packages/mnt/jdocs32-002214a3
tmpfs                2.7G       1.4M      2.7G    0%        /.mount/mfs
junosprocfs          4.0K       4.0K      0B      100%      /.mount/junosproc
 

Q1. Why do I not see CF and SSD after upgrade?

Junos OS with upgraded FreeBSD 10 has two volumes: dev/gpt/junos and dev/gpt/oam . The /junos volume refers to SSD and the /oam volume refers to CF.

 

Q2. I can see the /junos volume in the output of show system storage but why can't I see /oam ?

labroot@PE1> show system storage | match "dev/gpt/junos|dev/gpt/oam"
/dev/gpt/junos           21G        11G       8.0G       59%  /.mount

In Junos OS with upgraded FreeBSD 10, compact flash (CF) is not used to boot a device anymore. Only if SSD fails will the device boot from CF, that is, SSD and CF will not be used (or displayed in the output) simultaneously.

 

  Q3. How can I see the /oam partition at any given time?

Details on the /oam and /junos partitions can be gathered at any given time from the shell by using the gpart command:

root@PE1:/var/home/labroot # gpart show -p
=>      34  62533229    ada0  GPT  (30G)
          34         6          - free -  (3.0K)
          40        56  ada0p1  freebsd-boot  (28K)
          96  16777209  ada0p3  freebsd-swap  (8.0G)
         16777305         7          - free -  (3.5K)
         16777312  45755937  ada0p2  freebsd-ufs  (22G)
          62533249        14          - free -  (7.0K)
 
=>     34  7980269    ada1  GPT  (3.8G)
         34        6          - free -  (3.0K)
         40       56  ada1p1  freebsd-boot  (28K)
         96  7980193  ada1p2  freebsd-ufs  (3.8G)
         7980289       14          - free -  (7.0K)
 

Observe the SSD, which is 30G and partitioned as:

  • swap: 8GB
  • junos: 22G

The CF is 3.8G and partitioned as:

  • oam: 3.8G
 

Note: To confirm whether the device is running FreeBSD or upgraded FreeBSD, the following output from the router shell can be examined:

lab@MX240-RE0> start shell
% sysctl kern.osreldate
kern.osreldate: 601000  <<< starts with 6; this is FreeBSD6 base (6.1)

lab@MX240-RE0> start shell
% sysctl kern.osreldate
kern.osreldate: 1001510  <<< starts with 10; this is FreeBSD10 base or upgraded FreeBSD
 

For additional details about Junos OS with upgraded FreeBSD, refer to KB30473 - Understanding Junos OS with upgraded FreeBSD for Junos Release 15.1 or later [juniper.net] .

 

Related Information