This section provides steps and examples for creating ZFS file systems.
The zfs create command automatically mounts the newly created file system, if it is created successfully. By default, file systems are mounted as /dataset, using the dataset name provided with the create subcommand. In this example, the newly created jeff file system is mounted at /tank/home/jeff. For more information about automatically managed mount points, see Managing ZFS Mount Points.
For more information about the zfs create command, see the zfs(8) man page.
In the following example, a file system named jeff is created in the tank/home file system.
$ zfs create tank/home/jeffExample 29 Creating a ZFS File System Using File System Properties
You can set file system properties when a file system is created. In the following example, a mount point of /export/zfs is created for the tank/home file system:
$ zfs create -o mountpoint=/export/zfs tank/home
For more information about file system properties, see Introducing ZFS Properties.