Managing File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014

How to Create an ZFS File System

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Create a ZFS storage pool.

    The following example illustrates how to create a simple mirrored storage pool named tank and a ZFS file system named tank in one command. Assume that the whole disks /dev/dsk/c1t0d0 and /dev/dsk/c2t0d0 are available for use.

    # zpool create tank mirror c1t0d0 c2t0d0
  3. Create a ZFS file system.
    # zfs create tank/fs

    The new ZFS file system, tank/fs, can use as much of the disk space as needed, and is automatically mounted at /tank/fs.

  4. Confirm that the file system is created.
    # zfs list -r tank
    tank      117K   268G    21K  /tank
    tank/fs    21K   268G    21K  /tank/fs