[go: up one dir, main page]

CN109683813B - NVME SSD automatic formatting method, device, terminal and storage medium - Google Patents

NVME SSD automatic formatting method, device, terminal and storage medium Download PDF

Info

Publication number
CN109683813B
CN109683813B CN201811467129.8A CN201811467129A CN109683813B CN 109683813 B CN109683813 B CN 109683813B CN 201811467129 A CN201811467129 A CN 201811467129A CN 109683813 B CN109683813 B CN 109683813B
Authority
CN
China
Prior art keywords
tool
formatting
script
ssd
execution
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
CN201811467129.8A
Other languages
Chinese (zh)
Other versions
CN109683813A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811467129.8A priority Critical patent/CN109683813B/en
Publication of CN109683813A publication Critical patent/CN109683813A/en
Application granted granted Critical
Publication of CN109683813B publication Critical patent/CN109683813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an NVME SSD automatic formatting method, a device, a terminal and a storage medium, comprising the following steps: packaging formatting tools aiming at NVME SSDs with different specifications into a configuration file; packaging an execution script corresponding to the formatting tool into a configuration file; acquiring NVME SSD specification; calling a corresponding formatting tool and an execution script according to the specification; the corresponding execution method is executed through the corresponding formatting tool using the execution script. The invention can quickly format the SSD when the SSD encounters problems in the use process, prompt the working efficiency and simplify the working content.

Description

