CN109471597B - System resetting method, device and system of storage equipment and readable storage medium - Google Patents
System resetting method, device and system of storage equipment and readable storage medium Download PDFInfo
- Publication number
- CN109471597B CN109471597B CN201811295825.5A CN201811295825A CN109471597B CN 109471597 B CN109471597 B CN 109471597B CN 201811295825 A CN201811295825 A CN 201811295825A CN 109471597 B CN109471597 B CN 109471597B
- Authority
- CN
- China
- Prior art keywords
- controller
- reset
- file information
- storage device
- resetting
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004590 computer program Methods 0.000 claims description 12
- 238000001514 detection method Methods 0.000 claims description 12
- 230000001960 triggered effect Effects 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; CALCULATING OR 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/0614—Improving the reliability of storage systems
- G06F3/0617—Improving the reliability of storage systems in relation to availability
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0658—Controller construction arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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]
Abstract
The invention discloses a system resetting method, a device and a system of storage equipment and a computer readable storage medium, wherein the method comprises the steps of obtaining an IP resetting instruction of a controller; and resetting the IP of the controller according to the IP resetting instruction, so that the IP of the controller is recovered to the default IP from the current IP. Therefore, the storage device in the application can reset the IP of the controller to the default IP according to the IP reset instruction after the IP reset instruction of the controller is obtained, so that a user can access the storage device through the default IP when forgetting the current IP of the controller, and further manage and maintain the storage device.
Description
Technical Field
The present invention relates to the field of storage device technologies, and in particular, to a method, an apparatus, a system, and a computer-readable storage medium for system reset of a storage device.
Background
With the development of SAN networks and large data, the demand for disk array systems is increasing day by day, and the storage device usually has a certain number of USB interfaces in addition to the data interfaces such as optical fiber and ethernet, and the USB interfaces are generally used as installation interfaces for storage software.
The controller of the storage device is provided with a default IP when leaving a factory, an administrator can manage the storage device through the default IP and modify the IP according to actual conditions, however, if the administrator forgets the modified IP, the situation that the storage device cannot be managed occurs, and user requirements are difficult to meet.
In view of the above, how to provide a system reset method, apparatus, system and computer readable storage medium for a storage device to solve the above technical problems becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention aims to provide a system resetting method, a device and a system of a storage device and a computer readable storage medium.
To solve the foregoing technical problem, an embodiment of the present invention provides a system resetting method for a storage device, including:
acquiring an IP reset instruction of a controller;
and resetting the IP of the controller according to the IP resetting instruction, so that the IP of the controller is recovered to a default IP from the current IP.
Optionally, the process of acquiring the IP reset instruction of the controller is as follows:
and detecting whether file information meeting preset conditions exists or not, and if so, acquiring and analyzing the file information to obtain an IP (Internet protocol) reset instruction of the controller.
Optionally, the process of detecting whether the file information meeting the preset condition exists is as follows:
after detecting that USB equipment is accessed, acquiring file information prestored in the USB equipment;
and judging whether the file name of the file information is consistent with a preset file name or not, if so, enabling the file information to meet the preset condition.
Optionally, after the resetting the IP of the controller according to the IP reset instruction, the method further includes:
and judging whether the reset IP is the default IP or not, and if so, prompting the user that the IP of the controller is reset successfully.
The embodiment of the invention correspondingly provides a system resetting device of a storage device, which comprises:
the acquisition module is used for acquiring an IP reset instruction of the controller;
and the resetting module is used for resetting the IP of the controller according to the IP resetting instruction so as to restore the IP of the controller from the current IP to the default IP.
Optionally, the obtaining module includes:
the detection unit is used for detecting whether file information meeting preset conditions exists or not, and if yes, the acquisition unit is triggered;
and the acquisition unit is used for acquiring and analyzing the file information to obtain the IP reset instruction of the controller.
Optionally, the detection unit includes:
the device comprises a detection subunit, a storage unit and a processing unit, wherein the detection subunit is used for acquiring file information pre-stored in the USB equipment after detecting that the USB equipment is accessed;
and the judging subunit is used for judging whether the file name of the file information is consistent with a preset file name or not, and if so, triggering the acquiring unit.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the reset IP is the default IP or not, and if so, the prompting module is triggered;
and the prompting module is used for prompting the user that the IP of the controller is successfully reset.
The embodiment of the present invention further provides a system resetting system of a storage device, including:
a memory for storing a computer program;
a processor for implementing the steps of the system resetting method of the storage device as described above when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the system resetting method for a storage device as described above are implemented.
The embodiment of the invention provides a system resetting method, a device and a system of storage equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring an IP reset instruction of a controller; and resetting the IP of the controller according to the IP resetting instruction, so that the IP of the controller is recovered to the default IP from the current IP. Therefore, the storage device in the application can reset the IP of the controller to the default IP according to the IP reset instruction after the IP reset instruction of the controller is obtained, so that a user can access the storage device through the default IP when forgetting the current IP of the controller, and further manage and maintain the storage device.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart illustrating a system resetting method of a storage device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a system resetting apparatus of a memory device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system resetting system of a storage device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a system resetting method, a device and a system of storage equipment and a computer readable storage medium.
In order to make the objects, 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 with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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.
Referring to fig. 1, fig. 1 is a flowchart illustrating a system resetting method of a memory device according to an embodiment of the present invention. The method comprises the following steps:
s110: acquiring an IP reset instruction of a controller;
s120: and resetting the IP of the controller according to the IP resetting instruction, so that the IP of the controller is recovered to the default IP from the current IP.
It should be noted that, when the user forgets the current IP of the controller, the storage system may be instructed to reset the IP of the controller, so that the IP of the controller is restored to the factory setting, specifically, after the IP reset instruction of the controller is obtained, the IP of the controller of the storage device is restored to the default IP according to the IP reset instruction, and the user may access the storage device through the default IP.
The process of acquiring the IP reset instruction of the controller in S10 may specifically be:
and detecting whether file information meeting preset conditions exists or not, and if so, acquiring and analyzing the file information to obtain an IP (Internet protocol) reset instruction of the controller.
Specifically, the received file information may be detected periodically or at regular time, and after the file information meeting the preset condition is detected, the file information is analyzed by using a preset analysis method, so as to obtain an IP reset instruction of the controller, where the IP reset instruction of the controller in the file information is written in advance.
Further, the process of detecting whether the file information meeting the preset condition exists may specifically be:
after detecting that the USB equipment is accessed, acquiring file information prestored in the USB equipment;
and judging whether the file name of the file information is consistent with a preset file name or not, if so, enabling the file information to meet the preset condition.
The method comprises the steps of editing a file by adopting a set grammar requirement in advance, storing file information into target USB equipment, acquiring the file information stored in the accessed USB equipment after a system detects that the USB equipment is accessed, judging whether the file information meets the preset requirement or not, and analyzing the file information and obtaining an IP reset instruction of a controller when the preset requirement is met.
Specifically, the file name may be used as a determination basis, that is, a preset file name is preset as a standard file name, after the file information is obtained, the file name of the file information is identified, and the file name is matched with the preset file name, and if the file name is consistent with the preset file name, it is determined that the file information is the file information meeting the preset condition.
It should be noted that, since the USB device is carried, the IP of the controller in the storage device can be reset by the file information that is stored in the USB device and meets the preset requirement in this embodiment.
Further, after resetting the IP of the controller according to the IP reset instruction in S120, the method may further include:
and judging whether the reset IP is the default IP or not, and if so, prompting the user that the IP of the controller is successfully reset.
It can be understood that, in order to facilitate the user to know that the IP reset of the controller is successful, the default IP may be used to access the storage device, and the user may be prompted that the IP reset of the controller is successful after the IP of the controller is reset to the default IP. The user can be specifically prompted by a prompting lamp or a message mode.
The embodiment of the invention provides a system resetting method of a storage device, which comprises the following steps: acquiring an IP reset instruction of a controller; and resetting the IP of the controller according to the IP resetting instruction, so that the IP of the controller is recovered to the default IP from the current IP. Therefore, the storage device in the application can reset the IP of the controller to the default IP according to the IP reset instruction after the IP reset instruction of the controller is obtained, so that a user can access the storage device through the default IP when forgetting the current IP of the controller, and further manage and maintain the storage device.
On the basis of the foregoing embodiments, the present invention provides a system resetting apparatus for a memory device, which is specifically shown in fig. 2. The device includes:
an obtaining module 21, configured to obtain an IP reset instruction of the controller;
and the resetting module 22 is configured to reset the IP of the controller according to the IP resetting instruction, so that the IP of the controller is restored from the current IP to the default IP.
Further, the obtaining module 21 includes:
the detection unit is used for detecting whether file information meeting preset conditions exists or not, and if yes, the acquisition unit is triggered;
and the acquisition unit is used for acquiring and analyzing the file information to obtain the IP reset instruction of the controller.
Further, the detection unit includes:
the detection subunit is used for acquiring file information prestored in the USB equipment after detecting that the USB equipment is accessed;
and the judging subunit is used for judging whether the file name of the file information is consistent with the preset file name or not, and if so, triggering the acquiring unit.
Further, the apparatus further comprises:
the judging module is used for judging whether the reset IP is the default IP or not, and if so, the prompting module is triggered;
and the prompting module is used for prompting the user that the IP reset of the controller is successful.
It should be noted that the embodiment of the present invention has the same beneficial effects as the system resetting method of the storage device provided in the foregoing embodiment, and for the specific description of the system resetting method of the storage device related in the present embodiment, please refer to the foregoing embodiment, which is not described herein again.
On the basis of the foregoing embodiments, an embodiment of the present invention further provides a system resetting system for a storage device, and specifically refer to fig. 3. The system comprises:
a memory 31 for storing a computer program;
the processor 32, when executing the computer program, implements the steps of the system resetting method of the storage device as described above.
For example, the processor 31 in this embodiment is configured to obtain an IP reset instruction of the controller; and resetting the IP of the controller according to the IP resetting instruction, so that the IP of the controller is recovered to the default IP from the current IP.
On the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the system resetting method for a storage device as described above.
The computer-readable storage medium may include: various media capable of storing program codes, 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.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It should also be noted that in this specification, terms such as "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. A method for system reset of a storage device, comprising:
acquiring an IP reset instruction of a controller;
resetting the IP of the controller according to the IP resetting instruction, and restoring the IP of the controller from the current IP to the default IP, wherein:
the process of acquiring the IP reset instruction of the controller comprises the following steps:
detecting whether file information meeting preset conditions exists or not, if so, acquiring and analyzing the file information to obtain an IP (Internet protocol) reset instruction of the controller; wherein:
the process of detecting whether the file information meeting the preset condition exists is as follows:
and regularly or periodically detecting whether the received file information has file information meeting preset conditions.
2. The method according to claim 1, wherein the detecting whether there is file information satisfying a preset condition is performed by:
after detecting that USB equipment is accessed, acquiring file information prestored in the USB equipment;
and judging whether the file name of the file information is consistent with a preset file name or not, if so, enabling the file information to meet the preset condition.
3. The method for system resetting of the storage device according to any one of claims 1 to 2, further comprising, after the resetting of the IP of the controller according to the IP reset instruction:
and judging whether the reset IP is the default IP or not, and if so, prompting the user that the IP of the controller is reset successfully.
4. A system reset apparatus for a storage device, comprising:
the acquisition module is used for acquiring an IP reset instruction of the controller;
the reset module is used for resetting the IP of the controller according to the IP reset instruction so as to recover the IP of the controller from the current IP to the default IP; wherein:
an acquisition module, comprising:
the detection unit is used for detecting whether file information meeting preset conditions exists or not, and if yes, the acquisition unit is triggered;
the acquiring unit is configured to acquire and analyze the file information to obtain an IP reset instruction of the controller, where:
the detection unit is specifically configured to detect whether file information meeting a preset condition exists in the received file information at regular time or periodically.
5. The system reset apparatus of the storage device according to claim 4, wherein the detection unit comprises:
the device comprises a detection subunit, a storage unit and a processing unit, wherein the detection subunit is used for acquiring file information pre-stored in the USB equipment after detecting that the USB equipment is accessed;
and the judging subunit is used for judging whether the file name of the file information is consistent with a preset file name or not, and if so, triggering the acquiring unit.
6. The system resetting apparatus of a storage device according to any one of claims 4 to 5, further comprising:
the judging module is used for judging whether the reset IP is the default IP or not, and if so, the prompting module is triggered;
and the prompting module is used for prompting the user that the IP of the controller is successfully reset.
7. A system reset system for a storage device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the system reset method of a storage device according to any one of claims 1 to 3 when executing said computer program.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the system resetting method of a storage device according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811295825.5A CN109471597B (en) | 2018-11-01 | 2018-11-01 | System resetting method, device and system of storage equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811295825.5A CN109471597B (en) | 2018-11-01 | 2018-11-01 | System resetting method, device and system of storage equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109471597A CN109471597A (en) | 2019-03-15 |
CN109471597B true CN109471597B (en) | 2022-02-18 |
Family
ID=65672239
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811295825.5A Active CN109471597B (en) | 2018-11-01 | 2018-11-01 | System resetting method, device and system of storage equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109471597B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423583A (en) * | 2017-07-18 | 2017-12-01 | 北京深思数盾科技股份有限公司 | A kind of software protecting device remapping method and device |
CN108196898A (en) * | 2016-12-08 | 2018-06-22 | 中兴通讯股份有限公司 | System remapping method, device and electronic equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092799B (en) * | 2012-12-28 | 2015-07-22 | 飞天诚信科技股份有限公司 | Universal serial bus (USB) device and method for recognition of host operating system |
-
2018
- 2018-11-01 CN CN201811295825.5A patent/CN109471597B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108196898A (en) * | 2016-12-08 | 2018-06-22 | 中兴通讯股份有限公司 | System remapping method, device and electronic equipment |
CN107423583A (en) * | 2017-07-18 | 2017-12-01 | 北京深思数盾科技股份有限公司 | A kind of software protecting device remapping method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109471597A (en) | 2019-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114006771B (en) | Flow detection method and device | |
CN109344046B (en) | Data processing method, device, medium and electronic equipment | |
WO2015106710A1 (en) | Contact information processing method, apparatus, and system | |
CN113709147B (en) | Network security event response method, device and equipment | |
CN103995719A (en) | System reset method and device and electronic equipment | |
CN109471597B (en) | System resetting method, device and system of storage equipment and readable storage medium | |
CN111124731A (en) | File system abnormity monitoring method, device, equipment and medium | |
CN108920263B (en) | Method and apparatus for application retention | |
CN108494749B (en) | Method, device and equipment for disabling IP address and computer readable storage medium | |
CN107066353B (en) | Data using method and data consistency assembly in data backup process | |
CN113204383A (en) | Method, device and system for storing BMC configuration parameters and storage medium | |
CN107766131B (en) | Task scheduling method and device | |
CN112346420A (en) | Consumable detection method, consumable detection device, consumable detection equipment and computer-readable storage medium | |
CN110955894B (en) | Malicious content detection method and device, electronic equipment and readable storage medium | |
CN111581637A (en) | SQL injection detection method, device, equipment and computer storage medium | |
CN113112023B (en) | Inference service management method and device of AIStation inference platform | |
CN112463348B (en) | Timed task processing method and device | |
CN106789863B (en) | Matching rule upgrading method and device | |
CN114154087A (en) | Time blind comment detection method, device, equipment and readable storage medium | |
CN104407994A (en) | Method and device for identifying storage equipment inserted into slots of computer | |
CN110933500B (en) | Voice triggering method, device, equipment and computer storage medium | |
CN105988835B (en) | Software upgrading method and terminal | |
CN111078382A (en) | Command timeout processing method and device | |
US8639893B2 (en) | Information processing apparatus, information processing method, and computer readable medium storing program | |
CN114817868B (en) | License verification method, device, equipment 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 |