Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2016 15:57:56 +0300
From:      Aleksander Alekseev <afiskon@devzen.ru>
To:        "Dean E. Weimer" <dweimer@dweimer.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Stupid question regarding ZFS and `df -h` output
Message-ID:  <20160410155756.06c88114@portege>
In-Reply-To: <f86919eb99b7da70ca387ad40ff4a6c6@dweimer.net>
References:  <20160410150013.4d34a49b@portege> <f86919eb99b7da70ca387ad40ff4a6c6@dweimer.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Hello, Dean

Thanks for your reply.

> What is the output of "gpart show" as well as "zpool status" I am 
> guessing that part of the disk is used for swap outside of zfs. gpart 
> show will list the gpart partitions that were created and zpool
> status will show the devices that the zfs is created on giving a
> better picture as to why you are only seeing 95G instead of the 128.

```
$ sudo gpart show
Password:
=>       34  250069613  ada0  GPT  (119G)
         34          6        - free -  (3.0K)
         40       1024     1  freebsd-boot  (512K)
       1064        984        - free -  (492K)
       2048    4194304     2  freebsd-swap  (2.0G)
    4196352  245872640     3  freebsd-zfs  (117G)
  250068992        655        - free -  (328K)

$ sudo zpool status
  pool: zroot
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	zroot       ONLINE       0     0     0
	  ada0p3    ONLINE       0     0     0

errors: No known data errors
```

Right, there is a swap partition. But I personally still don't
understand why ZFS partitions size is 117G and `df` shows weird numbers
like 95G and 74G. 

-- 
Best regards,
Aleksander Alekseev
http://eax.me/



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20160410155756.06c88114>