ZFS: pool vs FS

Dan Nelson dnelson at allantgroup.com
Wed Jan 22 20:51:07 UTC 2014


In the last episode (Jan 22), Chris Stankevitz said:
> Please identify any incorrect statements:
> 
> 1. Filesystems, not pools, can be mounted
> 
> 2. "zpool create foo /dev/bar" makes new pool called foo
> 
> 3. (2) does not create a file system

"zpool create" does create a filesystem.  The manpage doesn't say so
explicitly, but does document the -O flag, which only makes sense if a
filessytem is created to apply the properties to:

  -O file-system-property=value [-O file-system-property=value] ...

        Sets the given file system properties in the root file system
        of the pool. See zfs(8) Properties for a list of valid prop-
        erties that can be set.

 
> 4. After (2), /foo is mounted and ready for writing
> 
> 5. (4) violates (1)

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list