Method and device for managing physical hard disks in a distributed storage system
A distributed storage and management method technology, applied in the field of distributed storage hard disk management, can solve problems such as business interruption, upper-layer business impact of distributed storage system, and business stability, so as to reduce impact and avoid system DM information confusion , to avoid the effect of drive letter drift
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0091] Such as figure 1 As shown, the present invention provides a management method of a physical hard disk under a distributed storage system, comprising:
[0092] S1. Create an OSD through the distributed storage management platform, and write the location information such as the OSDID and OSD cluster identifier of the OSD device in the distributed storage system and the logical information of the logical volume group and the physical volume group of the LVM into the physical storage through the log of the LVM in the hard disk;
[0093] S2. By monitoring the UDEV event of the hardware device in the kernel, the ESN, the hard disk WWN and the hard disk drive letter of the unplugged and inserted physical hard disk are obtained, and the OSD ID and OSD cluster identifier of the OSD device in the corresponding distributed storage system are found, and then Use the OSD ID and OSD cluster ID of the OSD device to modify the operating status of the OSD device in the distributed stor...
Embodiment 2
[0095] Such as figure 2 Shown is a schematic diagram of the creation principle of an OSD device in the embodiment of the present invention. When creating an OSD device in a distributed storage system, different device types can be selected, such as mechanical hard disks, solid-state hard disks, and mechanical hard disks and solid-state hard disks. Various combined equipment DM, FLCD, etc. Such as image 3Shown is a schematic flow chart of creating an OSD device in an embodiment of the present invention, combined with figure 2 and image 3 , the process of creating an OSD device includes:
[0096] S11. Different device combinations can be created as a Device-mapper according to business requirements. When creating a Device-mapper device, the WWN and ESN of the physical hard disk can be written into the corresponding device configuration, such as FLCD configuration;
[0097] S12, adding the created Device-mapper device or the physical hard disk to the physical volume group...
Embodiment 3
[0103] Such as Figure 4 Shown is the mapping relationship between the DM device and the physical hard disk in the embodiment of the present invention. The Device-mapper device is a Linux system that filters or redirects business read and write requests through modular Target Driver plug-ins in the kernel. The currently implemented Target Driver plug-ins include soft RAID, logical volume striping, and multipathing. , cache, mirror, snapshot, etc. Device-mapper consists of one or more block devices. Block devices can be physical hard disks or hard disk partitions, or Device-mapper devices. That is to say, Device-mapper can be continuously iterated. Such as Figure 4 As shown, in order to obtain all related physical hard disks of Device-mapper device 1, the following method can be used:
[0104] (1) Find the major device number and the minor device number of Device-mapper 1 in the Linux system;
[0105] (2) Through the major device number and minor device number, the sub-dev...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com