Involved product: N8500 V200R001
Application scenario: enabling the quota of a file system that has massive small files.
When a user enables the quota of a file system, the system indicates that its takes a long time for the quota to take effect and ongoing services need to be interrupted.
Step 1 Check the number of inodes of the file system.
1.1. Log in to the N8000 as user support and run df -hi /vx/fsname to check the number of inodes on the file system.
1.2. If there are more than 30 million inodes in use, do not enable the quota and go to step 2.
Step 2 Create a new file system of the same size as that of the original one.
2.1. Create a new file system and set it to be equally sized as the original file system.
2.2. Enable the quota of the new file system.
2.3. Run the cp -a command to copy data from the original file system to the new file system.
Enabling the quota of a file system prompts the system to calculate the files on the file system. If a large number of files exist on the file system, calculating them consumes a long time. During the calculation, the file system is unavailable and ongoing services are interrupted.
During site deployment, make clear about customer's requirement on quota. If the customer requires the quota function, enable it when creating a file system. Otherwise, disable the quota function. In doing so, the performance decrease caused by enabling quota can be prevented.