Method for binding disk drives of servers

A server and disk technology, applied in the computer field, can solve the problems of disk drive letter drift, server restart, etc., and achieve the effect of convenient disk replacement and good stability

Active Publication Date: 2017-10-10
HANGZHOU WOQU NETWORK TECH
View PDF2 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention aims at the shortcomings of server restart and disk letter drift caused by hard disk insertion and removal in the prior art, and provides a disk letter binding method for a server

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
  • Method for binding disk drives of servers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] In the default disk drive letter of the system, the path of the disk drive letter is / dev / sda. After triggering the udev rule, rename the disk device path name ( / dev / sda), and obtain the disk through udevadm test / sys / block / sda ID-path, and then generate a disk letter through a python script, the script is disk2slot.pyc, the script command is / usr / bin / python / disk2slot.pyc$env{ID_PATH}, and the disk letter generation binding character is P0B00S00, Then execute SYMLINK+="qdisk / $env{QDISK_SLOT} to link the disk device to the / dev / qdisk / directory, and the final disk device link is / dev / qdisk / P0B00S00.

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 relates to the technical field of computers, and discloses a method for binding disk drives of server. The method comprises the following steps of: (1) before system starting, inserting a disk at each slot position on a host; (2) in a system starting process, distributing corresponding system drives for the disks by a kernel, and distributing the disks by the kernel according to a sequence of scanning the disks; (3) binding a system drive with slot position information on a server by the system drive according to a kernel equipment manager rule file, sending a renaming message to the kernel by a kernel equipment manager, and modifying the system drive by the kernel according to the renaming message; and (4) binding the disks by the kernel equipment manager according to the system drive modified in the step (3) so as to form binding drives. According to the method, disk slot positions and drives are bound, and the disk drives used by Oracle ASM do not change after restarting, so that favorable stability is provided. Meanwhile, the method can support online disk change, so that the disk change is more convenient.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method for binding a disk drive letter of a server. Background technique [0002] PYTHON language is an object-oriented, interpreted computer programming language. Nowadays, it is more and more used in the field of IT operation and maintenance automation. The advantage of PYTHON in system management lies in its strong development capabilities and complete tool chain. PYTHON has become a sharp weapon in the hands of operation and maintenance personnel. [0003] The kernel device manager (udev) is a function in the LINUX2.6 kernel. It replaces the original DEVFS and becomes the default device management tool for the current LINUX system. The kernel device manager (udev) exists in the form of a daemon process, and manages the device files in the / DEV directory by listening to the action events sent by the kernel. If there are multiple hard disks, during the system startup proc...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F9/445
CPCG06F9/4411G06F9/44578
Inventor 赵晨李建辉熊中哲魏兴华臧冰凌李春陈栋张文件罗春
Owner HANGZHOU WOQU NETWORK TECH
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