要修改各文件系统或 LUN 的属性,请使用以下步骤。
hostname:> shares
hostname:shares> select default
hostname:shares default> select fs-1
将显示类似于以下示例的项目属性。
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 2018 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)
                        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 =
      例如,要对名为 fs-1 的文件系统禁用 NFS 协议,请输入:
hostname:shares default/fs-1> set sharenfs=off
                      sharenfs = off (uncommitted)
      hostname:shares default/fs-1> commit