NVME SSD automatic formatting method, device, terminal and storage medium
Technical Field
The invention belongs to the technical field of server setting, and particularly relates to an NVME SSD automatic formatting method, device, terminal and storage medium.
Background
With continuous progress and development of science and technology, people have higher and higher requirements on storage, and most of the prior SSDs adopt interfaces such as SATA, SAS or fiber channel to be connected with a bus of a computer interface. However, these interfaces are designed mainly as interfaces for mechanical Hard Disk Drives (HDDs), and it is increasingly difficult to meet SSDs with increasing speed over time, and now SSDs for NVME interfaces have come into play. When the NVME SSD is used, various problems such as the system being unable to recognize or being unable to use normally occur due to the data or partitions left in the SSD.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides an NVME SSD automatic formatting method, device, terminal and storage medium, so as to solve the technical problems.
In a first aspect, an embodiment of the present application provides an NVME SSD automatic formatting method, where the method includes:
packaging formatting tools aiming at NVME SSDs with different specifications into a configuration file;
packaging an execution script corresponding to the formatting tool into a configuration file;
acquiring NVME SSD specification;
calling a corresponding formatting tool and an execution script according to the specification;
the corresponding execution method is executed through the corresponding formatting tool using the execution script.
With reference to the first aspect, in a first implementation manner of the first aspect, the encapsulating formatting tools for NVME SSDs of different specifications into a configuration file includes:
packaging a formatting tool DC tool of the Samsung NVME SSD into a configuration file;
packaging a formatting tool issdcm of an Intel NVME SSD to a configuration file;
and packaging a formatting tool msecli of the Micron NVME SSD into a configuration file.
With reference to the first aspect, in a second implementation manner of the first aspect, the encapsulating an execution script corresponding to a formatting tool into a configuration file includes:
acquiring the serial number of each drive letter by using a DC tool aiming at the Samsung NVME SSD, and sequentially formatting the SSD according to the serial numbers;
acquiring an SSD list to be formatted by using issdcm for an Intel NVME SSD and performing formatting on the SSD in the list;
formatting Micron 9100U.2 NVME SSD by using msecli-N-f 1-N/dev/nvmeX-g 4096-m 0 command;
the SSD changes the SSD default sector size of detected drive characters to 512 bytes of secure erase data and re-matches the 512 byte sector size using the msecli tool for Micron 9200 U.2 NVME SSD.
With reference to the first aspect, in a third implementation manner of the first aspect, the executing, by using the execution script, the corresponding execution method through the corresponding formatting tool includes:
and calling the corresponding formatting tool by the execution script to perform formatting processing according to the execution steps and the parameter modification standard in the corresponding execution method.
In a second aspect, an embodiment of the present application provides an NVME SSD automatic formatting apparatus, where the apparatus includes:
the tool packaging unit is configured for packaging formatting tools aiming at NVME SSDs with different specifications into a configuration file;
the script packaging unit is configured to package an execution script corresponding to the formatting tool into a configuration file;
the specification acquisition unit is configured to acquire the specification of the NVME SSD;
the file reading unit is configured for calling a corresponding formatting tool and an execution script according to the specification;
and a script execution unit configured to execute the corresponding execution method through the corresponding formatting tool using the execution script.
With reference to the second aspect, in a first implementation manner of the second aspect, the tool packaging unit includes:
the first tool packaging module is configured for packaging a formatting tool DC tool of the Samsung NVME SSD into a configuration file;
the second tool packaging module is configured for packaging a formatting tool issdcm of the Intel NVME SSD into a configuration file;
and the third tool packaging module is configured for packaging the formatting tool msecli of the Micron NVME SSD into a configuration file.
With reference to the second aspect, in a second implementation manner of the second aspect, the script encapsulating unit includes:
the first script encapsulation module is configured to acquire a serial number of each drive letter by using a DC tool aiming at the Samsung NVME SSD and sequentially format the SSD according to the serial number;
the second script encapsulation module is configured to acquire an SSD list to be formatted by using issdcm for the Intel NVME SSD and perform formatting on the SSD in the list;
the third script encapsulation module is configured for formatting a Micron 9100U.2 NVME SSD by using a msecli-N-f 1-N/dev/nvmeX-g 4096-m 0 command;
and the fourth script encapsulation module is configured for changing the SSD default sector size of the detected disc character into 512-byte safe erasing data by using a msecli tool for the Micron 9200 U.2 NVME SSD and re-matching the sector size of 512 bytes.
With reference to the second aspect, in a third implementation manner of the second aspect, the script execution unit includes:
and the execution module is configured for executing the script to call the corresponding formatting tool to perform formatting processing according to the execution steps and the parameter modification standard in the corresponding execution method.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is configured to call and run the computer program from the memory, so that the terminal performs the above-mentioned method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the automatic formatting method, device, terminal and storage medium of the NVME SSD, the formatting tools and the execution scripts of the NVME SSDs with different specifications are packaged into the configuration file, the specification of the NVME SSD is obtained when the NVME SSD is processed, the corresponding formatting tool and the corresponding execution script are called from the configuration file, and the automatic formatting of the NVME SSD is realized through the corresponding formatting tool and the corresponding execution script. The invention can quickly format the SSD when the SSD encounters problems in the use process, prompt the working efficiency and simplify the working content.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method of one embodiment of the present application.
FIG. 2 is a schematic block diagram of an apparatus of one embodiment of the present application.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present application.
FIG. 1 is a schematic flow chart diagram of a method of one embodiment of the present application. The execution subject in fig. 1 may be an NVME SSD automatic formatting device.
As shown in fig. 1, the method 100 includes:
step 110, packaging formatting tools aiming at NVME SSDs with different specifications into a configuration file;
step 120, packaging an execution script corresponding to the formatting tool into a configuration file;
step 130, acquiring NVME SSD specification;
step 140, calling a corresponding formatting tool and an execution script according to the specification;
and 150, executing the corresponding execution method through the corresponding formatting tool by using the execution script.
Optionally, as an embodiment of the present application, encapsulating formatting tools for NVME SSDs of different specifications into a configuration file includes:
packaging a formatting tool DC tool of the Samsung NVME SSD into a configuration file;
packaging a formatting tool issdcm of an Intel NVME SSD to a configuration file;
and packaging a formatting tool msecli of the Micron NVME SSD into a configuration file.
Optionally, as an embodiment of the present application, the encapsulating the execution script corresponding to the formatting tool into the configuration file includes:
acquiring the serial number of each drive letter by using a DC tool aiming at the Samsung NVME SSD, and sequentially formatting the SSD according to the serial numbers;
acquiring an SSD list to be formatted by using issdcm for an Intel NVME SSD and performing formatting on the SSD in the list;
formatting Micron 9100U.2 NVME SSD by using msecli-N-f 1-N/dev/nvmeX-g 4096-m 0 command;
the SSD changes the SSD default sector size of detected drive characters to 512 bytes of secure erase data and re-matches the 512 byte sector size using the msecli tool for Micron 9200 U.2 NVME SSD.
Optionally, as an embodiment of the present application, the executing the corresponding executing method by using the execution script through the corresponding formatting tool includes:
and calling the corresponding formatting tool by the execution script to perform formatting processing according to the execution steps and the parameter modification standard in the corresponding execution method.
In order to facilitate understanding of the present invention, the principle of the NVME SSD automatic formatting method of the present invention is combined with the process of formatting the NVME SSD in the embodiment, and the NVME SSD automatic formatting method provided by the present invention is further described below.
Specifically, the NVME SSD automatic formatting method includes:
s1, packaging the formatting tool aiming at the NVME SSD with different specifications into a configuration file.
And packaging a formatting tool DC tool of the Samsung NVME SSD, a formatting tool issdcm of the Intel NVME SSD and a formatting tool msecli of the Micron NVME SSD into a configuration file.
And S2, packaging the execution script corresponding to the formatting tool into a configuration file.
The Samsung NVME SSD formats the execution script:
first, OS version of RH7.0 or more is installed
Mounting DC tool
DCToolkit _64 bit-L: listing the sequence number of each drive letter
A/DCToolkit _64 bit-d 0: c-NF-ue: NVME SSD formatting (where 0: c is the number of the drive letter output in the previous step)
Intel NVME SSD formatted execution script:
view detected disc: issdcm-drive _ list
Formatting: issdcm-drive _ index X-secure _ erase (SATA \ M.2) & issdcm-drive _ index X-format (AIC/U.2) (X is the code number in drive list)
Execution script formatted by Micron NVME SSD:
9100U.2 formatted as./msecli-N-f 1-N/dev/nvmeX-g 4096-m 0
9200 is formatted as 512 sectors:
1) listing the disc characters: [ msecli-L ]
2) The default sector size of the disc is changed to 512 bytes and the data is securely erased: [ msecli-N-f 1-m 0-g 512-j 1-N/dev/nvmex ]
3) Reloading the NVME driver, or restarting the server, lets the system re-match the 512 byte sector size
S3, acquiring the NVME SSD specification.
And acquiring the specification of the NVME SSD by using the automation script. One server may contain NVME SSDs with various specifications, and the method can format all the NVME SSDs in the server at the same time.
And S4, calling a corresponding formatting tool and executing a script according to the specification.
And reading the configuration file, and acquiring a formatting tool and an execution script which are matched with the NVME SSD specification in the configuration file.
And S5, executing the corresponding execution method through the corresponding formatting tool by using the execution script.
And scheduling an execution script matched with the NVME SSD by the automatic script to call a formatting tool to perform formatting operation, performing automatic detection and parameter modification opinion formatting on the NVME SSD, realizing batch formatting of the NVME SSD, and avoiding the problem of omission of the NVME SSD.
The automation script and the execution script are as follows:
Figure BDA0001890091620000081
Figure BDA0001890091620000091
Figure BDA0001890091620000101
Figure BDA0001890091620000111
as shown in fig. 2, the apparatus 200 includes:
a tool packaging unit 210, wherein the tool packaging unit 210 is used for packaging formatting tools for different specification NVME SSDs into configuration files;
a script packaging unit 220, wherein the script packaging unit 220 is configured to package an execution script corresponding to a formatting tool into a configuration file;
a specification obtaining unit 230, wherein the specification obtaining unit 230 is configured to obtain NVME SSD specification;
a file reading unit 240, wherein the file reading unit 240 is used for calling a corresponding formatting tool and an execution script according to the specification;
a script execution unit 250, the script execution unit 250 for executing the corresponding execution method through the corresponding formatting tool using the execution script.
Optionally, as an embodiment of the present application, the tool packaging unit includes:
the first tool packaging module is configured for packaging a formatting tool DC tool of the Samsung NVME SSD into a configuration file;
the second tool packaging module is configured for packaging a formatting tool issdcm of the Intel NVME SSD into a configuration file;
and the third tool packaging module is configured for packaging the formatting tool msecli of the Micron NVME SSD into a configuration file.
Optionally, as an embodiment of the present application, the script encapsulating unit includes:
the first script encapsulation module is configured to acquire a serial number of each drive letter by using a DC tool aiming at the Samsung NVME SSD and sequentially format the SSD according to the serial number;
the second script encapsulation module is configured to acquire an SSD list to be formatted by using issdcm for the Intel NVME SSD and perform formatting on the SSD in the list;
the third script encapsulation module is configured for formatting a Micron 9100U.2 NVME SSD by using a msecli-N-f 1-N/dev/nvmeX-g 4096-m 0 command;
and the fourth script encapsulation module is configured for changing the SSD default sector size of the detected disc character into 512-byte safe erasing data by using a msecli tool for the Micron 9200 U.2 NVME SSD and re-matching the sector size of 512 bytes.
Optionally, as an embodiment of the present application, the script execution unit includes:
and the execution module is configured for executing the script to call the corresponding formatting tool to perform formatting processing according to the execution steps and the parameter modification standard in the corresponding execution method.
Fig. 3 is a schematic structural diagram of a terminal device 300 according to an embodiment of the present invention, where the terminal device 300 may be used to execute the method for updating the heat dissipation policy parameter according to the embodiment of the present application.
Among them, the terminal apparatus 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not limiting of the application, and may be a bus architecture, a star architecture, a combination of more or fewer components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiments of the present application, the CPU may be a single arithmetic core or may include multiple arithmetic cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present application also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided in the present application when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the formatting tools and the execution scripts of the NVME SSDs with different specifications are packaged into the configuration file, when the NVME SSD is processed, the specification of the NVME SSD is obtained, the corresponding formatting tools and the corresponding execution scripts are called from the configuration file, and the automatic formatting of the NVME SSD is realized through the corresponding formatting tools and the corresponding execution scripts. According to the invention, when problems occur in the use process of the SSD, the SSD can be formatted quickly, the working efficiency is prompted, and the working content is simplified.
Those skilled in the art will clearly understand that the techniques in the embodiments of the present application may be implemented by way of software plus a required general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present application may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and includes several instructions to enable a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method according to the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (4)

