To create a vFiler unit, and assign and configure its resources, you can use the CLI or FilerView.
Before You Begin
The following procedure assumes that you want to set up the vFiler unit for networking (and CIFS if necessary) immediately after creating the vFiler unit. If you want to defer the setup, use the -n option of the vfiler create command. For more information about the vfiler create command, see the na_vfiler(1) man page.
Steps
- Enter the following command:vfiler create vfiler_name -i ip_address [ -i ip_address ] ... path [ path ] ...
vfiler_name is the name of the vFiler unit.
ip_address is an IP address.
path is the complete path name to an existing volume or qtree. The first path name is the storage unit that contains the /etc directory. The etc directory contains the configuration information about the vFiler unit.
Example
The following example creates a vFiler unit using two IP addresses, one volume, and one qtree:vfiler create vfiler1 -i 123.123.123.123 -i 123.123.123.124 /vol/vol1 /vol/vol2/qtree2
- Respond to the prompts to set up the storage system, and to set up CIFS if necessary.
The setup process does the following on the new
vFiler unit:
- Starts NFS (if NFS is licensed on the host storage system) and configures the vFiler unit’s primary storage (root volume) to be exported to the vFiler unit’s administrative host (using an entry in the /etc/exports file)
Configures the vFiler unit’s IP addresses and adds the appropriate entries to /etc/rc
- You can the use the CLI version of the setup command in the context of
a vFiler unit.
The general setup command syntax, when used in the vfiler context, is as follows:
setup [-e ifname:ipv4address|[ipv6 address]:netmask|prefixlen ...]
[ -d DNS domain name:DNS server ipv4 address|[DNS server ipv6 address] ...] [-n NIS domain name:NIS server ipv4 address|[NIS server ipv6 address] ...] [-a ipv4 address|[ipv6 address]| name:ipv4 address|[ipv6 address
] [-p root password]
The options for this command are:
- The -e option allows creation of the vFiler unit's IP addresses'
bindings.
Provide netmask with ipv4 address and prefixlen with ipv6
address. Netmask is of the form a.b.c.d ; where a,b,c and d should be between 0 and 255. Prefixlen is an integer
between 0 and 127
- The -d option allows the specification of a DNS domain name and the
IP addresses of one or more DNS servers.
- The -n
option allows the specification of an NIS domain name and
the IP addresses of one or more NIS servers.
- The-a option allows the administrator host name and IP address to be
specified.
- The-p option allows the password of the root user of the vFiler unit to be set.
- Creates a “pseudo-root” that allows CIFS clients to see all the storage that has been assigned to the vFiler unit as a single tree.
After You Finish
As the vFiler unit administrator, you can now mount the root volume of the vFiler unit, edit /etc/exports to suit your needs and rerun the exportfs command.