Movatterモバイル変換


[0]ホーム

URL:


CN111459880B - A method and system for modifying the total space of a self-thinning pre-allocated space compatible system - Google Patents

A method and system for modifying the total space of a self-thinning pre-allocated space compatible system
Download PDF

Info

Publication number
CN111459880B
CN111459880BCN202010231308.2ACN202010231308ACN111459880BCN 111459880 BCN111459880 BCN 111459880BCN 202010231308 ACN202010231308 ACN 202010231308ACN 111459880 BCN111459880 BCN 111459880B
Authority
CN
China
Prior art keywords
space
self
directory
allocation
modifying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010231308.2A
Other languages
Chinese (zh)
Other versions
CN111459880A (en
Inventor
吴昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co LtdfiledCriticalSuzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010231308.2ApriorityCriticalpatent/CN111459880B/en
Publication of CN111459880ApublicationCriticalpatent/CN111459880A/en
Application grantedgrantedCritical
Publication of CN111459880BpublicationCriticalpatent/CN111459880B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供了一种修改自精简预分配空间兼容系统总空间的方法及系统,本发明通过新增文件快照服务标志位参数和目录配额服务标志位参数,并将参数值置为OFF,启动自精简预分配,根据配置的客户端地址参数对客户端进行集群挂载,对创建的文件夹设置预分配空间大小,通过预分配校验确保预分配设置成功,从而实现分布式文件存储系统修改自精简预分配空间,可满足客户能够根据自身使用需求,修改自精简预分配,动态适配并兼容硬盘系统容量,提升了存储系统的健壮性、易用性和功能的丰富性,提高了分布式文件存储产品的竞争力。

Figure 202010231308

The present invention provides a method and system for modifying the total space of the self-streamlining pre-allocated space compatible with the system. The present invention adds a file snapshot service flag parameter and a directory quota service flag parameter, and sets the parameter value to OFF to start the self- Streamline pre-allocation, cluster mount the client according to the configured client address parameters, set the pre-allocation space size for the created folder, and ensure the success of the pre-allocation setting through pre-allocation verification, so as to realize the self-modification of the distributed file storage system Streamline the pre-allocated space, which can meet the needs of customers, modify the self-thinned pre-allocated, dynamically adapt and be compatible with the capacity of the hard disk system, improve the robustness, ease of use, and richness of functions of the storage system, and improve the distributed Competitiveness of file storage products.

Figure 202010231308

Description

Translated fromChinese
一种修改自精简预分配空间兼容系统总空间的方法及系统A method and system for modifying the total space of a self-thinning pre-allocated space compatible system

技术领域technical field

本发明涉及分布式存储技术领域,特别是一种修改自精简预分配空间兼容系统总空间的方法及系统。The invention relates to the technical field of distributed storage, in particular to a method and a system for modifying the total space of a self-thinning pre-allocated space compatible system.

背景技术Background technique

分布式文件存储系统在IT企业、云计算、大数据以及虚拟化等领域得到了广泛应用。与此同时,这些领域对存储系统的目录自精简功能的要求也越来越高,仅提供给用户目录自精简功能,但不兼容硬盘系统容量,已无法满足存储系统的使用,还需要能够让目录自精简能够根据用户自身使用需求,修改自精简分配,动态适配并兼容硬盘系统容量。由于目前分布式文件系统目录自精简无法修改预分配,更无法动态兼容硬盘系统容量,降低了存储系统的健壮性、易用性以及功能的丰富性,并严重影响分布式文件存储产品的竞争力。Distributed file storage systems are widely used in IT enterprises, cloud computing, big data, and virtualization. At the same time, these fields have higher and higher requirements for the directory self-reduction function of the storage system. It only provides the user directory self-reduction function, but it is not compatible with the hard disk system capacity, which cannot meet the use of the storage system. The self-thinning directory can modify the self-thinning allocation according to the user's own needs, and dynamically adapt and be compatible with the hard disk system capacity. Since the self-simplification of the current distributed file system directory cannot modify the pre-allocation, nor can it be dynamically compatible with the capacity of the hard disk system, which reduces the robustness, ease of use, and richness of functions of the storage system, and seriously affects the competitiveness of distributed file storage products. .

发明内容Contents of the invention

本发明的目的是提供一种修改自精简预分配空间兼容系统总空间的方法及系统,旨在解决现有技术中无法修改预分配及无法动态兼容硬盘系统容量,实现根据自身使用需求,修改自精简预分配,动态适配并兼容硬盘系统容量,提升了存储系统的健壮性、易用性和功能的丰富性。The purpose of the present invention is to provide a method and system for modifying the total space of the self-reduced pre-allocated space compatible with the system, aiming at solving the problem that the pre-allocated and dynamically compatible hard disk system capacity cannot be modified in the prior art, and the system can be modified according to its own use requirements. Thin pre-allocation, dynamic adaptation and compatibility with hard disk system capacity improve the robustness, ease of use and richness of functions of the storage system.

为达到上述技术目的,本发明提供了一种修改自精简预分配空间兼容系统总空间的方法,所述方法包括以下操作:In order to achieve the above technical purpose, the present invention provides a method for modifying the total space of the self-thinning pre-allocated space compatible system, the method includes the following operations:

关闭文件快照和目录配额服务;Turn off file snapshot and directory quota services;

新增文件快照服务标志位参数和目录配额服务标志位参数,并置为OFF;Added file snapshot service flag parameter and directory quota service flag parameter, and set them to OFF;

启动自精简预分配,根据配置的客户端地址参数对客户端进行集群挂载;Start the self-thinning pre-allocation, and perform cluster mounting on the client according to the configured client address parameters;

获取集群系统时间,记录时间戳,在挂载目录创建文件夹;Obtain the cluster system time, record the timestamp, and create a folder in the mount directory;

对创建的文件夹设置预分配空间大小,通过挂载目录查询硬盘系统总空间,对比预分配空间以及系统总空间的大小,选择是否对自精简进行设置。Set the pre-allocated space size for the created folder, query the total hard disk system space through the mounted directory, compare the pre-allocated space and the total system space, and choose whether to set self-thinning.

优选地,所述文件夹名称为目录和时间戳构成。Preferably, the folder name is composed of a directory and a time stamp.

优选地,所述启动自精简预分配后,通过查询结果中的fs_run结果是否为YES来检测是否启动。Preferably, after starting the thin pre-allocation, whether to start is detected by checking whether the result of fs_run in the query result is YES.

本发明还提供了一种修改自精简预分配空间兼容系统总空间的系统,所述系统包括:The present invention also provides a system for modifying the total space of the self-thinning pre-allocated space compatible system, and the system includes:

服务关闭模块,用于关闭文件快照和目录配额服务;The service shutdown module is used to close the file snapshot and directory quota services;

标志位参数新增模块,用于新增文件快照服务标志位参数和目录配额服务标志位参数,并置为OFF;A new module for flag parameters is used to add file snapshot service flag parameters and directory quota service flag parameters, and set them to OFF;

挂载客户端模块,用于启动自精简预分配,根据配置的客户端地址参数对客户端进行集群挂载;Mount the client module, which is used to start self-thinning pre-allocation, and cluster mount the client according to the configured client address parameters;

目录创建模块,用于获取集群系统时间,记录时间戳,在挂载目录创建文件夹;The directory creation module is used to obtain the cluster system time, record the timestamp, and create a folder in the mount directory;

预分配模块,用于对创建的文件夹设置预分配空间大小,通过挂载目录查询硬盘系统总空间,对比预分配空间以及系统总空间的大小,选择是否对自精简进行设置。The pre-allocation module is used to set the size of the pre-allocated space for the created folder, query the total space of the hard disk system through the mounted directory, compare the size of the pre-allocated space and the total system space, and choose whether to set self-thinning.

优选地,所述文件夹名称为目录和时间戳构成。Preferably, the folder name is composed of a directory and a time stamp.

优选地,所述启动自精简预分配后,通过查询结果中的fs_run结果是否为YES来检测是否启动。Preferably, after starting the thin pre-allocation, whether to start is detected by checking whether the result of fs_run in the query result is YES.

本发明还提供了一种修改自精简预分配空间兼容系统总空间的设备,包括:The present invention also provides a device for modifying the total system space compatible with the self-thinning pre-allocated space, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序,以实现所述的修改自精简预分配空间兼容系统总空间的方法。The processor is configured to execute the computer program to implement the method for modifying the total space of the self-thinning pre-allocated space compatible system.

本发明还提供了一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现所述的修改自精简预分配空间兼容系统总空间的方法。The present invention also provides a readable storage medium for storing a computer program, wherein, when the computer program is executed by a processor, the method for modifying the total space of the self-thinning pre-allocated space compatible with the system is realized.

发明内容中提供的效果仅仅是实施例的效果,而不是发明所有的全部效果,上述技术方案中的一个技术方案具有如下优点或有益效果:The effects provided in the summary of the invention are only the effects of the embodiments, rather than all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:

与现有技术相比,本发明通过新增文件快照服务标志位参数和目录配额服务标志位参数,并将参数值置为OFF,启动自精简预分配,根据配置的客户端地址参数对客户端进行集群挂载,对创建的文件夹设置预分配空间大小,通过预分配校验确保预分配设置成功,从而实现分布式文件存储系统修改自精简预分配空间,可满足客户能够根据自身使用需求,修改自精简预分配,动态适配并兼容硬盘系统容量,提升了存储系统的健壮性、易用性和功能的丰富性,提高了分布式文件存储产品的竞争力。Compared with the prior art, the present invention adds a file snapshot service flag parameter and a directory quota service flag parameter, and sets the parameter value to OFF, starts self-simplification pre-allocation, and configures the client according to the configured client address parameter. Perform cluster mounting, set the size of the pre-allocated space for the created folder, and ensure that the pre-allocated setting is successful through the pre-allocation verification, so as to realize the self-refining pre-allocated space of the distributed file storage system, which can meet the needs of customers according to their own use. Modify the self-thinning pre-allocation, dynamically adapt and be compatible with the capacity of the hard disk system, improve the robustness, ease of use, and richness of functions of the storage system, and improve the competitiveness of distributed file storage products.

附图说明Description of drawings

图1为本发明实施例中所提供的一种修改自精简预分配空间兼容系统总空间的方法流程图;FIG. 1 is a flow chart of a method for modifying the total space of a self-thinning pre-allocated space compatible system provided in an embodiment of the present invention;

图2为本发明实施例中所提供的一种修改自精简预分配空间兼容系统总空间的系统框图。FIG. 2 is a system block diagram of a modified self-thinning pre-allocated space compatible system total space provided in an embodiment of the present invention.

具体实施方式detailed description

为了能清楚说明本方案的技术特点,下面通过具体实施方式,并结合其附图,对本发明进行详细阐述。下文的公开提供了许多不同的实施例或例子用来实现本发明的不同结构。为了简化本发明的公开,下文中对特定例子的部件和设置进行描述。此外,本发明可以在不同例子中重复参考数字和/或字母。这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施例和/或设置之间的关系。应当注意,在附图中所图示的部件不一定按比例绘制。本发明省略了对公知组件和处理技术及工艺的描述以避免不必要地限制本发明。In order to clearly illustrate the technical features of the present solution, the present invention will be described in detail below through specific implementation methods and in conjunction with the accompanying drawings. The following disclosure provides many different embodiments or examples for implementing different structures of the present invention. To simplify the disclosure of the present invention, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in different instances. This repetition is for the purpose of simplicity and clarity and does not in itself indicate a relationship between the various embodiments and/or arrangements discussed. It should be noted that components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted herein to avoid unnecessarily limiting the present invention.

下面结合附图对本发明实施例所提供的一种修改自精简预分配空间兼容系统总空间的方法及系统进行详细说明。A method and system for modifying the total space of a self-thinning pre-allocated space-compatible system provided by an embodiment of the present invention will be described in detail below in conjunction with the accompanying drawings.

如图1所示,本发明公开了一种修改自精简预分配空间兼容系统总空间的方法,所述方法包括以下操作:As shown in Fig. 1, the present invention discloses a method for modifying the total space of the self-thinning pre-allocated space compatible system, and the method includes the following operations:

关闭文件快照和目录配额服务;Turn off file snapshot and directory quota services;

新增文件快照服务标志位参数和目录配额服务标志位参数,并置为OFF;Added file snapshot service flag parameter and directory quota service flag parameter, and set them to OFF;

启动自精简预分配,根据配置的客户端地址参数对客户端进行集群挂载;Start the self-thinning pre-allocation, and perform cluster mounting on the client according to the configured client address parameters;

获取集群系统时间,记录时间戳,在挂载目录创建文件夹;Obtain the cluster system time, record the timestamp, and create a folder in the mount directory;

对创建的文件夹设置预分配空间大小,通过挂载目录查询硬盘系统总空间,对比预分配空间以及系统总空间的大小,选择是否对自精简进行设置。Set the pre-allocated space size for the created folder, query the total hard disk system space through the mounted directory, compare the pre-allocated space and the total system space, and choose whether to set self-thinning.

通过icfs-fs-snap–off关闭文件快照服务,在存储系统主节点的 /home/snap目录下的snap_conf配置文件中,新增snapShot_status文件快照服务标志位参数,并置snapShot_status参数值为OFF。Turn off the file snapshot service through icfs-fs-snap–off, add the snapShot_status file snapshot service flag parameter in the snap_conf configuration file under the /home/snap directory of the storage system master node, and set the snapShot_status parameter value to OFF.

通过icfs-admin-quota–stop–dir关闭目录配额服务,然后在/home/quota目录下的dirquota_conf配置文件中,新增dirQuota_status目录配额服务标志位参数,并置dirQuota_status为OFF。Turn off the directory quota service through icfs-admin-quota–stop–dir, then add the dirQuota_status directory quota service flag parameter in the dirquota_conf configuration file under the /home/quota directory, and set dirQuota_status to OFF.

在查询并确保snapShot_status参数以及dirQuota_status参数均已成功修改为OFF后,通过icfs-fs-thin–start启动自精简功能。After querying and ensuring that the parameters snapShot_status and dirQuota_status have been successfully changed to OFF, start the self-thinning function through icfs-fs-thin–start.

在/usr/client目录的配置文件中新增client_ip参数并配置,使用 $client_ip参数传入icfs-fuse$client_ip:/mnt/icfs–id sysmgt来根据配置的fuse客户端地址来进行集群挂载,挂载默认路径为/mnt/icfs。Add and configure the client_ip parameter in the configuration file of the /usr/client directory, and use the $client_ip parameter to pass in icfs-fuse$client_ip:/mnt/icfs–id sysmgt to mount the cluster according to the configured fuse client address. The default mount path is /mnt/icfs.

查询目录的自精简状态,通过查询结果中的fs_run结果为YES,来保证自精简功能的正常启动。获取集群系统时间,记录时间戳TIME,在挂载目录创建以dir+时间戳构成的文件夹/mnt/icfs/dir01_$TIME。Query the self-thinning status of the directory, and the fs_run result in the query result is YES to ensure the normal startup of the self-thinning function. Get the cluster system time, record the timestamp TIME, and create a folder /mnt/icfs/dir01_$TIME consisting of dir+timestamp in the mount directory.

通过df–h|grep‘icfs-fuse’挂载目录查询客户端硬盘系统总空间 TOTAL_SPACE,设置预分配空间大小,存储在FSTHIN_NUM,使用dir01_$TIME与 $FSTHIN_NUM,传入icfs-fs-thin–set–p/mnt/icfs/dir01_$TIME–size $FSTHIN_NUM来修改目录自精简预分配空间。当$FSTHIN_NUM小于或等于 $TOTAL_SPACE时,直接设置,当$FSTHIN_NUM大于$TOTAL_SPACE时,提示用户“当前自精简额度大于系统总容量,请确认是否兼容适配系统总容量”,当用户选择“是”时,则会判断$FSTHIN_NUM与$TOTAL_SPACE的差值,并将 $FSTHIN_NUM置为与$TOTAL_SPACE相等,进而将自精简额度修改为等于系统总空间,并对目录自精简进行设置,如果用户选择“否”,则不对自精简进行设置。Use df–h|grep 'icfs-fuse' to mount the directory to query the total space TOTAL_SPACE of the client hard disk system, set the size of the pre-allocated space, store it in FSTHIN_NUM, use dir01_$TIME and $FSTHIN_NUM, and pass it to icfs-fs-thin–set –p/mnt/icfs/dir01_$TIME–size $FSTHIN_NUM to modify the directory self-thinning pre-allocated space. When $FSTHIN_NUM is less than or equal to $TOTAL_SPACE, set it directly. When $FSTHIN_NUM is greater than $TOTAL_SPACE, the user will be prompted "The current self-refinement quota is greater than the total system capacity. Please confirm whether it is compatible with the total system capacity". When the user selects "Yes" , it will determine the difference between $FSTHIN_NUM and $TOTAL_SPACE, and set $FSTHIN_NUM to be equal to $TOTAL_SPACE, and then modify the self-thinning quota to be equal to the total system space, and set the directory self-thinning, if the user selects "No ", the self-reduction is not set.

通过icfs-fs-thin–query–p/mnt/icfs/dir01_$TIME查询目录自精简预分配空间,确保在修改预分配空间小于、等于以及大于系统总空间时,都能设置成功,当设置成功后程序返回1,失败则返回0。Use icfs-fs-thin–query–p/mnt/icfs/dir01_$TIME to query the directory self-refining pre-allocation space to ensure that when the pre-allocation space is less than, equal to or greater than the total system space, the setting can be successful. When the setting is successful The final program returns 1, and returns 0 if it fails.

本发明实施例通过新增文件快照服务标志位参数和目录配额服务标志位参数,并将参数值置为OFF,启动自精简预分配,根据配置的客户端地址参数对客户端进行集群挂载,对创建的文件夹设置预分配空间大小,通过预分配校验确保预分配设置成功,从而实现分布式文件存储系统修改自精简预分配空间,可满足客户能够根据自身使用需求,修改自精简预分配,动态适配并兼容硬盘系统容量,提升了存储系统的健壮性、易用性和功能的丰富性,提高了分布式文件存储产品的竞争力。In the embodiment of the present invention, by adding a file snapshot service flag parameter and a directory quota service flag parameter, and setting the parameter value to OFF, self-simplification pre-allocation is started, and the client is cluster-mounted according to the configured client address parameter. Set the pre-allocation space size for the created folder, and ensure that the pre-allocation setting is successful through pre-allocation verification, so as to realize the modification of the self-thinning pre-allocation space in the distributed file storage system, which can meet the needs of customers to modify the self-thinning pre-allocation , dynamically adapts and is compatible with the capacity of the hard disk system, improves the robustness, ease of use and richness of functions of the storage system, and improves the competitiveness of distributed file storage products.

如图2所示,本发明实施例还公开了一种修改自精简预分配空间兼容系统总空间的系统,所述系统包括:As shown in Figure 2, the embodiment of the present invention also discloses a system for modifying the total space of the self-thinning pre-allocated space compatible system, and the system includes:

服务关闭模块,用于关闭文件快照和目录配额服务;The service shutdown module is used to close the file snapshot and directory quota services;

标志位参数新增模块,用于新增文件快照服务标志位参数和目录配额服务标志位参数,并置为OFF;A new module for flag parameters is used to add file snapshot service flag parameters and directory quota service flag parameters, and set them to OFF;

挂载客户端模块,用于启动自精简预分配,根据配置的客户端地址参数对客户端进行集群挂载;Mount the client module, which is used to start self-thinning pre-allocation, and cluster mount the client according to the configured client address parameters;

目录创建模块,用于获取集群系统时间,记录时间戳,在挂载目录创建文件夹;The directory creation module is used to obtain the cluster system time, record the timestamp, and create a folder in the mount directory;

预分配模块,用于对创建的文件夹设置预分配空间大小,通过挂载目录查询硬盘系统总空间,对比预分配空间以及系统总空间的大小,选择是否对自精简进行设置。The pre-allocation module is used to set the size of the pre-allocated space for the created folder, query the total space of the hard disk system through the mounted directory, compare the size of the pre-allocated space and the total system space, and choose whether to set self-thinning.

通过icfs-fs-snap–off关闭文件快照服务,在存储系统主节点的 /home/snap目录下的snap_conf配置文件中,新增snapShot_status文件快照服务标志位参数,并置snapShot_status参数值为OFF。Turn off the file snapshot service through icfs-fs-snap–off, add the snapShot_status file snapshot service flag parameter in the snap_conf configuration file under the /home/snap directory of the storage system master node, and set the snapShot_status parameter value to OFF.

通过icfs-admin-quota–stop–dir关闭目录配额服务,然后在 /home/quota目录下的dirquota_conf配置文件中,新增dirQuota_status目录配额服务标志位参数,并置dirQuota_status为OFF。Turn off the directory quota service through icfs-admin-quota–stop–dir, then add the dirQuota_status directory quota service flag parameter in the dirquota_conf configuration file under the /home/quota directory, and set dirQuota_status to OFF.

在查询并确保snapShot_status参数以及dirQuota_status参数均已成功修改为OFF后,通过icfs-fs-thin–start启动自精简功能。After querying and ensuring that the parameters snapShot_status and dirQuota_status have been successfully changed to OFF, start the self-thinning function through icfs-fs-thin–start.

在/usr/client目录的配置文件中新增client_ip参数并配置,使用 $client_ip参数传入icfs-fuse$client_ip:/mnt/icfs–id sysmgt来根据配置的fuse客户端地址来进行集群挂载,挂载默认路径为/mnt/icfs。Add and configure the client_ip parameter in the configuration file of the /usr/client directory, and use the $client_ip parameter to pass in icfs-fuse$client_ip:/mnt/icfs–id sysmgt to mount the cluster according to the configured fuse client address. The default mount path is /mnt/icfs.

查询目录的自精简状态,通过查询结果中的fs_run结果为YES,来保证自精简功能的正常启动。获取集群系统时间,记录时间戳TIME,在挂载目录创建以dir+时间戳构成的文件夹/mnt/icfs/dir01_$TIME。Query the self-thinning status of the directory, and the fs_run result in the query result is YES to ensure the normal startup of the self-thinning function. Get the cluster system time, record the timestamp TIME, and create a folder /mnt/icfs/dir01_$TIME consisting of dir+timestamp in the mount directory.

通过df–h|grep‘icfs-fuse’挂载目录查询客户端硬盘系统总空间 TOTAL_SPACE,设置预分配空间大小,存储在FSTHIN_NUM,使用dir01_$TIME与 $FSTHIN_NUM,传入icfs-fs-thin–set–p/mnt/icfs/dir01_$TIME–size $FSTHIN_NUM来修改目录自精简预分配空间。当$FSTHIN_NUM小于或等于 $TOTAL_SPACE时,直接设置,当$FSTHIN_NUM大于$TOTAL_SPACE时,提示用户“当前自精简额度大于系统总容量,请确认是否兼容适配系统总容量”,当用户选择“是”时,则会判断$FSTHIN_NUM与$TOTAL_SPACE的差值,并将 $FSTHIN_NUM置为与$TOTAL_SPACE相等,进而将自精简额度修改为等于系统总空间,并对目录自精简进行设置,如果用户选择“否”,则不对自精简进行设置。Use df–h|grep 'icfs-fuse' to mount the directory to query the total space TOTAL_SPACE of the client hard disk system, set the size of the pre-allocated space, store it in FSTHIN_NUM, use dir01_$TIME and $FSTHIN_NUM, and pass it to icfs-fs-thin–set –p/mnt/icfs/dir01_$TIME–size $FSTHIN_NUM to modify the directory self-thinning pre-allocated space. When $FSTHIN_NUM is less than or equal to $TOTAL_SPACE, set it directly. When $FSTHIN_NUM is greater than $TOTAL_SPACE, the user will be prompted "The current self-refinement quota is greater than the total system capacity. Please confirm whether it is compatible with the total system capacity". When the user selects "Yes" , it will determine the difference between $FSTHIN_NUM and $TOTAL_SPACE, and set $FSTHIN_NUM to be equal to $TOTAL_SPACE, and then modify the self-thinning quota to be equal to the total system space, and set the directory self-thinning, if the user selects "No ", the self-reduction is not set.

通过icfs-fs-thin–query–p/mnt/icfs/dir01_$TIME查询目录自精简预分配空间,确保在修改预分配空间小于、等于以及大于系统总空间时,都能设置成功,当设置成功后程序返回1,失败则返回0。Use icfs-fs-thin–query–p/mnt/icfs/dir01_$TIME to query the directory self-refining pre-allocation space to ensure that when the pre-allocation space is less than, equal to or greater than the total system space, the setting can be successful. When the setting is successful The final program returns 1, and returns 0 if it fails.

本发明实施例还公开了一种修改自精简预分配空间兼容系统总空间的设备,包括:The embodiment of the present invention also discloses a device for modifying the total system space compatible with the self-thinning pre-allocated space, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序,以实现所述的修改自精简预分配空间兼容系统总空间的方法。The processor is configured to execute the computer program to implement the method for modifying the total space of the self-thinning pre-allocated space compatible system.

本发明实施例还公开了一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现所述的修改自精简预分配空间兼容系统总空间的方法。The embodiment of the present invention also discloses a readable storage medium for saving a computer program, wherein, when the computer program is executed by a processor, the method for modifying the total space of the self-thinning pre-allocated space compatible with the system is realized.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (6)

CN202010231308.2A2020-03-272020-03-27 A method and system for modifying the total space of a self-thinning pre-allocated space compatible systemActiveCN111459880B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010231308.2ACN111459880B (en)2020-03-272020-03-27 A method and system for modifying the total space of a self-thinning pre-allocated space compatible system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010231308.2ACN111459880B (en)2020-03-272020-03-27 A method and system for modifying the total space of a self-thinning pre-allocated space compatible system

Publications (2)

Publication NumberPublication Date
CN111459880A CN111459880A (en)2020-07-28
CN111459880Btrue CN111459880B (en)2023-01-06

Family

ID=71678356

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010231308.2AActiveCN111459880B (en)2020-03-272020-03-27 A method and system for modifying the total space of a self-thinning pre-allocated space compatible system

Country Status (1)

CountryLink
CN (1)CN111459880B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102968279A (en)*2012-11-132013-03-13浪潮电子信息产业股份有限公司Thin provisioning method for storage system
CN106202350A (en)*2016-07-052016-12-07浪潮(北京)电子信息产业有限公司A kind of distributed file system simplifies the method and system of configuration automatically
CN108073723A (en)*2018-01-032018-05-25郑州云海信息技术有限公司A kind of file in distributed type assemblies storage is from compressing method and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102968279A (en)*2012-11-132013-03-13浪潮电子信息产业股份有限公司Thin provisioning method for storage system
CN106202350A (en)*2016-07-052016-12-07浪潮(北京)电子信息产业有限公司A kind of distributed file system simplifies the method and system of configuration automatically
CN108073723A (en)*2018-01-032018-05-25郑州云海信息技术有限公司A kind of file in distributed type assemblies storage is from compressing method and equipment

Also Published As

Publication numberPublication date
CN111459880A (en)2020-07-28

Similar Documents

PublicationPublication DateTitle
CN113268308B (en)Information processing method, device and storage medium
US8892677B1 (en)Manipulating objects in hosted storage
CN112714018B (en)Gateway-based ElasticSearch search service method, system, medium and terminal
CN106681891A (en) Method and device for adjusting log level in Java application system
WO2018058998A1 (en)Data loading method, terminal and computing cluster
WO2019085780A1 (en)Cloud storage system and method for achieving user-defined data processing in cloud storage system
CN101763433B (en)Data storage system and method
CN109002730A (en)A kind of file system directories right management method, device, equipment and storage medium
WO2024082787A1 (en)Method and apparatus for creating tablespace, storage medium, and electronic device
CN111459881A (en)Directory file quota setting method and system for distributed file storage system
CN110008029A (en) Ceph metadata cluster directory allocation method, system, device and readable storage medium
US20080162631A1 (en)Enabling Client Systems to Discover Services Accessible by Remote Procedure Calls (RPC) on Server Systems
CN106776131B (en)Data backup method and server
CN111881103A (en)LDAP domain user ACL permission control method and device based on NFS sharing
WO2023155591A1 (en)Progress information management and control method, micro-service apparatus, electronic device, and storage medium
CN115374057A (en)Data snapshot method and related equipment
CN108804711B (en) A data processing method, device and computer-readable storage medium
CN111459880B (en) A method and system for modifying the total space of a self-thinning pre-allocated space compatible system
CN114647422A (en) A vehicle electronic control unit flashing method, device, equipment and medium
WO2024250716A1 (en)File attribute setting method and apparatus
CN107370818A (en)A kind of distributed conversation method for managing object and system
CN114546976A (en)User mode distributed file system access method, device and equipment
CN113835625A (en) A sub-path-based data storage method, device, device and storage medium
CN106909463A (en)A kind of control method and device for connecting number quota
CN107078919B (en)Method, device and equipment for acquiring reliability configuration strategy

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address

Address after:Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee after:Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after:China

Address before:Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee before:SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp