zfs compression and nfs

Andrei Kolu antik at bsd.ee
Mon Feb 2 04:29:29 PST 2009


I encouontered strange problem with zfs compressed volume that is shared 
out over nfs.

volume is created with command:

# zpool create example /dev/da1

# zfs set compression=gzip data/configuration

Now my "data" is shared with NFS and all servers have access to 
"configuration" volume. All NFS clients can write to volume and show 
written files over network. What is missing is files from server side- 
it does not show any file on compressed volume that is written by 
clients over NFS. If I copy same files/directories to nfs root eg. 
"data" then I can access files from server. Where are my files?

# zpool status
  pool: data
 state: ONLINE
 scrub: scrub in progress, 19.58% done, 1h9m to go

        NAME        STATE     READ WRITE CKSUM
        data        ONLINE       0     0     0
          da1       ONLINE       0     0     0

errors: No known data errors

More information about the freebsd-fs mailing list