1.一种NVME SSD自动格式化方法,其特征在于,所述方法包括:1. an NVME SSD automatic formatting method, is characterized in that, described method comprises: 将针对不同规格NVME SSD的格式化工具封装至配置文件;Encapsulate formatting tools for NVME SSDs of different specifications into configuration files; 将格式化工具对应的执行脚本封装至配置文件;Encapsulate the execution script corresponding to the formatting tool into the configuration file; 获取NVME SSD规格;Get NVME SSD specifications; 根据所述规格调取对应的格式化工具和执行脚本;Call the corresponding formatting tool and execute the script according to the specification; 利用执行脚本通过对应格式化工具执行对应执行方法;Use the execution script to execute the corresponding execution method through the corresponding formatting tool; 所述将针对不同规格NVME SSD的格式化工具封装至配置文件包括:The packaging of formatting tools for NVME SSDs of different specifications into configuration files includes: 将Samsung NVME SSD的格式化工具DC tool封装至配置文件;Package the Samsung NVME SSD formatting tool DC tool into the configuration file; 将Intel NVME SSD的格式化工具issdcm封装至配置文件;Package the Intel NVME SSD formatting tool isdcm into the configuration file; 将Micron NVME SSD的格式化工具msecli封装至配置文件;Package the Micron NVME SSD formatting tool msecli into the configuration file; 所述将格式化工具对应的执行脚本封装至配置文件包括:The encapsulating the execution script corresponding to the formatting tool into the configuration file includes: 针对Samsung NVME SSD利用DC tool获取每个盘符的序号并根据所述序号依次进行SSD的格式化;For Samsung NVME SSD, use DC tool to obtain the serial number of each drive letter and sequentially format the SSD according to the serial number; 针对Intel NVME SSD利用issdcm获取待格式化SSD列表并对列表中的SSD执行格式化;For Intel NVME SSD, use issdcm to obtain the list of SSDs to be formatted and format the SSDs in the list; 利用msecli –N –f 1 –n /dev/nvmeX –g 4096 –m 0命令格式化Micron 9100 U.2NVME SSD;Format Micron 9100 U.2NVME SSD with msecli –N –f 1 –n /dev/nvmeX –g 4096 –m 0 command; 针对Micron 9200 U.2 NVME SSD利用msecli工具将检测到盘符的SSD默认扇区大小改为512字节安全擦除数据并重新匹配512字节的扇区大小;For Micron 9200 U.2 NVME SSD, use msecli tool to change the default sector size of SSD with detected drive letter to 512 bytes securely erase data and rematch the sector size of 512 bytes; 所述利用执行脚本通过对应格式化工具执行对应执行方法包括:The executing the corresponding execution method by using the execution script through the corresponding formatting tool includes: 执行脚本调用对应的格式化工具根据对应执行方法中的执行步骤和参数修改标准进行格式化处理。The execution script calls the corresponding formatting tool to perform formatting processing according to the execution steps and parameter modification criteria in the corresponding execution method. 2.一种NVME SSD自动格式化装置,其特征在于,所述装置包括:2. an NVME SSD automatic formatting device, is characterized in that, described device comprises: 工具封装单元,配置用于将针对不同规格NVME SSD的格式化工具封装至配置文件;Tool packaging unit, configured to package formatting tools for NVME SSDs of different specifications into configuration files; 脚本封装单元,配置用于将格式化工具对应的执行脚本封装至配置文件;The script encapsulation unit is configured to encapsulate the execution script corresponding to the formatting tool into the configuration file; 规格获取单元,配置用于获取NVME SSD规格;Specification obtaining unit, configured to obtain NVME SSD specifications; 文件读取单元,配置用于根据所述规格调取对应的格式化工具和执行脚本;a file reading unit, configured to call the corresponding formatting tool and execute the script according to the specification; 脚本执行单元,配置用于利用执行脚本通过对应格式化工具执行对应执行方法;a script execution unit, configured to execute the corresponding execution method by using the execution script through the corresponding formatting tool; 所述工具封装单元包括:The tool packaging unit includes: 第一工具封装模块,配置用于将Samsung NVME SSD的格式化工具DC tool封装至配置文件;The first tool packaging module is configured to package the formatting tool DC tool of the Samsung NVME SSD into a configuration file; 第二工具封装模块,配置用于将Intel NVME SSD的格式化工具issdcm封装至配置文件;The second tool encapsulation module is configured to encapsulate the Intel NVME SSD formatting tool isdcm into the configuration file; 第三工具封装模块,配置用于将Micron NVME SSD的格式化工具msecli封装至配置文件;The third tool encapsulation module is configured to encapsulate the Micron NVME SSD formatting tool msecli into the configuration file; 所述脚本封装单元包括:The script encapsulation unit includes: 第一脚本封装模块,配置用于针对Samsung NVME SSD利用DC tool获取每个盘符的序号并根据所述序号依次进行SSD的格式化;The first script encapsulation module is configured to utilize DC tool for Samsung NVME SSD to obtain the serial number of each drive letter and sequentially format the SSD according to the serial number; 第二脚本封装模块,配置用于针对Intel NVME SSD利用issdcm获取待格式化SSD列表并对列表中的SSD执行格式化;The second script encapsulation module is configured to use issdcm for Intel NVME SSD to obtain a list of SSDs to be formatted and to format the SSDs in the list; 第三脚本封装模块,配置用于利用msecli –N –f 1 –n /dev/nvmeX –g 4096 –m 0命令格式化Micron 9100 U.2 NVME SSD;The third script encapsulates the module, configured to format the Micron 9100 U.2 NVME SSD with the msecli –N –f 1 –n /dev/nvmeX –g 4096 –m 0 command; 第四脚本封装模块,配置用于针对Micron 9200 U.2 NVME SSD利用msecli工具将检测到盘符的SSD默认扇区大小改为512字节安全擦除数据并重新匹配512字节的扇区大小;The fourth script encapsulation module, configured to use the msecli tool for Micron 9200 U.2 NVME SSD to change the default sector size of the SSD with the detected drive letter to 512 bytes Secure Erase Data and rematch the sector size of 512 bytes ; 所述脚本执行单元包括:The script execution unit includes: 执行模块,配置用于执行脚本调用对应的格式化工具根据对应执行方法中的执行步骤和参数修改标准进行格式化处理。The execution module is configured to execute the script to call the corresponding formatting tool to perform formatting processing according to the execution steps and parameter modification standards in the corresponding execution method. 3.一种终端,其特征在于,包括:3. A terminal, characterized in that, comprising: 处理器;processor; 用于存储处理器的执行指令的存储器;memory for storing instructions for execution of the processor; 其中,所述处理器被配置为执行权利要求1所述的方法。wherein the processor is configured to perform the method of claim 1 . 4.一种存储有计算机程序的计算机可读存储介质,其特征在于,该程序被处理器执行时实现如权利要求1所述的方法。4. A computer-readable storage medium storing a computer program, characterized in that, when the program is executed by a processor, the method according to claim 1 is implemented.
CN201811467129.8A 2018-12-03 2018-12-03 NVME SSD automatic formatting method, device, terminal and storage medium Active CN109683813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811467129.8A CN109683813B (en) 2018-12-03 2018-12-03 NVME SSD automatic formatting method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811467129.8A CN109683813B (en) 2018-12-03 2018-12-03 NVME SSD automatic formatting method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109683813A CN109683813A (en) 2019-04-26
CN109683813B true CN109683813B (en) 2022-02-18

