This is due to the version of df you're using. The output you're seeing is from /opt/local/bin/df and is exhibiting a bug in the coreutils package in pkgsrc (q.v. https://github.com/joyent/pkgsrc/issues/336 <https://github.com/joyent/pkgsrc/issues/336>).
If you use /usr/bin/df you'll see output similar to the Solaris 10 example you gave. If you upgrade your pkgsrc coreutils package and use /opt/local/bin/df then you'll see output similar to the first example, but it will also include the root filesystem zfs dataset. Sorry for the confusion, but at least it has a simple solution :-) -- Brian Bennett Systems Engineer, Cloud Operations Joyent, Inc. | www.joyent.com <http://www.joyent.com/> > On Dec 14, 2016, at 9:19 AM, the outsider <[email protected]> wrote: > > Has anyone managed to get net-snmp running in such a way that one can observe > the disk-usage of a zone’s directory? > > I want to observe the disk usage of the /opt directory since that is the dir > where all my data is stored, but I can’t get net-snmp to show me the usage. > > When I do df -h from the root of the zone it doesn’t show the / (root) > directory too. > > Df -h shows: > Filesystem Size Used Avail Use% Mounted on > /usr/local 1001G 446G 556G 45% /usr/local > /sbin 263M 241M 22M 92% /sbin > /lib/svc/manifest 2.2T 98G 2.1T 5% /lib/svc/manifest > /usr/lib/libc/libc_hwcap1.so.1 433M 374M 59M 87% /lib/libc.so.1 > swap 1.0G 43M 982M 5% /etc/svc/volatile > swap 1.0G 43M 982M 5% /tmp > swap 1.0G 43M 982M 5% /var/run > > Doing the same from a Solaris 10 zone results in this list, where I can see / > > Filesystem size used avail capacity Mounted on > / 12G 3.4G 8.2G 30% / > /dev 12G 3.4G 8.2G 30% /dev > /lib 12G 9.5G 2.3G 81% /lib > /platform 12G 9.5G 2.3G 81% /platform > /sbin 12G 9.5G 2.3G 81% /sbin > /usr 12G 9.5G 2.3G 81% /usr > proc 0K 0K 0K 0% /proc > ctfs 0K 0K 0K 0% /system/contract > mnttab 0K 0K 0K 0% /etc/mnttab > objfs 0K 0K 0K 0% /system/object > swap 652M 344K 652M 1% /etc/svc/volatile > /usr/lib/libc/libc_hwcap2.so.1 12G 9.5G 2.3G > 81% /lib/libc.so.1 > fd 0K 0K 0K 0% /dev/fd > swap 652M 36K 652M 1% /tmp > swap 652M 16K 652M 1% /var/run > smartos-discuss | Archives > <https://www.listbox.com/member/archive/184463/=now> > <https://www.listbox.com/member/archive/rss/184463/26986985-d0246faa> | > Modify <https://www.listbox.com/member/?&> Your Subscription > <http://www.listbox.com/>
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
