You can automatically extend an existing file system created with AVM system- defined or user-defined storage pools. The file system automatically extends by using space from the storage system and storage pool with which the file system is associated.
If you set the (slice=no) option on the file system, the actual file system size might be bigger than the size you specify for the file system, and could exceed the maximum size. In this case, you receive a warning indicating that the file system size might exceed the maximum size, and automatic extension fails. If you do not specify the file system slice option (-option slice=yes|no) when you create the file system, the file system defaults to the setting of the storage pool.
"Modify system-defined and user-defined storage pool attributes" on page 74 describes the procedure to modify the default_slice_flag attribute on the storage pool.
Use the -modify option to enable automatic extension on an existing file system. You can also set the HWM and maximum size.
To enable automatic file system extension and options:
◆ "Enable automatic file system extension" on page 62
◆ "Set the HWM" on page 63
◆ "Set the maximum file system size" on page 64
You can also enable Virtual Provisioning at the same time that you create or extend a file system. "Enable Virtual Provisioning" on page 65 describes the procedure to enable Virtual Provisioning on an existing file system.
"Enable automatic extension, Virtual Provisioning, and all options simultaneously" on page 67 describes the procedure to simultaneously enable automatic extension, Virtual Provisioning, and all options on an existing file system.
Enable automatic file system extension
If the HWM or maximum size is not set, the file system automatically extends up to the default maximum size of 16 TB when the file system reaches the default HWM of 90 percent, if the space is available.
An error message appears if you try to enable automatic file system extension on a file system created manually.
Note: The HWM is 90 percent by default when you enable automatic file system extension. Action
To enable automatic extension on an existing file system, use this command syntax: $ nas_fs -modify <fs_name> -auto_extend {no|yes}
where:
<fs_name> = name of the file system Example:
To enable automatic extension on an existing file system ufs3, type: $ nas_fs -modify ufs3 -auto_extend yes
Output id = 28 name = ufs3 acl = 0 in_use = True type = uxfs worm = off volume = v157 pool = clar_r5_performance member_of = root_avm_fs_group_3 rw_servers= server_2 ro_servers= rw_vdms = ro_vdms = auto_ext = hwm=90%,virtual_provision=no stor_devs = APM00042000818-001F,APM00042000818-001D APM00042000818-0019,APM00042000818-0016 disks = d20,d18,d14,d11
disk=d20 stor_dev=APM00042000818-001F addr=c0t1l15 server=server_2 disk=d20 stor_dev=APM00042000818-001F addr=c32t1l15 server=server_2 disk=d18 stor_dev=APM00042000818-001D addr=c0t1l13 server=server_2 disk=d18 stor_dev=APM00042000818-001D addr=c32t1l13 server=server_2 disk=d14 stor_dev=APM00042000818-0019 addr=c0t1l9 server=server_2 disk=d14 stor_dev=APM00042000818-0019 addr=c32t1l9 server=server_2 disk=d11 stor_dev=APM00042000818-0016 addr=c0t1l6 server=server_2 disk=d11 stor_dev=APM00042000818-0016 addr=c32t1l6 server=server_2
Set the HWM
With automatic file system extension enabled on an existing file system, use the -hwm option to set a threshold. To specify a threshold, type an integer between 50 and 99 percent; the default is 90 percent.
If the HWM or maximum size is not set, the file system automatically extends up to the default maximum size of 16 TB when the file system reaches the default HWM of 90 percent, if the space is available. The value for maximum size, if specified, has an upper limit of 16 TB.
Action
To set the HWM on an existing file system, with automatic file system extension enabled, use this command syntax:
$ nas_fs –modify <fs_name> -hwm <50-99>% where:
<fs_name> = name of the file system
<50-99> = an integer representing the file system usage point at which you want it to automatically extend
Example:
To set the HWM on an existing file system ufs3, with automatic extension already enabled, type: $ nas_fs -modify ufs3 -hwm 85%
Output id = 28 name = ufs3 acl = 0 in_use = True type = uxfs worm = off volume = v157 pool = clar_r5_performance member_of = root_avm_fs_group_3 rw_servers= server_2 ro_servers= rw_vdms = ro_vdms = auto_ext = hwm=85%,virtual_provision=no stor_devs = APM00042000818-001F,APM00042000818-001D, APM00042000818-0019,APM00042000818-0016 disks = d20,d18,d14,d11
disk=d20 stor_dev=APM00042000818-001F addr=c0t1l15 server=server_2 disk=d20 stor_dev=APM00042000818-001F addr=c32t1l15 server=server_2 disk=d18 stor_dev=APM00042000818-001D addr=c0t1l13 server=server_2 disk=d18 stor_dev=APM00042000818-001D addr=c32t1l13 server=server_2 disk=d14 stor_dev=APM00042000818-0019 addr=c0t1l9 server=server_2 disk=d14 stor_dev=APM00042000818-0019 addr=c32t1l9 server=server_2 disk=d11 stor_dev=APM00042000818-0016 addr=c0t1l6 server=server_2 disk=d11 stor_dev=APM00042000818-0016 addr=c32t1l6 server=server_2
Set the maximum file system size
Use the -max_size option to specify a maximum size to which a file system can grow. To specify the maximum size, type an integer and specify T for TB, G for GB (default), or M for MB.
When you enable automatic file system extension, the file system automatically extends up to the default maximum size of 16 TB. Set the HWM at which you want the file system to automatically extend. If the HWM is not set, the file system automatically extends up to 16 TB when the file system reaches the default HWM of 90 percent, if the space is available.
Action
To set the maximum file system size with automatic file system extension already enabled, use this command syntax:
$ nas_fs -modify <fs_name> -max_size <integer>[T|G|M] where:
<fs_name> = name of the file system
<integer> = maximum size requested in MB, GB, or TB Example:
To set the maximum file system size on the existing file system, type: $ nas_fs -modify ufs3 -max_size 16T
Output id = 28 name = ufs3 acl = 0 in_use = True type = uxfs worm = off volume = v157 pool = clar_r5_performance member_of = root_avm_fs_group_3 rw_servers= server_2 ro_servers= rw_vdms = ro_vdms =
auto_ext = hwm=85%,max_size=16769024M,virtual_provision=no
stor_devs = APM00042000818-001F,APM00042000818-001D, APM00042000818-0019,APM00042000818-0016 disks = d20,d18,d14,d11
disk=d20 stor_dev=APM00042000818-001F addr=c0t1l15 server=server_2 disk=d20 stor_dev=APM00042000818-001F addr=c32t1l15 server=server_2 disk=d18 stor_dev=APM00042000818-001D addr=c0t1l13 server=server_2 disk=d18 stor_dev=APM00042000818-001D addr=c32t1l13 server=server_2 disk=d14 stor_dev=APM00042000818-0019 addr=c0t1l9 server=server_2 disk=d14 stor_dev=APM00042000818-0019 addr=c32t1l9 server=server_2 disk=d11 stor_dev=APM00042000818-0016 addr=c0t1l6 server=server_2 disk=d11 stor_dev=APM00042000818-0016 addr=c32t1l6 server=server_2