Family

ID=66186038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811467129.8A Active CN109683813B (en) 2018-12-03 2018-12-03 NVME SSD automatic formatting method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109683813B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113688099B (en) * 2021-08-09 2023-10-13 上海沄熹科技有限公司 SPDK-based database storage engine acceleration method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014081719A1 (en) * 2012-11-20 2014-05-30 Peddle Charles I Solid state drive architectures
DE102014110423A1 (en) * 2013-07-23 2015-01-29 Intel Corporation Techniques for moving data between a network input / output device and a storage device
CN106126117A (en) * 2016-06-20 2016-11-16 浪潮电子信息产业股份有限公司 Method for formatting PCIE SSD capacity
CN107844277A (en) * 2017-11-29 2018-03-27 郑州云海信息技术有限公司 A kind of method that NVME SSD formattings are carried out under linux

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014081719A1 (en) * 2012-11-20 2014-05-30 Peddle Charles I Solid state drive architectures
DE102014110423A1 (en) * 2013-07-23 2015-01-29 Intel Corporation Techniques for moving data between a network input / output device and a storage device
CN106126117A (en) * 2016-06-20 2016-11-16 浪潮电子信息产业股份有限公司 Method for formatting PCIE SSD capacity
CN107844277A (en) * 2017-11-29 2018-03-27 郑州云海信息技术有限公司 A kind of method that NVME SSD formattings are carried out under linux

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Effective flash-based SSD caching for high performance home cloud server;Lee, Dongwoo等;《IEEE Transactions on Consumer Electronics》;20150708;第215-221页 *
硬盘接口及SSD升级研究;王伟;《科技创新导报》;20170930;第123-124页 *

