[j-nsp] disaccord in output of "df" and "df <mount-point>" in Junos

Phil Shafer phil at juniper.net
Tue Jan 10 14:41:33 EST 2017


Vincent Bernat writes:
>Unfortunately, there is no "stat" command that would help to have a
>better picture. df will "stat" the file you provide to get the device it
>is stored on and there search the device and its mountpoint to display the
>result.

You'll see the same behavior for symlinks:

% df /var /var/etc
Filesystem         1K-blocks     Used   Avail Capacity  Mounted on
/dev/ad1s1f         35389060 26987142 5570794    83%    /var
/dev/md12            2061412    11132 1885368     1%    /mfs
% ls -dl /var /var/etc
drwxr-xr-x  36 root  wheel  1024 Oct 10 23:46 /var/
lrwxr-xr-x   1 root  wheel    12 Oct 10 23:46 /var/etc@ -> /mfs/var/etc

(on my m7i)

Thanks,
 Phil


More information about the juniper-nsp mailing list