CN106227839A - The expansion method of a kind of lustre file system and device - Google Patents
The expansion method of a kind of lustre file system and device Download PDFInfo
- Publication number
- CN106227839A CN106227839A CN201610596662.9A CN201610596662A CN106227839A CN 106227839 A CN106227839 A CN 106227839A CN 201610596662 A CN201610596662 A CN 201610596662A CN 106227839 A CN106227839 A CN 106227839A
- Authority
- CN
- China
- Prior art keywords
- file system
- luster
- lustre
- expanded
- storage pool
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/122—File system administration, e.g. details of archiving or snapshots using management policies
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
- G06F3/0613—Improving I/O performance in relation to throughput
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to storage systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,特别涉及一种lustre文件系统的扩容方法及装置。The invention relates to the technical field of computers, in particular to a method and device for expanding the capacity of a lustre file system.
背景技术Background technique
Lustre文件系统是由美国能源部及intel公司开发的一种linux文件系统,具备高并发、读写快等优点,全世界前500名超级计算机有90%采用此文件系统。The Luster file system is a Linux file system developed by the U.S. Department of Energy and Intel Corporation. It has the advantages of high concurrency and fast reading and writing. 90% of the world's top 500 supercomputers use this file system.
Lustre文件系统是面向集群的存储架构,可以提供海量容量存储,高并发、高读写方案。但是,lustre文件系统使用一段时间后,容量及性能通常无法满足计算需求。The Luster file system is a cluster-oriented storage architecture that can provide massive capacity storage, high concurrency, and high read/write solutions. However, after the Luster file system is used for a period of time, the capacity and performance usually cannot meet the computing needs.
发明内容Contents of the invention
本发明提供了一种lustre文件系统的扩容方法及装置,能够对lustre文件系统的容量进行扩充。The invention provides a method and device for expanding the capacity of a lustre file system, which can expand the capacity of the lustre file system.
为了达到上述目的,本发明是通过如下技术方案实现的:In order to achieve the above object, the present invention is achieved through the following technical solutions:
一方面,本发明提供了一种lustre文件系统的扩容方法,确定待扩容的lustre文件系统,且所述lustre文件系统中包括至少一个客户端,还包括:On the one hand, the present invention provides a method for expanding the capacity of a lustre file system. The luster file system to be expanded is determined, and the luster file system includes at least one client, and further includes:
S1:利用至少一个存储服务器创建RAID(Redundant Arrays of IndependentDisks,磁盘阵列)存储池;S1: using at least one storage server to create a RAID (Redundant Arrays of Independent Disks, disk array) storage pool;
S2:将创建的所述RAID存储池加入到所述lustre文件系统中,得到扩容后的lustre文件系统;S2: adding the created RAID storage pool to the lustre file system to obtain the expanded lustre file system;
S3:将每一个所述客户端挂载所述扩容后的lustre文件系统。S3: Mount each client to the expanded lustre file system.
进一步地,所述lustre文件系统中还包括至少一个OSS(Object StorageServers,对象存储服务器);Further, the luster file system also includes at least one OSS (Object StorageServers, object storage server);
所述将创建的所述RAID存储池加入到所述lustre文件系统中,包括:将创建的所述RAID存储池添加至所述OSS的队列中。Adding the created RAID storage pool to the lustre file system includes: adding the created RAID storage pool to a queue of the OSS.
进一步地,在所述S3之后还包括:检查数据一致性情况,以及利用预先确定的测试工具,检测所述扩容后的lustre文件系统对应的容量增加情况和带宽增加情况。Further, after the S3, it also includes: checking data consistency, and using a predetermined test tool to detect the capacity increase and bandwidth increase corresponding to the expanded lustre file system.
进一步地,在所述S1之前还包括:将所述lustre文件系统设置为停止状态,并在每一个所述客户端上执行umount命令以卸载文件系统;确定至少一个存储服务器,并在每一个所述存储服务器上安装Linux操作系统、升级lustre内核、编译lustre server端;设置所述lustre文件系统的升级方案;Further, before the S1, it also includes: setting the luster file system to stop state, and executing the umount command on each of the clients to unmount the file system; determining at least one storage server, and Install the Linux operating system on the storage server, upgrade the lustre kernel, compile the lustre server end; set the upgrading scheme of the lustre file system;
所述S1包括:根据所述升级方案,利用所述至少一个存储服务器创建RAID存储池。The S1 includes: according to the upgrade solution, using the at least one storage server to create a RAID storage pool.
进一步地,所述设置所述lustre文件系统的升级方案,包括:确定每一个所述存储服务器的作用,以及规划RAID阵列模式及空间大小。Further, the setting the upgrade plan of the luster file system includes: determining the role of each storage server, and planning the RAID array mode and space size.
另一方面,本发明提供了一种lustre文件系统的扩容装置,包括:On the other hand, the present invention provides a device for expanding the luster file system, including:
确定单元,用于确定待扩容的lustre文件系统,且所述lustre文件系统中包括至少一个客户端;A determining unit, configured to determine the luster file system to be expanded, and the luster file system includes at least one client;
创建单元,用于利用至少一个存储服务器创建RAID存储池;Create a unit for creating a RAID storage pool with at least one storage server;
处理单元,用于将创建的所述RAID存储池加入到所述lustre文件系统中,得到扩容后的lustre文件系统;A processing unit, configured to add the created RAID storage pool to the lustre file system to obtain the expanded lustre file system;
挂载单元,用于将每一个所述客户端挂载所述扩容后的lustre文件系统。The mounting unit is used to mount each client to the expanded lustre file system.
进一步地,所述lustre文件系统中还包括至少一个OSS;Further, the luster file system also includes at least one OSS;
所述处理单元,具体用于将创建的所述RAID存储池添加至所述OSS的队列中。The processing unit is specifically configured to add the created RAID storage pool to the queue of the OSS.
进一步地,该lustre文件系统的扩容装置还包括:检测单元,用于检查数据一致性情况,以及利用预先确定的测试工具,检测所述扩容后的lustre文件系统对应的容量增加情况和带宽增加情况。Further, the expansion device of the luster file system further includes: a detection unit, which is used to check data consistency, and use a predetermined test tool to detect the corresponding capacity increase and bandwidth increase of the expanded lustre file system .
进一步地,该lustre文件系统的扩容装置还包括:设置单元,用于将所述lustre文件系统设置为停止状态,并在每一个所述客户端上执行umount命令以卸载文件系统;确定至少一个存储服务器,并在每一个所述存储服务器上安装Linux操作系统、升级lustre内核、编译lustre server端;设置所述lustre文件系统的升级方案;Further, the device for expanding the luster file system also includes: a setting unit, configured to set the luster file system to a stopped state, and execute the umount command on each of the clients to unmount the file system; determine at least one storage server, and install the Linux operating system, upgrade the lustre kernel, and compile the lustre server end on each of the storage servers; the upgrading scheme of the described lustre file system is set;
所述创建单元,具体用于根据所述升级方案,利用所述至少一个存储服务器创建RAID存储池。The creating unit is specifically configured to use the at least one storage server to create a RAID storage pool according to the upgrading scheme.
进一步地,所述设置单元,具体用于通过确定每一个所述存储服务器的作用,以及规划RAID阵列模式及空间大小,以设置所述lustre文件系统的升级方案。Further, the setting unit is specifically configured to set the upgrade plan of the lustre file system by determining the role of each of the storage servers, and planning the RAID array mode and space size.
本发明提供了一种lustre文件系统的扩容方法及装置,确定待扩容的lustre文件系统,且该lustre文件系统中包括至少一个客户端;利用至少一个存储服务器创建RAID存储池;将创建的RAID存储池加入到所述lustre文件系统中,得到扩容后的lustre文件系统;将每一个客户端挂载扩容后的lustre文件系统。因此,本发明能够对lustre文件系统的容量进行扩充。The invention provides a method and device for expanding the capacity of a lustre file system. The luster file system to be expanded is determined, and the luster file system includes at least one client; at least one storage server is used to create a RAID storage pool; and the created RAID is stored The pool is added to the luster file system to obtain the expanded lustre file system; each client is mounted with the expanded lustre file system. Therefore, the present invention can expand the capacity of the luster file system.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明一实施例提供的一种lustre文件系统的扩容方法的流程图;Fig. 1 is a flow chart of a method for expanding the capacity of a luster file system provided by an embodiment of the present invention;
图2是本发明一实施例提供的另一种lustre文件系统的扩容方法的流程图;Fig. 2 is a flow chart of another method for expanding the capacity of a luster file system provided by an embodiment of the present invention;
图3是本发明一实施例提供的一种lustre文件系统的扩容装置的示意图;Fig. 3 is a schematic diagram of an expansion device of a luster file system provided by an embodiment of the present invention;
图4是本发明一实施例提供的另一种lustre文件系统的扩容装置的示意图。FIG. 4 is a schematic diagram of another device for expanding the luster file system provided by an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例,基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.
如图1所示,本发明实施例提供了一种lustre文件系统的扩容方法,可以包括以下步骤:As shown in Figure 1, the embodiment of the present invention provides a method for expanding the luster file system, which may include the following steps:
步骤101:确定待扩容的lustre文件系统,且所述lustre文件系统中包括至少一个客户端。Step 101: Determine the luster file system to be expanded, and the luster file system includes at least one client.
步骤102:利用至少一个存储服务器创建RAID存储池。Step 102: Create a RAID storage pool by using at least one storage server.
步骤103:将创建的所述RAID存储池加入到所述lustre文件系统中,得到扩容后的lustre文件系统。Step 103: Add the created RAID storage pool to the lustre file system to obtain the expanded lustre file system.
步骤104:将每一个所述客户端挂载所述扩容后的lustre文件系统。Step 104: Mount each client to the expanded lustre file system.
本发明实施例提供了一种lustre文件系统的扩容方法,确定待扩容的lustre文件系统,且该lustre文件系统中包括至少一个客户端;利用至少一个存储服务器创建RAID存储池;将创建的RAID存储池加入到所述lustre文件系统中,得到扩容后的lustre文件系统;将每一个客户端挂载扩容后的lustre文件系统。因此,本发明实施例能够对lustre文件系统的容量进行扩充。The embodiment of the present invention provides a method for expanding the capacity of a lustre file system, which determines the luster file system to be expanded, and includes at least one client in the luster file system; utilizes at least one storage server to create a RAID storage pool; and stores the created RAID The pool is added to the luster file system to obtain the expanded lustre file system; each client is mounted with the expanded lustre file system. Therefore, the embodiment of the present invention can expand the capacity of the luster file system.
在本发明的一个实施例中,为了说明一种lustre文件系统的扩容方式,所以,所述lustre文件系统中还包括至少一个OSS;In an embodiment of the present invention, in order to illustrate a way of expanding the luster file system, the luster file system also includes at least one OSS;
所述将创建的所述RAID存储池加入到所述lustre文件系统中,包括:将创建的所述RAID存储池添加至所述OSS的队列中。Adding the created RAID storage pool to the lustre file system includes: adding the created RAID storage pool to a queue of the OSS.
详细地,将创建的RAID存储池添加至OSS队列中时,OSS队列中的OSS的个数相应增加。Specifically, when the created RAID storage pool is added to the OSS queue, the number of OSSs in the OSS queue increases accordingly.
在本发明的一个实施例中,为了能够明确lustre文件系统的扩容操作是否达标,所以,在步骤104之后,进一步包括:检查数据一致性情况,以及利用预先确定的测试工具,检测所述扩容后的lustre文件系统对应的容量增加情况和带宽增加情况。In one embodiment of the present invention, in order to be able to determine whether the expansion operation of the luster file system is up to standard, after step 104, it further includes: checking the data consistency, and using a predetermined test tool to detect the expansion operation. The corresponding capacity increase and bandwidth increase of the Luster file system.
详细地,在将RAID存储池加入到原有lustre文件系统资源池之后,可以检测到该原有lustre文件系统的容量和带宽均相应增加。In detail, after the RAID storage pool is added to the resource pool of the original luster file system, it can be detected that the capacity and bandwidth of the original luster file system increase accordingly.
在本发明的一个实施例中,为了说明一种RAID存储池的创建方式,所以,在步骤102之前,进一步包括:将所述lustre文件系统设置为停止状态,并在每一个所述客户端上执行umount命令以卸载文件系统;确定至少一个存储服务器,并在每一个所述存储服务器上安装Linux操作系统、升级lustre内核、编译lustre server端;设置所述lustre文件系统的升级方案;In one embodiment of the present invention, in order to illustrate a method of creating a RAID storage pool, before step 102, it further includes: setting the luster file system to stop state, and on each of the clients Execute the umount command to unload the file system; determine at least one storage server, and install the Linux operating system, upgrade the lustre kernel, and compile the lustre server end on each of the storage servers; set the upgrading scheme of the lustre file system;
所述步骤102包括:根据所述升级方案,利用所述至少一个存储服务器创建RAID存储池。The step 102 includes: according to the upgrade solution, using the at least one storage server to create a RAID storage pool.
详细地,可以预先根据实际需求,规划升级方案,并做好扩容前的准备工作,以便于可以根据规划好的升级方案以创建RAID存储池,从而可以利用创建的RAID存储池以对lustre文件系统进行扩容。In detail, the upgrade plan can be planned in advance according to the actual needs, and the preparations before the expansion can be done, so that the RAID storage pool can be created according to the planned upgrade plan, so that the created RAID storage pool can be used to support the lustre file system. To expand.
详细地,在本发明的一个实施例中,所述设置所述lustre文件系统的升级方案,包括:确定每一个所述存储服务器的作用,以及规划RAID阵列模式及空间大小。In detail, in one embodiment of the present invention, the setting the upgrade plan of the lustre file system includes: determining the role of each storage server, and planning the RAID array mode and space size.
如图2所示,本发明一个实施例提供了另一种lustre文件系统的扩容方法,具体包括以下步骤:As shown in Figure 2, an embodiment of the present invention provides another method for expanding the luster file system, which specifically includes the following steps:
步骤201:确定待扩容的lustre文件系统,且该lustre文件系统中包括至少一个客户端和至少一个OSS。Step 201: Determine the luster file system to be expanded, and the luster file system includes at least one client and at least one OSS.
详细地,一个lustre文件系统可以提供海量容量存储,及高并发、高读写方案,但其在使用一段时间后,通常会出现容量及性能无法满足计算需求的情况,为缓解或消除这一情况,可以对该lustre文件系统进行扩容。In detail, a Luster file system can provide massive capacity storage, and high concurrency, high reading and writing solutions, but after a period of use, the capacity and performance usually cannot meet the computing needs, in order to alleviate or eliminate this situation , the luster file system can be expanded.
详细地,一个lustre文件系统通常可以包括客户端、OSS和MDS(Metadata Server,元数据服务器)三部分。其中,MDS服务于一个MDT(Metadata Target,元数据目标),一个OSS服务于至少一个OST(Object Storage Target,对象存储目标),客户端通过标准的POSIX接口(Portable Operating System Interface,可移植操作系统接口)向用户提供对文件系统的访问。In detail, a luster file system usually includes three parts: client, OSS and MDS (Metadata Server, metadata server). Among them, MDS serves one MDT (Metadata Target, metadata target), one OSS serves at least one OST (Object Storage Target, object storage target), and the client uses the standard POSIX interface (Portable Operating System Interface, portable operating system interface) provides users with access to the file system.
MDS中可以存储lustre文件系统的基本信息,负责管理整个系统的命名空间、目录结构、用户权限,并负责维护文件系统数据的一致性等。MDS can store the basic information of the Luster file system, and is responsible for managing the namespace, directory structure, and user permissions of the entire system, and maintaining the consistency of file system data.
客户端可以通过MDS读取保存到MDT上的元数据。当客户端读写文件时,从MDS得到文件信息,从OSS中得到数据。详细地,客户端可以通过LNET协议和MDS/OSS通信。The client can read the metadata saved on the MDT through the MDS. When the client reads and writes files, it gets file information from MDS and data from OSS. In detail, the client can communicate with the MDS/OSS through the LNET protocol.
步骤202:将lustre文件系统设置为停止状态,并在每一个客户端上执行umount命令以卸载文件系统。Step 202: Set the luster file system to stop state, and execute the umount command on each client to unmount the file system.
详细地,在执行lustre文件系统扩容操作之前,可以停掉现有的lustre文件系统,并在所有客户端umount文件系统。In detail, before performing the expansion operation of the luster file system, you can stop the existing luster file system and umount the file system on all clients.
详细地,Linux系统下的umount命令用于卸除目前挂在Linux中的文件系统。其中,umount命令可以为:umount[-ahnrvV][-t<文件系统类型>][文件系统]。Specifically, the umount command under the Linux system is used to unmount the file system currently mounted in Linux. Among them, the umount command can be: umount[-ahnrvV][-t<file system type>][file system].
步骤203:确定至少一个存储服务器,并在每一个存储服务器上安装Linux操作系统、升级lustre内核、编译lustre server端。Step 203: Determine at least one storage server, install a Linux operating system on each storage server, upgrade the lustre kernel, and compile the lustre server.
在本发明实施例中,可以通过利用存储服务器创建RAID存储池,及将创建的RAID存储池加入到原有lustre文件系统的实现方式,以对该原有lustre文件系统进行扩容。In the embodiment of the present invention, the storage server can be used to create a RAID storage pool and add the created RAID storage pool to the original luster file system to expand the original luster file system.
因此,可以首先确定一定数量的存储服务器,并对确定的存储服务器进行相应预处理。详细地,存储服务器的数量可以由工作人员根据实际需求进行确定。Therefore, a certain number of storage servers may be determined first, and corresponding preprocessing may be performed on the determined storage servers. In detail, the number of storage servers can be determined by staff according to actual needs.
步骤204:通过设置lustre文件系统的升级方案,以确定每一个存储服务器的作用,以及规划RAID阵列模式及空间大小。Step 204: Determine the role of each storage server, and plan the RAID array mode and space size by setting the upgrade plan of the lustre file system.
详细地,在创建RAID存储池之前,可以预先规划lustre文件系统升级方案,并根据该升级方案以创建RAID存储池。In detail, before creating a RAID storage pool, a luster file system upgrade plan can be planned in advance, and a RAID storage pool can be created according to the upgrade plan.
步骤205:根据设置的升级方案,利用确定的至少一个存储服务器创建RAID存储池。Step 205: Create a RAID storage pool by using at least one determined storage server according to the set upgrade scheme.
步骤206:将创建的RAID存储池添加至lustre文件系统的OSS的队列中,得到扩容后的lustre文件系统。Step 206: Add the created RAID storage pool to the OSS queue of the lustre file system to obtain the expanded lustre file system.
将RAID存储池加入原有lustre文件系统资源池中后,可以对该lustre文件系统进行容量扩充。例如,原有lustre文件系统中可以有2个OSS,扩容后的lustre文件系统中可以有6个OSS。After the RAID storage pool is added to the resource pool of the original luster file system, the capacity of the luster file system can be expanded. For example, there can be 2 OSSs in the original Luster file system, and 6 OSSs in the expanded Luster file system.
详细地,可以直接将RAID存储池添加至lustre文件系统的OSS的队列中以实现容量扩充。In detail, the RAID storage pool can be directly added to the OSS queue of the luster file system to achieve capacity expansion.
在本发明一个实施例中,新增存储服务器加入原有lustre文件系统的实现代码可以为:mkfs.lustre-ost--fsname=lustre--mgsnode=192.168.1.201@o2ib--index=10/dev/mapper/ost1。In an embodiment of the present invention, the implementation code for adding the new storage server to the original luster file system can be: mkfs.lustre-ost--fsname=lustre--mgsnode=192.168.1.201@o2ib--index=10/dev /mapper/ost1.
步骤207:将每一个客户端挂载扩容后的lustre文件系统。Step 207: Mount each client to the expanded lustre file system.
详细地,客户端可以采用lustre自带的client端,挂载扩容后的lustre文件系统。In detail, the client can use the client end that comes with luster to mount the expanded lustre file system.
步骤208:检查数据一致性情况,以及利用预先确定的测试工具,检测扩容后的lustre文件系统对应的容量增加情况和带宽增加情况。Step 208: Check the data consistency, and use a predetermined test tool to detect the corresponding capacity increase and bandwidth increase of the expanded lustre file system.
详细地,若lustre文件系统扩容成功,检测结果可以为数据具有一致性、lustre文件系统的容量相应增加、带宽相应增加。In detail, if the expansion of the luster file system is successful, the test result can be that the data is consistent, the capacity of the luster file system increases accordingly, and the bandwidth increases accordingly.
在本发明实施例中,将多个存储服务器硬盘创建RAID存储池,并加入到原有lustre文件系统中,可以实现原有lustre文件系统的扩容,且这一扩容操作可以不对原有数据造成任何影响。通过将lustre文件系统进行扩容,可以实现:1)写入数据高并发,有效提高多节点读写数据至文件系统的并发数量;2)有效增加带宽,以达到高带宽;3)海量存储,可以将多个新增存储服务器的存储空间进行整合;4)数据的统一管理;5)全局统一命名空间。In the embodiment of the present invention, multiple storage server hard disks are used to create a RAID storage pool and add them to the original luster file system to realize the expansion of the original luster file system, and this expansion operation may not cause any damage to the original data. influences. By expanding the Lustre file system, it is possible to achieve: 1) High concurrency of writing data, effectively increasing the number of concurrent reads and writes of multi-node data to the file system; 2) Effectively increasing bandwidth to achieve high bandwidth; 3) Massive storage, which can Integrate the storage space of multiple newly added storage servers; 4) Unified management of data; 5) Global unified namespace.
如图3所示,本发明一个实施例提供了一种lustre文件系统的扩容装置,包括:As shown in Figure 3, an embodiment of the present invention provides a device for expanding the luster file system, including:
确定单元301,用于确定待扩容的lustre文件系统,且所述lustre文件系统中包括至少一个客户端;A determination unit 301, configured to determine a luster file system to be expanded, and the luster file system includes at least one client;
创建单元302,用于利用至少一个存储服务器创建RAID存储池;A creating unit 302, configured to use at least one storage server to create a RAID storage pool;
处理单元303,用于将创建的所述RAID存储池加入到所述lustre文件系统中,得到扩容后的lustre文件系统;The processing unit 303 is configured to add the created RAID storage pool to the lustre file system to obtain the expanded lustre file system;
挂载单元304,用于将每一个所述客户端挂载所述扩容后的lustre文件系统。Mounting unit 304, configured to mount each client to the expanded lustre file system.
在本发明一个实施例中,所述lustre文件系统中还包括至少一个OSS;In one embodiment of the present invention, the luster file system further includes at least one OSS;
所述处理单元303,具体用于将创建的所述RAID存储池添加至所述OSS的队列中。The processing unit 303 is specifically configured to add the created RAID storage pool to the queue of the OSS.
在本发明一个实施例中,请参考图4,该lustre文件系统的扩容装置还可以包括:检测单元401,用于检查数据一致性情况,以及利用预先确定的测试工具,检测所述扩容后的lustre文件系统对应的容量增加情况和带宽增加情况。In an embodiment of the present invention, please refer to FIG. 4 , the device for expanding the luster file system may further include: a detection unit 401, configured to check data consistency, and use a predetermined testing tool to detect the expanded The capacity increase and bandwidth increase corresponding to the luster file system.
在本发明一个实施例中,请参考图4,该lustre文件系统的扩容装置还可以包括:设置单元402,用于将所述lustre文件系统设置为停止状态,并在每一个所述客户端上执行umount命令以卸载文件系统;确定至少一个存储服务器,并在每一个所述存储服务器上安装Linux操作系统、升级lustre内核、编译lustre server端;设置所述lustre文件系统的升级方案;In an embodiment of the present invention, please refer to FIG. 4, the apparatus for expanding the capacity of the luster file system may further include: a setting unit 402, configured to set the luster file system to a stop state, and on each of the clients Execute the umount command to unload the file system; determine at least one storage server, and install the Linux operating system, upgrade the lustre kernel, and compile the lustre server end on each of the storage servers; set the upgrading scheme of the lustre file system;
所述创建单元302,具体用于根据所述升级方案,利用所述至少一个存储服务器创建RAID存储池。The creating unit 302 is specifically configured to use the at least one storage server to create a RAID storage pool according to the upgrade solution.
在本发明一个实施例中,所述设置单元402,具体用于通过确定每一个所述存储服务器的作用,以及规划RAID阵列模式及空间大小,以设置所述lustre文件系统的升级方案。In one embodiment of the present invention, the setting unit 402 is specifically configured to set the upgrade plan of the lustre file system by determining the role of each storage server, and planning the RAID array mode and space size.
上述装置内的各单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。The information exchange and execution process among the units in the above-mentioned device are based on the same concept as the method embodiment of the present invention, and the specific content can refer to the description in the method embodiment of the present invention, and will not be repeated here.
综上所述,本发明的各个实施例至少具有如下有益效果:In summary, each embodiment of the present invention has at least the following beneficial effects:
1、本发明实施例中,确定待扩容的lustre文件系统,且该lustre文件系统中包括至少一个客户端;利用至少一个存储服务器创建RAID存储池;将创建的RAID存储池加入到所述lustre文件系统中,得到扩容后的lustre文件系统;将每一个客户端挂载扩容后的lustre文件系统。因此,本发明实施例能够对lustre文件系统的容量进行扩充。1. In the embodiment of the present invention, determine the luster file system to be expanded, and include at least one client in the luster file system; use at least one storage server to create a RAID storage pool; add the created RAID storage pool to the lustre file In the system, the expanded lustre file system is obtained; each client is mounted with the expanded lustre file system. Therefore, the embodiment of the present invention can expand the capacity of the luster file system.
2、本发明实施例中,将多个存储服务器硬盘创建RAID存储池,并加入到原有lustre文件系统中,可以实现原有lustre文件系统的扩容,且这一扩容操作可以不对原有数据造成任何影响。通过将lustre文件系统进行扩容,可以实现:1)写入数据高并发,有效提高多节点读写数据至文件系统的并发数量;2)有效增加带宽,以达到高带宽;3)海量存储,可以将多个新增存储服务器的存储空间进行整合;4)数据的统一管理;5)全局统一命名空间。2. In the embodiment of the present invention, multiple storage server hard disks are used to create a RAID storage pool and add them to the original luster file system, which can realize the expansion of the original luster file system, and this expansion operation may not cause damage to the original data. any impact. By expanding the Lustre file system, it is possible to achieve: 1) High concurrency of writing data, effectively increasing the number of concurrent reads and writes of multi-node data to the file system; 2) Effectively increasing bandwidth to achieve high bandwidth; 3) Massive storage, which can Integrate the storage space of multiple newly added storage servers; 4) Unified management of data; 5) Global unified namespace.
需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个〃·····”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同因素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or sequence. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储在计算机可读取的存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质中。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by program instructions related hardware, and the aforementioned programs can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后需要说明的是:以上所述仅为本发明的较佳实施例,仅用于说明本发明的技术方案,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均包含在本发明的保护范围内。Finally, it should be noted that the above descriptions are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610596662.9A CN106227839A (en) | 2016-07-26 | 2016-07-26 | The expansion method of a kind of lustre file system and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610596662.9A CN106227839A (en) | 2016-07-26 | 2016-07-26 | The expansion method of a kind of lustre file system and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106227839A true CN106227839A (en) | 2016-12-14 |
Family
ID=57533731
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610596662.9A Pending CN106227839A (en) | 2016-07-26 | 2016-07-26 | The expansion method of a kind of lustre file system and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106227839A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107203639A (en) * | 2017-06-09 | 2017-09-26 | 联泰集群(北京)科技有限责任公司 | Parallel file system based on High Performance Computing |
| CN108932249A (en) * | 2017-05-24 | 2018-12-04 | 华为技术有限公司 | A kind of method and device managing file system |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102404201A (en) * | 2011-10-20 | 2012-04-04 | 浪潮电子信息产业股份有限公司 | A Method to Realize Maximum Bandwidth of Luster Parallel File System |
| CN103077245A (en) * | 2013-01-18 | 2013-05-01 | 浪潮电子信息产业股份有限公司 | Method for expanding parallel file system by free hard disk space of cluster computing node |
| CN103986755A (en) * | 2014-05-12 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Implementation method of high-security full-redundancy parallel file system |
| CN104298574A (en) * | 2014-09-16 | 2015-01-21 | 南京斯坦德云科技股份有限公司 | Data high-speed storage processing system |
| US9286261B1 (en) * | 2011-11-14 | 2016-03-15 | Emc Corporation | Architecture and method for a burst buffer using flash technology |
| CN105786985A (en) * | 2016-02-15 | 2016-07-20 | 浪潮(北京)电子信息产业有限公司 | Automatic method and device for expanding file systems automatically |
-
2016
- 2016-07-26 CN CN201610596662.9A patent/CN106227839A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102404201A (en) * | 2011-10-20 | 2012-04-04 | 浪潮电子信息产业股份有限公司 | A Method to Realize Maximum Bandwidth of Luster Parallel File System |
| US9286261B1 (en) * | 2011-11-14 | 2016-03-15 | Emc Corporation | Architecture and method for a burst buffer using flash technology |
| CN103077245A (en) * | 2013-01-18 | 2013-05-01 | 浪潮电子信息产业股份有限公司 | Method for expanding parallel file system by free hard disk space of cluster computing node |
| CN103986755A (en) * | 2014-05-12 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Implementation method of high-security full-redundancy parallel file system |
| CN104298574A (en) * | 2014-09-16 | 2015-01-21 | 南京斯坦德云科技股份有限公司 | Data high-speed storage processing system |
| CN105786985A (en) * | 2016-02-15 | 2016-07-20 | 浪潮(北京)电子信息产业有限公司 | Automatic method and device for expanding file systems automatically |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108932249A (en) * | 2017-05-24 | 2018-12-04 | 华为技术有限公司 | A kind of method and device managing file system |
| CN107203639A (en) * | 2017-06-09 | 2017-09-26 | 联泰集群(北京)科技有限责任公司 | Parallel file system based on High Performance Computing |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8706694B2 (en) | Continuous data protection of files stored on a remote storage device | |
| JP5547727B2 (en) | System and method for tracking changes to volumes | |
| WO2021238267A1 (en) | Cluster file system-based data backup method and apparatus, and readable storage medium | |
| CN105718217B (en) | A kind of method and device of simplify configuration storage pool data sign processing | |
| US8880488B1 (en) | Efficient extent-based B-tree insertion | |
| US8458232B1 (en) | Systems and methods for identifying data files based on community data | |
| US20120284471A1 (en) | Virtual machine disk migration | |
| US8812677B2 (en) | Data processing method and apparatus for remote storage system | |
| US8615488B2 (en) | Physical replication of database subset to improve availability and reduce resource cost in a cloud environment | |
| CN103605588A (en) | Disk backup method of virtue machine | |
| US8595192B1 (en) | Systems and methods for providing high availability to instance-bound databases | |
| US10705853B2 (en) | Methods, systems, and computer-readable media for boot acceleration in a data storage system by consolidating client-specific boot data in a consolidated boot volume | |
| US11099768B2 (en) | Transitioning from an original device to a new device within a data storage array | |
| CN106777394A (en) | A kind of cluster file system | |
| US11341159B2 (en) | In-stream data load in a replication environment | |
| Mao et al. | Improving flash memory performance and reliability for smartphones with I/O deduplication | |
| CN106528338A (en) | A remote data replication method, storage device and storage system | |
| US11157456B2 (en) | Replication of data in a distributed file system using an arbiter | |
| Xu et al. | Analysis and optimization of data import with hadoop | |
| CN111382011B (en) | File data access method and device and computer readable storage medium | |
| CN105608150A (en) | Business data processing method and system | |
| CN107807791A (en) | A kind of hard disc of computer sequence binding method and system | |
| CN106227839A (en) | The expansion method of a kind of lustre file system and device | |
| US8688643B1 (en) | Systems and methods for adaptively preferring mirrors for read operations | |
| US10210013B1 (en) | Systems and methods for making snapshots available |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161214 |
|
| RJ01 | Rejection of invention patent application after publication |