Skip to main content

Create NAS Server


title: "Creating a NAS server" date: 2023-11-27T03:52:37+00:00 published: 2023-11-27T03:52:37+00:00 weight: 50

Network-attached storage (NAS) servers are file-based storage devices that connect to a network. They provide a centralized location for storing and sharing files, and can be accessed by any device on the network, including computers, laptops, smartphones, and tablets.

NAS servers are a reliable and easy-to-use file storage solution. They can be set up quickly and easily, and provide a secure and cost-effective way to store large amounts of data. NAS servers can be scaled to meet the needs of growing businesses, making them a versatile and scalable storage solution.

The StorONE system includes a built-in NAS server for presenting shares over the Network File System (NFS) and Common Internet File System (CIFS) protocols. CIFS is a Server Message Block (SMB) compatible protocol.

Before you begin

Before you can create a NAS server in the StorONE system, you must create a floating IP to assign to the NAS server. This IP floats between the S1 controller nodes, depending on which controller node is hosting the NAS server.

For more information, see Creating floating IPs.

Creating a NAS server

To create a NAS server, use the command

nas_servers create --name=<nas_name> --floatingIps=<name...> [(--nisDomain=<nis_domain> --nisServer=<nis_server>)] --workgroup=<wg_name> | (--activeDirectory=<ad_domain> --username=<ad_username> --password=<ad_password> [--overwriteExistingServer])

Command options

  • --name=<nas_name>: The name of the NAS server. This is an internal reference name. It does not need to match the DNS name of the system.
  • --floatingIps=<name...>: The names of the floating IPs to use for the NAS server.
  • --nisDomain=<nis_domain>: The name of the NIS domain, if required.
  • --nisServer=<nis_server>: The DNS name or IP address of the NIS server, if required.
  • --workgroup=<wg_name>: The workgroup name. The workgroup option is mutually exclusive with the Active Directory (AD) options. If you are only using NFS shares, use the workgroup option and specify any workgroup name.
  • --activeDirectory=<ad_domain>: The AD domain to join to. The AD options are mutually exclusive with the workgroup option.
  • --username=<ad_username>: An AD account username with permissions to join a computer object to the domain.
  • --password=<ad_password>: The password for the specified AD account.
  • --overwriteExistingServer: If the controller node machine object already exists in AD, overwrite it.

Examples

  1. To create a NAS server named s1_nas for use with NFS only, and a floating IP named nfs_nas_ip:
    nas_servers create --name s1_nas --floatingIps nfs_nas_ip --workgroup workgroup
    
  2. To create a NAS server named storone-nas for use with NFS and SMB, joined to the example.org Active Directory domain, and using the nas-ip floating IP:
    nas_servers create --name storone-nas --floatingIps nas-ip --activeDirectory example.org --username psherman --password St0rONEr0x!