Also Published As

Publication number Publication date
CN109683813A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN103412769B (en) External card parameter configuration, equipment and system
CN104200172B (en) A kind of safe gatherer of usb data, system and method
CN111723079A (en) Data migration method, device, computer equipment and storage medium
JP2011118901A (en) Method for memory optimization of virtual machine code by partitioning extraneous information, computer program, and system
CN111124288B (en) A VPD storage management method, apparatus, device and readable storage medium
WO2020259163A1 (en) Device deployment method and apparatus, device running method, and electronic device
CN111177113A (en) Data migration method and device, computer equipment and storage medium
TW202014912A (en) Efficient file storage and retrieval system, method and apparatus
CN115098139A (en) Firmware updating method and system, lower computer and storage medium
CN112650658A (en) Application program exception recording and reproduction method, device and storage medium
CN108287735A (en) A kind of method, apparatus and server obtaining UEFI OS startup items
CN111782474A (en) Log processing method and device, electronic equipment and medium
CN109683813B (en) NVME SSD automatic formatting method, device, terminal and storage medium
US8171256B1 (en) Systems and methods for preventing subversion of address space layout randomization (ASLR)
US8621606B1 (en) Systems and methods for identifying external functions called by untrusted applications
CN114157662B (en) Cloud platform parameter adaptation method, device, terminal equipment and storage medium
CN114756290A (en) Operating system installation method, device and readable storage medium
CN114253619A (en) Method, device, computer equipment and storage medium for SSD multi-level boot
CN114443101B (en) System advanced audit strategy update method, system, terminal and storage medium
CN111352641A (en) Method and device for automatic packaging by batch processing, computer equipment and storage medium
CN112463042B (en) A data volume import data verification method, device, terminal and storage medium
CN113900893B (en) Log acquisition method and related equipment thereof
WO2020039444A1 (en) Translation of embedded software api's for carrying out software testing
CN103020532B (en) A kind of car-mounted terminal flash encryption method and device thereof
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant