Go to main content

Oracle® ZFS Storage Appliance Administration Guide, Release OS8.7.x

Exit Print View

Updated: September 2017
 
 

Creating a Filesystem or LUN in a Project (CLI)

A filesystem or LUN created within a project inherits the properties of the project. For a list of standard properties that can be inherited, see Inherited Properties. If the project is encrypted, a filesystem or LUN created within it is also encrypted.

If you are adding a filesystem or LUN to a non-default project, the project must already exist. To create a new project, see Creating a Project (CLI).

  1. Go to shares.
    hostname:> shares
  2. Enter select and the project name. In this example, the default project is selected.
    hostname:shares > select default
  3. Enter filesystem and a filesystem name, or lun and a LUN name.

    A name must consist of 1 to 64 characters, but not include spaces or begin with a period. Allowable characters are: alphanumeric and special characters _ - . :

    The following example creates a filesystem named fs-1 in the default project.

    hostname:shares default> filesystem fs-1
    hostname:shares default/fs-1 (uncommitted)> 
  4. If creating a LUN, enter set volsize= and the volume size.
    hostname:shares default/lun1 (uncommitted)> set volsize=2G
                           volsize = 2G (uncommitted)

  5. Enter commit.
    hostname:shares default/fs-1 (uncommitted)> commit
  6. Enter select and a filesystem or LUN name.
    hostname:shares default> select fs-1
  7. List the properties of the share using the get command:
    hostname:shares default/fs-1> get
                            aclinherit = restricted (inherited)
                               aclmode = discard (inherited)
                                 atime = true (inherited)
                       casesensitivity = mixed
                              checksum = fletcher4 (inherited)
                           compression = off (inherited)
                                 dedup = false (inherited)
                         compressratio = 100
                                copies = 1 (inherited)
                              creation = Wed Apr 29 2015 17:57:18 GMT+0000(UTC)
                               logbias = latency (inherited)
                            mountpoint = /export/fs-1 (inherited)
                         normalization = none
                                 quota = 0
                            quota_snap = true
                              readonly = false (inherited)
                            recordsize = 128K (inherited)
                           reservation = 0              
                      reservation_snap = true
                              rstchown = true(inherited)
                        secondarycache = all (inherited)
                                shadow = none
                                nbmand = false (inherited)
                              sharesmb = off (inherited)
                              sharenfs = on (inherited)
                               snapdir = hidden (inherited)
                              utf8only = false
                                 vscan = false (inherited)
                            encryption = off (inherited)
                             snaplabel =
                              sharedav = off (inherited)
                              shareftp = off (inherited)
                             sharesftp = off (inherited)
                             sharetftp = off (inherited)
                                  pool = pool_demo
                        canonical_name = pool_demo/local/default/fs-1
                              exported = true (inherited)
                             nodestroy = false
                          maxblocksize = 1M (inherited)
                          lz4supported =  (inherited)
                            space_data = 31K              
                      space_unused_res = 0
                       space_snapshots = 0
                       space_available = 29.4T
                           space_total = 31K
                              root_acl = owner@:rwxpDaARWcCo:allow,group@:aRc:allow,everyone@:aRc:allow
                            root_group = other
                      root_permissions = 700
                             root_user = nobody
                                origin = 
                           smbshareacl = 
  8. To modify the filesystem or LUN properties, use the set command. Properties are described in Project and Share Properties.

    For example, to disable the NFS protocol for the filesystem named fs-1, enter:

    hostname:shares default/fs-1> set sharenfs=off
                          sharenfs = off (uncommitted)
  9. Enter commit.
    hostname:shares default/fs-1> commit
    hostname:shares default/fs-1>

Related Topics