Drive letter drifting preventing and treating method and device

A drive letter drifting and processing method technology, applied in the server field, can solve problems such as troublesome disk operation and maintenance, discrepancies between the drive letter sequence and the actual slot sequence, and disk unusability, so as to avoid drive letter drift and prevent wrong plugging disk effect

Active Publication Date: 2014-03-26
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF4 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because the system does not have a mount point corresponding to sdm, the disk cannot be used. At the same time, disk3 corresponds to the sdc that has been deleted. Subsequent IO reques

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Drive letter drifting preventing and treating method and device
  • Drive letter drifting preventing and treating method and device
  • Drive letter drifting preventing and treating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

[0033] In the present invention, unless otherwise clearly specified and limited, terms such as "installation", "connection", "connection" and "fixation" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components. Those of ordinary skill in the art can understand...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a drive letter drifting preventing and treating method. The method comprises the following steps that a device management tool Udev in a kernel monitors a Uevent in a daemon process mode, wherein the Uevent is sent by the kernel; when the device management tool Udev monitors that the Uevent of a disk is deleted, whether a mount point of a disk device in a system is unloaded or not is detected, and a corresponding drive letter is unloaded if the disk device is in the mount state; when the device management tool Udev monitors that the Uevent of the disk device is loaded, the corresponding mount point of the original drive letter is unloaded to enable the reference of the original disk device in the kernel is released if the situation that drifting happens to the distributed drive letter is detected, and the disk is reloaded in a simulation hot plug mode to enable the name of a kernel module of the disk to be the same as that of a device file. The invention further discloses a drive letter drifting preventing and treating device. According to the drive letter drifting preventing and treating method and device, drifting is prevented from happening to the drive letter sequence when the disk is reloaded.

Description

technical field [0001] The present invention relates to the technical field of servers, and in particular to a method and device for preventing and processing drive letter drift, a method and device for preventing drive letter drift, and a method and device for processing drive letter drift. Background technique [0002] When the disk is loaded by the system, the kernel will assign the disk driver module name in turn. The device management tool Udev will generate the corresponding block device file name according to the driver module name of the disk in the kernel, such as the third disk, the driver module name in the kernel is sdc, the block device file name is sdc, and the fourth disk The driver module name and block device file name are sdd; when the disk is pulled out from the system, if its corresponding mount point has been unmounted, the kernel will release the corresponding disk device file data, otherwise it will continue to hold. [0003] Before the disk is pulled...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F3/06G06F11/00
Inventor 胡殿明刘雨亮魏伟
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products