CN108108133A - A kind of method and apparatus for changing nvme SSD hard disk users and capacity can be used - Google Patents

A kind of method and apparatus for changing nvme SSD hard disk users and capacity can be used Download PDF

Info

Publication number
CN108108133A
CN108108133A CN201810005606.2A CN201810005606A CN108108133A CN 108108133 A CN108108133 A CN 108108133A CN 201810005606 A CN201810005606 A CN 201810005606A CN 108108133 A CN108108133 A CN 108108133A
Authority
CN
China
Prior art keywords
capacity
nvme
ssd hard
hard disk
nvme ssd
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.)
Granted
Application number
CN201810005606.2A
Other languages
Chinese (zh)
Other versions
CN108108133B (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 Inspur Intelligent 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 CN201810005606.2A priority Critical patent/CN108108133B/en
Publication of CN108108133A publication Critical patent/CN108108133A/en
Application granted granted Critical
Publication of CN108108133B publication Critical patent/CN108108133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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]

Abstract

The present invention provides a kind of method and apparatus for changing nvme SSD hard disk users and capacity can be used, universal method of the nvme SSD users using amount of capacity is changed by the method for changing LBA quantity, the difference of each specific purpose tool is eliminated, there is versatility, flexibility and simplicity.

Description

A kind of method and apparatus for changing nvme SSD hard disk users and capacity can be used
Technical field
The present invention relates to computer server fields more particularly to a kind of change nvme SSD hard disk users can be used capacity Method and apparatus.
Background technology
Hard disk is the important composition component of computer and server, is the most important part for storing data.Mechanical hard disk It since application time is long, involves a wide range of knowledge general, large-scale application is to every field now, but its is complicated, with technology The continuous magnetic head that promoted it is less and less with the distance between magnetic sheet, in magnetic sheet high-speed rotation, hard disk be given a shock rear disc and Microseism can may all cause the damage of hard disk when real intimate contact is inevitably had between magnetic head, therefore being worked.
Solid state disk (SSD:Solid State Disk) it is the concept being derived on traditional mechanical hard disk, simply Say to be exactly manufactured hard disk with solid-state electronic storage chip array (NAND Flash), be all electronic structure, using integrated Circuit memory technology, the hard disk formed using storage chip plus addressable controller, similar to USB flash disk technology, without any machine Tool moving component, accordingly even when normal use will not be influenced in the case where high-speed mobile is even with tip tilt, and And the possibility of loss of data can be minimized when laptop is inadvertently fallen off or is collided with hard object.In addition it is solid State hard disk also has the advantage of data rate memory, power consumption, weight, noise etc. compared to mechanical hard disk.
The high speed data access ability that SSD is used as is that other kinds of hard disk is incomparable.Because mechanical hard disk stores Data use disk, so capacity cannot arbitrarily change, but the capacity of SSD can by change the size of headspace come Change the size that user uses capacity.
Although each SSD manufacturer is proposed the instrument of oneself to change SSD amount of capacity, tool kind is more, uses It is just more various, as a result more complicated will not have versatility.
The content of the invention
In order to solve the above technical problems, the present invention proposes following scheme:
In a first aspect, the present invention provides a kind of method for changing nvme SSD hard disk users and capacity can be used, including:
It will need change user that the nvme SSD hard disks of amount of capacity can be used to be separated from system;
Delete the NameSpace of the nvme SSD hard disks;
A new nvme SSD hard disk NameSpace is created to the nvme SSD hard disks, and passes through modification capacity parameter Come for new nvme SSD hard disk NameSpace partition capacities;
System is connected into again to the nvme SSD hard disks;
It resets hard disk or restarts system.
Further, the system is linux64 systems.
Further, the modification parameter of partition capacity obtains in the following manner:
LBA=C*1000*1000*1000/512, wherein LBA are the modification parameter of partition capacity, and C is target capacity (GB)。
Further, it will need change user that the nvme SSD hard disks of amount of capacity can be used to be separated from system, it Before include:
By order check it is all can be with identified nvme SSD hard disks.
Further, it will need change user that the nvme SSD hard disks of amount of capacity can be used to be separated from system, it Before further include:
Nvme-cli instruments are installed under system.
Further, nvme-cli instruments are installed under system, including:
Into nvme-cli-master files, operation make&&make install Installing of Command nvme- under system Cli instruments.
Further, reset hard disk or restart system, include afterwards:
The capacity of nvme SSD hard disks is checked by order.
Second aspect, the present invention provide a kind of equipment for changing nvme SSD hard disk users and capacity can be used, and feature exists In the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processing Device realizes the method as described in claim 1~7 is any.
The third aspect, the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, feature It is, the method as described in claim 1~7 is any is realized when which is executed by processor.
The method of capacity can be used by the change nvme SSD hard disk users of the present invention, can quickly change SSD capacity, Testing efficiency can be improved, shortens delivery cycle, there is higher practicability and versatility.
Description of the drawings
Fig. 1 shows that the present invention changes the method flow diagram that capacity can be used in nvme SSD hard disk users.
Specific embodiment
The technical solution further illustrated the present invention below in conjunction with Figure of description and specific embodiment.It should be appreciated that this Locate described specific embodiment to be only used to explain the present invention, be not intended to limit the present invention.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only memory (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, magnetic tape disk storage or other magnetic storage apparatus or Any other non-transmission medium, the information that can be accessed by a computing device available for storage.It is defined according to herein, computer Readable medium does not include the data-signal and carrier wave of non-temporary computer readable media (transitorymedia), such as modulation.
The embodiment of the present application provides a kind of method for changing nvme SSD hard disk users and capacity can be used, as shown in Figure 1, This method specifically comprises the following steps:
It will need change user that the nvme SSD hard disks of amount of capacity can be used to be separated from system;
Delete the NameSpace of the nvme SSD hard disks;
A new nvme SSD hard disk NameSpace is created to the nvme SSD hard disks, and passes through modification capacity parameter Come for new nvme SSD hard disk NameSpace partition capacities;
System is connected into again to the nvme SSD hard disks;
It resets hard disk or restarts system.
An embodiment according to the present invention, the system are linux64 systems.
An embodiment according to the present invention, the modification parameter of partition capacity obtain in the following manner:
LBA=C*1000*1000*1000/512, wherein LBA are the modification parameter of partition capacity, and C is target capacity (GB)。
Further, it will need change user that the nvme SSD hard disks of amount of capacity can be used to be separated from system, it Before include:
By order check it is all can be with identified nvme SSD hard disks.
The nvme SSD hard disks of amount of capacity can be used from being will need to change user in an embodiment according to the present invention It separates in system, further includes before:
Nvme-cli instruments are installed under system.
An embodiment according to the present invention installs nvme-cli instruments under system, including:
Into nvme-cli-master files, operation make&&make install Installing of Command nvme- under system Cli instruments.
An embodiment according to the present invention resets hard disk or restarts system, includes afterwards:
The capacity of nvme SSD hard disks is checked by order.
Specifically, linux64 systems, nvme-cli instruments are installed, into nvme-cli-master files under system Folder runs make&&make install Installing of Command nvme-cli instruments.
Order display is all can be with identified equipment using following
Fdisk–l
./nvme detach-ns/dev/nvme*-n 1-c 2 (" * " is specific disk) are run, nvme is divided from system From
By taking nvme0n1 as an example, similarly hereinafter
./nvme detach-ns/dev/nvme0-n 1-c 2
./nvme delete-ns/dev/nvme*-n 1 are run, the namespace of nvme is deleted
./nvme create-ns/dev/nvme*-s 0xAAAAAAAA-c 0xAAAAAAAA-f 0-d 0-m 0 are run, A namespace is created, amount of capacity is determined by 0xAAAAAAAA, and 0xAAAAAAAA is the relevant parameter for changing capacity, Represent LBA sizes, LBA=target capacities (GB) C*1000*1000*1000/512.
./nvme attach-ns/dev/nvme*-n 1-c 2 are run, nvme is connected into system again
Operation-Reset SSD (or Reboot) reset SSD or restart system
Fdisk-l are run after start, check capacity.
The embodiment of the present application additionally provides a kind of equipment for changing nvme SSD hard disk users and capacity can be used, the equipment bag The memory for storing computer program instructions and the processor for executing program instructions are included, wherein, when the computer journey When sequence instruction is performed by the processor, trigger the equipment and perform the foregoing method for changing nvmeSSD hard disk users and capacity can be used.
The embodiment of the present application additionally provides a kind of computer-readable medium, is stored thereon with computer-readable instruction, described Computer-readable instruction can be executed by processor to realize the method that capacity can be used in foregoing change nvme SSD hard disk users.
In conclusion the scheme that the application provides solves problems with:
(1) size that capacity can be used in SSD user is changed;
(2) using non-proprietary instrument to possess versatility;
User capacity can rationally be changed according to the application demand of client using said program, by changing LBA quantity Method changes the universal method that nvme SSD users use amount of capacity, eliminates the difference of each specific purpose tool, has general Property, flexibility and simplicity.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt With application-specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment In, the software program of the application can perform to realize steps described above or function by processor.Similarly, the application Software program can be stored in computer readable recording medium storing program for performing (including relevant data structure), for example, RAM memory, Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, example Such as, as the circuit for coordinating to perform each step or function with processor.
In addition, the part of the application can be applied to computer program product, such as computer program instructions, when its quilt When computer performs, by the operation of the computer, it can call or provide according to the present processes and/or technical solution. And the program instruction of the present processes is called, be possibly stored in fixed or moveable recording medium and/or is passed through Broadcast or the data flow in other signal bearing medias and be transmitted and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, including an equipment according to one embodiment of the application, which includes using Memory in storage computer program instructions and processor for executing program instructions, wherein, when the computer program refers to When order is performed by the processor, method and/or skill of the equipment operation based on foregoing multiple embodiments according to the application are triggered Art scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie In the case of without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power Profit requirement rather than above description limit, it is intended that all by what is fallen within the meaning and scope of the equivalent requirements of the claims Variation is included in the application.Any reference numeral in claim should not be considered as to the involved claim of limitation.This Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in equipment claim is multiple Equipment can also be realized by an equipment by software or hardware.

Claims (9)

  1. A kind of 1. method for changing nvme SSD hard disk users and capacity can be used, which is characterized in that including:
    It will need change user that the nvme SSD hard disks of amount of capacity can be used to be separated from system;
    Delete the NameSpace of the nvme SSD hard disks;
    Give the nvme SSD hard disks create a new nvme SSD hard disk NameSpace, and by change capacity parameter come for New nvme SSD hard disk NameSpace partition capacities;
    System is connected into again to the nvme SSD hard disks;
    It resets hard disk or restarts system.
  2. 2. the method according to claim 1 for changing nvme SSD hard disk users and capacity can be used, which is characterized in that described System is linux64 systems.
  3. 3. the method according to claim 2 for changing nvme SSD hard disk users and capacity can be used, which is characterized in that distribution The modification parameter of capacity obtains in the following manner:
    LBA=C*1000*1000*1000/512, wherein LBA are the modification parameter of partition capacity, and C is target capacity (GB).
  4. 4. the method according to claim 3 for changing nvme SSD hard disk users and capacity can be used, which is characterized in that inciting somebody to action It needs change user that the nvme SSD hard disks of amount of capacity can be used to be separated from system, includes before:
    By order check it is all can be with identified nvme SSD hard disks.
  5. 5. the method according to claim 4 for changing nvme SSD hard disk users and capacity can be used, which is characterized in that inciting somebody to action It needs change user that the nvme SSD hard disks of amount of capacity can be used to be separated from system, further includes before:
    Nvme-cli instruments are installed under system.
  6. 6. the method according to claim 5 for changing nvme SSD hard disk users and capacity can be used, which is characterized in that be The lower installation nvme-cli instruments of system, including:
    Into nvme-cli-master files under system, make&&make install Installing of Command nvme-cli works are run Tool.
  7. 7. the method according to claim 6 for changing nvme SSD hard disk users and capacity can be used, which is characterized in that reset Hard disk restarts system, includes afterwards:
    The capacity of nvme SSD hard disks is checked by order.
  8. 8. a kind of equipment for changing nvme SSD hard disk users and capacity can be used, which is characterized in that the equipment includes:
    One or more processors;
    Storage device, for storing one or more programs,
    When one or more of programs are performed by one or more of processors so that one or more of processors are real The now method as described in claim 1~7 is any.
  9. 9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The method as described in claim 1~7 is any is realized during row.
CN201810005606.2A 2018-01-03 2018-01-03 Method and equipment for changing usable capacity of nvme SSD (solid State disk) hard disk user Active CN108108133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810005606.2A CN108108133B (en) 2018-01-03 2018-01-03 Method and equipment for changing usable capacity of nvme SSD (solid State disk) hard disk user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810005606.2A CN108108133B (en) 2018-01-03 2018-01-03 Method and equipment for changing usable capacity of nvme SSD (solid State disk) hard disk user

Publications (2)

Publication Number Publication Date
CN108108133A true CN108108133A (en) 2018-06-01
CN108108133B CN108108133B (en) 2021-03-23

Family

ID=62219516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810005606.2A Active CN108108133B (en) 2018-01-03 2018-01-03 Method and equipment for changing usable capacity of nvme SSD (solid State disk) hard disk user

Country Status (1)

Country Link
CN (1) CN108108133B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902033A (en) * 2019-02-13 2019-06-18 山东华芯半导体有限公司 The LBA distribution method and mapping method of namespace applied to NVMe SSD controller
CN117149093A (en) * 2023-10-27 2023-12-01 四川省华存智谷科技有限责任公司 Method for improving reliability of storage system through SSD (solid State disk) capacity shrinkage

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023818A (en) * 2010-12-06 2011-04-20 成都市华为赛门铁克科技有限公司 Method and device for regulating capacity of storage equipment, and storage equipment
CN102799536A (en) * 2011-05-24 2012-11-28 中兴通讯股份有限公司 Self-adapted method and device of storage device capacity in embedded type system
CN103309816A (en) * 2013-05-31 2013-09-18 苏州亮智科技有限公司 Solid hard disk, electronic device with solid hard disk and dynamic capacity control method of solid hard disk
CN106095329A (en) * 2016-05-27 2016-11-09 浪潮电子信息产业股份有限公司 A kind of management method of Intel SSD hard disk based on NVME interface
CN106126117A (en) * 2016-06-20 2016-11-16 浪潮电子信息产业股份有限公司 A kind of method formatting PCIE SSD capacity
CN106484587A (en) * 2015-08-26 2017-03-08 华为技术有限公司 A kind of NameSpace management method, device and computer system
US20170315728A1 (en) * 2016-04-29 2017-11-02 Netapp, Inc. Consistency group management

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023818A (en) * 2010-12-06 2011-04-20 成都市华为赛门铁克科技有限公司 Method and device for regulating capacity of storage equipment, and storage equipment
CN102799536A (en) * 2011-05-24 2012-11-28 中兴通讯股份有限公司 Self-adapted method and device of storage device capacity in embedded type system
CN103309816A (en) * 2013-05-31 2013-09-18 苏州亮智科技有限公司 Solid hard disk, electronic device with solid hard disk and dynamic capacity control method of solid hard disk
CN106484587A (en) * 2015-08-26 2017-03-08 华为技术有限公司 A kind of NameSpace management method, device and computer system
US20170315728A1 (en) * 2016-04-29 2017-11-02 Netapp, Inc. Consistency group management
CN106095329A (en) * 2016-05-27 2016-11-09 浪潮电子信息产业股份有限公司 A kind of management method of Intel SSD hard disk based on NVME interface
CN106126117A (en) * 2016-06-20 2016-11-16 浪潮电子信息产业股份有限公司 A kind of method formatting PCIE SSD capacity

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902033A (en) * 2019-02-13 2019-06-18 山东华芯半导体有限公司 The LBA distribution method and mapping method of namespace applied to NVMe SSD controller
CN109902033B (en) * 2019-02-13 2023-03-14 山东华芯半导体有限公司 LBA (logical Block addressing) distribution method and mapping method of namespace applied to NVMe SSD (network video management entity) controller
CN117149093A (en) * 2023-10-27 2023-12-01 四川省华存智谷科技有限责任公司 Method for improving reliability of storage system through SSD (solid State disk) capacity shrinkage
CN117149093B (en) * 2023-10-27 2024-03-26 四川省华存智谷科技有限责任公司 Method for improving reliability of storage system through SSD (solid State disk) capacity shrinkage

Also Published As

Publication number Publication date
CN108108133B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
US10824564B2 (en) Operation method of memory controller and operation method of storage device including the same
CN106354615B (en) Solid state disk log generation method and device
US8650379B2 (en) Data processing method for nonvolatile memory system
US8984247B1 (en) Storing and reconstructing mapping table data in a data storage system
JP5982576B2 (en) Flash Translation Layer (FTL) database journaling scheme
CN107544755B (en) Data read-write control method and device
CN106201652B (en) Data processing method and virtual machine
KR20160147509A (en) Method for managing data of storage device by temperature
KR102592796B1 (en) Data storage device and operating method thereof
CN102117184A (en) Controller for multimemory, terminal equipment and starting and access method thereof
KR20170125698A (en) Generalized write operations verification method
CN112204515A (en) Logical to physical data structure
CN104685443A (en) Pinning boot data for faster boot
CN108108133A (en) A kind of method and apparatus for changing nvme SSD hard disk users and capacity can be used
CN106844491B (en) Temporary data writing and reading method and device
US20100125697A1 (en) Computing device having storage, apparatus and method of managing storage, and file system recorded recording medium
US20170161083A1 (en) System and method for booting a host device from a mobile device
US10203893B2 (en) Memory channel storage device detection
US11403211B2 (en) Storage system with file priority mechanism and method of operation thereof
CN104133640B (en) From the fast quick-recovery of dormancy
CN111694580B (en) Method and device for upgrading and initializing storage device and electronic device
CN110531925B (en) Data reading method and device, electronic equipment and machine-readable storage medium
CN113950673A (en) Non-volatile storage partition identifier
CN111435285B (en) Data writing method and device for storage volume, electronic equipment and machine-readable storage medium
CN115495392B (en) Memory multiplexing method and device in multi-stage starting, storage medium and processor

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210207

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

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: Room 1601, 16 / F, 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province, 450000

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant