Unexpected Output from df Command

Follow

Issue

When I run the df command, I see a lot of unexpected entries on a particular partition. For example, notice all the output on /dev/sda4:

cumulus@switch:~$ df
Filesystem     1K-blocks   Used Available Use% Mounted on
udev               10240      0     10240   0% /dev
tmpfs            1616636  33708   1582928   3% /run
/dev/sda4       15198208 737112  14231048   5% /
tmpfs            4041588      0   4041588   0% /dev/shm
tmpfs               5120      0      5120   0% /run/lock
tmpfs            4041588      0   4041588   0% /sys/fs/cgroup
/dev/sda4       15198208 737112  14231048   5% /var/tmp
/dev/sda4       15198208 737112  14231048   5% /var/spool
/dev/sda4       15198208 737112  14231048   5% /var/lib/libvirt/images
/dev/sda4       15198208 737112  14231048   5% /var/opt
/dev/sda4       15198208 737112  14231048   5% /var/support
/dev/sda4       15198208 737112  14231048   5% /tmp
/dev/sda4       15198208 737112  14231048   5% /var/log
/dev/sda4       15198208 737112  14231048   5% /boot/grub/i386-pc
/dev/sda4       15198208 737112  14231048   5% /usr/local
/dev/sda4       15198208 737112  14231048   5% /srv
/dev/sda4       15198208 737112  14231048   5% /opt
/dev/sda4       15198208 737112  14231048   5% /home
/dev/sda4       15198208 737112  14231048   5% /boot/grub/x86_64-efi
/dev/sda4       15198208 737112  14231048   5% /.snapshots

Environment

  • Cumulus Linux/RMP/VX 3.0.0 and later

Resolution

This output is expected and relates to subvolumes created by the btrfs file system, introduced in Cumulus Linux/Cumulus RMP/Cumulus VX 3.0.0. The file system stores all its data under the same partition, but which partition depends upon a few variables:

  • Your switch manufacturer, which may or may not have installed a diagnostic OS on a partition.
  • The switch CPU (x86 or ARM), as an ARM switch may have one fewer partition.
  • The Cumulus Networks software you are using. Cumulus RMP uses /dev/mmcblk0 instead of /dev/sda, which is used by Cumulus Linux and Cumulus VX.

You can learn more about btrfs and subvolumes here.

The btrfs feature will play a larger role in Cumulus Networks software in the near future, but for the time being, you can ignore this output.

 

Have more questions? Submit a request

Comments

Powered by Zendesk