This topic provides answers to some frequently asked questions (FAQ) about File Storage NAS (NAS).
What is NAS?
NAS is a distributed file system that provides shared access, scalability, high reliability, and high performance. NAS supports Portable Operating System Interface for UNIX (POSIX)-based APIs. A NAS file system can be mounted on thousands of compute nodes for shared storage. The compute nodes include Elastic Compute Service (ECS) instances, ECS Bare Metal instances, Container Service for Kubernetes (ACK) clusters, elastic container instances (ECIs), Batch Compute instances, Elastic High Performance Computing (E-HPC) clusters, and Platform for AI (PAI) models. You can mount NAS file systems to provide high-performance shared storage for these compute resources. You can seamlessly migrate your business systems to Alibaba Cloud without the need to modify your application code.
What are the use scenarios of NAS?
NAS provides file sharing solutions for ECS instances in the following scenarios:
-
To deploy web servers by attaching multiple ECS instances to a Server Load Balancer (SLB) instance, a shared storage space is required for the ECS instances to share data.
-
To process and analyze log data of multiple ECS instances in a centralized manner, a shared storage space is required for the ECS instances to store the log data.
-
To share files among business groups within an enterprise, a shared storage space is required to store data.
For more information about the use scenarios of NAS, see Scenarios.
Can a NAS file system be mounted on a simple application server?
Yes, but you must ensure the network connectivity between the simple application server and the mount target of the NAS file system.
To mount a NAS file system on a server, we recommend that you use ECS. You must ensure the network connectivity between the ECS instance and the mount target. ECS provides Infrastructure as a Service (IaaS)-level cloud computing services with excellent performance, stability, reliability, and elastic scalability. ECS provides ready-to-use and scalable computing resources, eliminating the need to purchase IT hardware in advance.
How can data be dumped to the IA storage class?
After you enable the lifecycle management feature and create a lifecycle policy, data that meets the rule specified in the lifecycle policy is automatically dumped to the Infrequent Access (IA) storage class. For example, when you create a lifecycle policy for a directory, you can configure the following management rule: Data that is not accessed in the previous 14 days is dumped to the IA storage class.
What protocols are supported by NAS?
NAS supports the following protocols:
-
NFSv3 and NFSv4.0.
-
SMB 2.1 and later versions. NAS also supports operating systems including Windows 7, Windows Server 2008 R2, and later versions. However, NAS does not support Windows Vista, Windows Server 2008, or earlier versions.
How to Choose Between the NFS and SMB File System Protocols?
We recommend that you select a protocol for the file system as needed.
-
If you want to share files among Linux clients, we recommend that you create a Network File System (NFS) file system.
-
If you want to share files among Windows clients, we recommend that you create a Server Message Block (SMB) file system.
-
If you want to share files between Linux clients and Windows clients, we recommend that you create an SMB file system.
How many file systems can be created per account, and what are their limits?
-
Each Alibaba Cloud account can create a maximum of 20 General-purpose NAS file systems and 200 Extreme NAS file systems in a region.
-
The maximum capacity of a Capacity NAS file system is 10 PiB. The maximum capacity of a Performance NAS file system is 1 PiB. The maximum capacity of a Premium NAS file system is 1 PiB. The maximum capacity of an Extreme NAS file system is 256 TiB.
-
A General-purpose NAS file system can contain a maximum of 1 billion files. An Extreme NAS file system can contain a maximum of 0.5 billion files.
For more information, see Limits.
How many file system instances are needed for multiple compute nodes to share files?
You need to create only one file system. You can mount up to 1,000 compute nodes on the file system at the same time. For more information about the limits on file systems, see Limits.
When you create a file system, we recommend that you select the region of the ECS instance on which you want to mount the file system. Otherwise, the ECS instance cannot access the NAS file system. You can use Cloud Enterprise Network (CEN) to mount a file system across regions. However, a cross-region mount degrades the data transfer performance of the file system. For more information, see Create a file system.
Does NAS support active-active and multi-zone scenarios?
NAS does not currently support active-active or multi-AZ scenarios.
If you want to back up data stored in a General-purpose NAS file system, you can enable the data backup and recycle bin features. If you want to back up data stored in an Extreme NAS file system, you can enable the data backup and snapshot features. For more information, see Back up a General-purpose NAS file system, Recycle bin, and Snapshots.
Can I mount a NAS file system on a compute node that is not provided by Alibaba Cloud?
NAS is a file storage service designed for compute nodes such as ECS instances, E-HPC clusters, and ACK clusters. You cannot mount a NAS file system on a compute node that is not provided by Alibaba Cloud, such as a compute node deployed on Tencent Cloud, an on-premises data center, an on-premises server, or a PC. However, you can mount a NAS file system on a client and then use a virtual private network (VPN) gateway or a network address translation (NAT) gateway to access the NAS file system. For more information, see Access an Alibaba Cloud NAS file system from a data center using a NAT Gateway and Access an Alibaba Cloud NAS file system from a data center using a VPN Gateway.
How to choose a file system when migrating data from other storage media to NAS?
NAS supports two file system types: General-purpose NAS file systems and Extreme NAS file systems. If you use general file sharing services, we recommend that you use General-purpose NAS file systems. If your services require low latency, we recommend that you use Extreme NAS file systems. For more information, see How do I select file systems?
The storage class of a file system cannot be changed. For more information about the limits on file systems, see Limits.
Can I change the storage class of a NAS file system?
No, the storage class of a NAS file system cannot be changed. However, you can perform the following operations to purchase a new file system, migrate data from the old file system to the new file system, and then switch workloads to the new file system:
-
Purchase a file system of the required storage class. For more information, see Create a file system.
-
Migrate data from the old file system to the new file system.
You can use one of the following methods to migrate data:
-
Use Data Transport to migrate data. For more information, see Migrate data using Data Online Migration.
-
Use the rsync command-line tool to migrate data. For more information, see Migrate data using the rsync tool.
-
Use the Robocopy tool to migrate data. For more information, see Migrate data using the Robocopy tool.
-
-
Switch workloads to the new file system. For more information, see Switch applications to the new file system.
ImportantAfter you switch workloads to the new file system, retain the data that is stored in the original file system for at least one week. If you immediately delete data from the original file system, data loss may occur due to accidental deletion or accidental synchronization.
Can I directly deploy code in NAS?
NAS is used to store data and does not directly support code deployment. However, NAS can be used together with Elastic Algorithm Service (EAS), ECS, containers, Function Compute, and other computing services to mount code or model files stored in NAS on computing instances.
For example, you can mount a NAS file system in EAS to load and use a model library, whereas the specific code is deployed on an ECS instance or in PAI.
For more information about the use scenarios of NAS, see Scenarios.
How do I deactivate NAS or stop being charged for NAS?
The shutdown feature for the NAS service is temporarily unavailable to prevent disruptions to your business. However, you can use the following methods to shut down the NAS service or stop billing for it.
-
Pay-as-you-go
If you no longer need to use a pay-as-you-go NAS file system, make sure that the data has been migrated or is no longer used. Then, unmount the directory from the compute node, log on to the NAS console, and delete the file system from the file system list. This way, no fee is deducted in the next billing cycle. For more information about how to delete a file system, see Delete a file system.
NoteIf the files that you store in a General-purpose NAS file system have not been accessed for more than 14 days but you still want to retain the files, we recommend that you enable the lifecycle management feature to dump the files to the IA or Archive storage class. This way, you can reduce the costs by 50% to 80%.
For more information about how to switch storage classes using the lifecycle management feature, see Configure lifecycle policies.
-
Subscription
You cannot delete a subscription Extreme NAS file system using the console or by calling API operations. For information about how to delete a subscription Extreme NAS file system, see Unsubscribe from a subscription Extreme NAS file system. If you unsubscribe from a file system, the data stored in the file system is directly deleted. Before you unsubscribe from a file system, make sure that the data has been migrated or is no longer used.
-
Storage plan
For a General-purpose NAS file system to which a storage plan has been attached, you cannot manually detach the storage plan. You can detach the storage plan only by deleting the related General-purpose NAS file system. For information about how to replace a storage plan with a resource plan, see How do I replace a storage plan with a resource plan?
-
Resource plans
For file systems that use resource plans to offset storage capacity fees,if you do not need to use resource plans to offset file system storage capacity,you can unsubscribe from purchased resource plan instances according to the unsubscription rules。For more information,seeUnsubscribe fromNASresource plan instances。