This application relates to and claims priority from Japanese Patent Application No. 2007-243504, filed on Sep. 20, 2007, the entire disclosure of which is incorporated herein by reference.
1. Field of the Invention
The invention relates to a storage system provided with a storage subsystem and a storage device, and particularly relates to a system with a quota management function.
2. Description of Related Art
A quota management function in a storage system indicates a function limiting the usage of disk capacity to prevent a specific user from weighing down a system by excessively engaging the disk capacity.
Regarding prior art related to a storage device having a quota function, JP2005-056011 A discloses a method of managing usage of a file system for a user, the file system being connected to the user via a network, the method including managing the specified size of write to the file system for the user as an accumulated value; specifying a time for making a judgment about the limitation on disk usage from the accumulated value and a predetermined threshold value; and making the judgment about the limitation on the disk usage at the specified time.
Also, JP08-263340 A discloses a file management system having an automatic expansion function for automatically executing area expansion processing for a set automatic expansion size, the system including expansion size adjustment means for adjusting the automatic expansion size to an appropriate value for each file.
In a NAS management device, a quota can be managed for each file system or directory. In order to facilitate user operation smoothly, an administrator of the NAS device needs to increase the quota assigned to each directory in accordance with the usage status of a storage device by a user.
At this point, when a quota total for plural directories may exceed a limit value set for the file system, the NAS device administrator needs to expand the disk capacity assigned to the file system in advance.
In order to expand the disk capacity assigned to the file system, for example, a new logical unit needs to be created, and then it needs to be assigned to the file system. The former is performed by an administrator of a disk device, while the latter is performed by the NAS device administrator, which is why it has been difficult to integrate both sides.
For the above reason, failures may occur during the execution of an operation by a user, for example, when the directory quota cannot be expanded, or when a directory lacking in storage resources, which are to be assigned from the file system, emerges even if the directory quota can be expanded.
The invention has been made in light of the above, and therefore has an object to provide a storage subsystem and a storage control method that can autonomously expand a limit value for a storage capacity in response to quota expansion.
In order to attain the above object, according to the invention, provided is a storage subsystem characterized by autonomously detecting quota expansion for a user; comparing a total of plural quotas with a limit value; and allocating a storage area set in a storage device in advance to the limit value if, based on the result of the comparison, the total value exceeds the limit value.
According to the invention, a storage subsystem and a storage control method that can autonomously expand a limit value for a storage capacity in accordance with quota expansion can be provided.
An embodiment of the invention will be described below.
The NAS device is provided with a control circuit 16 including a CPU, memory that stores a program that realizes a NAS OS; a built-in disk area 20 including plural management tables; and a network interface (NW IF) 22 connected to the network 14. The network to which the NAS device is connected may be an IP network, or a SAN when the NAS device is configured as a NAS head.
A storage area for the plural disks in the storage device 12 has been virtualized as logical units. The logical units are assigned static storage areas, and include first type logical units 24—the capacity of which cannot be expanded, and a second type logical unit 26 which serves as a pool volume and in which units for a storage area can be sequentially allocated to a virtual volume. An example of a preferred storage resource for the storage device is a hard disk, but it may be an optical disk or semiconductor memory such as flash memory.
The built-in disk area 20 in the NAS device in
In
The system administrator sets the total storage capacity for each file system by using a GUI or command, and recognizes the logical units in the storage device and maps them to the file systems.
Also, the system administrator can set the directory quota for each directory via the GUI or command. When the directory quota is set, a system administrator of the NAS device can manage the upper limit of a block capacity or the number of i-nodes for each directory.
The NAS manager 32 registers the directory quota in the table shown in
Next, a GUI used by a system administrator of the NAS device for setting the directory quota will be described.
Reference numeral 40 denotes an area where a system administrator selects a file system; 42 denotes an area where a directory belonging to the relevant file system is selected; 44 denotes an area where a directory quota is input; and 46 denotes an area that targets an input for determining the input directory quota. When the system administrator conducts the above input, the screen displays, for each file system (FS1), the total storage capacity mapped to the relevant file system, directories (A, B, C, . . . ) denoted by reference numeral 48, a quota for each directory, and a usage rate of a disk capacity for each directory.
The NAS manager sequentially allocates the total capacity, which has been assigned to the file system, to the directories. For example, when the directory quota for a certain directory is expanded, and the storage area corresponding to the directory is consumed by a user, data may not be written to another directory even if the storage capacity for which data has been written by a user has not reached the quota for the other directory unless the total storage capacity of the file system is expanded. In light of the above, before this occurs, the NAS device expands the total storage area of the file system.
Next, operation for expanding the total capacity of the file system which is executed by the NAS manager will be explained with reference to the flowchart in
The directory quota management program 32D accesses the directory quota information management database (or alternatively accesses the management table (FIG. 6)), and acquires the directory quota for each directory (S802).
The file total capacity control program 32B, which has acquired the directory quotas for all the directories (S804), totals all the directory quotas (S806).
The file total capacity control program 32B accesses the file system management database 34 (or alternatively accesses the management table (FIG. 5)), and acquires the total storage capacity set for the file system (S808).
Then, the file total capacity control program 32B compares the total value with the total capacity of the file system (S810), and terminates processing if the totaled value is smaller than the total storage capacity assigned to the file system.
Meanwhile, if the total value is greater than or equal to the total storage capacity assigned to the file system, the file total capacity control program 32B suspends processing involving I/O from a user, and executes processing for increasing the total capacity of the file system during the stop. The details of that processing are explained in
As shown in
The OS main control program that has received the request issues a freeze command to the file system in the NAS device 10 (S1002). A file system that has received a freeze command does not respond to file access from a user.
During this time, the file system total capacity control program 32B executes expansion processing (S1004) for the capacity of the file system.
Expansion processing is executed by integrating (S816) the logical unit that has been set as one for the NAS device in advance (S824) with the logical unit that has already been assigned to the file system. This uniting is performed by the disk area uniting program 32F in the NAS manager. The disk area uniting program is realized by a conventional LVM (Logical Volume Manger). The file system is provided to a user device by the OS in the NAS device.
The disk area uniting program 32F recognizes a logical unit that has been set for the NAS device in advance and that has not been assigned to the file system in the storage device; and upon receiving a request from the file system total capacity control program 32B (S814), integrates the logical unit with the logical unit assigned to the file system (S816).
Then, the disk area uniting program 32F notifies the file system total capacity control program 32B that the logical units have been integrated; and the total capacity of the file system has been expanded (S818). Upon receiving the notification, the file system total capacity control program 32B gives an order to release the freeze command issued to the file system (S1008), and releases processing for suspending I/O from a user (S820). The file system total capacity control program 32B updates the file system total capacity in the file system management database 34.
When the file system total capacity control program 32B calculates the total value of all the directory quotas, and when the total value is greater than or equal to the total capacity of the file system, the file system total capacity control program 32B determines the capacity for expansion for the file system (S900).
The file system total capacity control program 32B accesses the pool volume 26 in the storage device (S902), and maps the storage area corresponding to the capacity for expansion from the pool volume 26 to the virtual volume 28.
Unlike the above-described flowchart in
In the above embodiments, judgments of necessity are made constantly and repeatedly concerning the increase of the total capacity of the file system, as sown in
For example, as shown in directory A in
The quota update control program 32C notifies the file system total capacity management program 32B that the quota has been changed (S1204). The file total capacity control program 32B that has received the notification then increases the total capacity of the file system, as shown in the flowchart in
According to the above-described embodiments, the NAS device continuously checks the directory quota value, and expands the total storage capacity of the file system when the total value of the directory quotas exceeds the total storage capacity of the file system. Therefore, the occurrence of a directory to which data cannot be written can be eliminated.
It has been explained in the above embodiments that the total storage capacity of the file system is expanded by integrating or combining the logical volume in the storage device with the logical volume for the file system. However, a logical volume may be divided into plural small volumes, and the divided logical volume may be assigned to a file system.
According to this embodiment, storage resources in a storage device can be used effectively compared with allocating a high-capacity volume to a file system at one time.
Also, the NAS manager may constantly check the remaining capacity of the pool volume, and when the pool volume lacks storage capacity, a warning about this may be issued to an administrator of the storage device.
The administrator, having received the notification, adds storage resources such as a hard disk to the storage device.
Moreover, the logical units assigned to the file system or the above-mentioned virtual volume may be ranked in accordance with RAID level, disk performance, and vendor, and the NAS manager may compare the policy of the file system with the rank for the logical unit or virtual volume, and assign the logical unit or virtual volume having a rank close to the file system policy to the file system.
Furthermore, a logical unit having a static capacity may be assigned to a file system to expand the capacity of the file system, while another file system may be assigned a storage area via a logical unit having a virtual capacity and a pool volume. Also, a configuration may be adopted in which a logical unit having a static capacity, which is to be assigned to a file system, is consumed; and then a storage area is assigned to the file system via a pool volume.
Number | Date | Country | Kind |
---|---|---|---|
2007-243504 | Sep 2007 | JP | national |