CN101271420B - Operating system hard disk recognition device - Google Patents

Operating system hard disk recognition device Download PDF

Info

Publication number
CN101271420B
CN101271420B CN200710064566A CN200710064566A CN101271420B CN 101271420 B CN101271420 B CN 101271420B CN 200710064566 A CN200710064566 A CN 200710064566A CN 200710064566 A CN200710064566 A CN 200710064566A CN 101271420 B CN101271420 B CN 101271420B
Authority
CN
China
Prior art keywords
hard disk
operating system
management controller
module
baseboard management
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
Application number
CN200710064566A
Other languages
Chinese (zh)
Other versions
CN101271420A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN200710064566A priority Critical patent/CN101271420B/en
Publication of CN101271420A publication Critical patent/CN101271420A/en
Application granted granted Critical
Publication of CN101271420B publication Critical patent/CN101271420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a hard disc identification device of an operating system for indentifying a hard disc of the operating system of a computer with a hard disc module. The present invention includes an obtaining module for obtaining the hard disc logical partition of the current operating system and sending the corresponding physical hard disc information of the hard disc logical partition to a main board management controller; a main board management controller for driving an indication module to indicate the hard disc of the operating system according to the corresponding physical hard disc information; an indication module for indicating the hard disc of the operating system according to the drive of the main board management controller. The hard disc identification device of the operating system provided by the present invention can identify the hard disc of the operating system without entering the operating interface of the operating system and then instruct a user; in addition, the user unnecessarily knows the corresponding relationship between the hard disc logical partition and the physical hard disc.

Description

A kind ofly discern the device that hard disk is equipped with operating system
Technical field
The present invention relates to computer realm, particularly relate to a kind of device that hard disk is equipped with operating system of discerning.
Background technology
In server system, the general hard disk module of supporting that installation comprises a plurality of hard disks.In the operating system installation of server one or a few hard disk therein, installation data and application etc. in remaining hard disk, the hard disk that operating system is installed is referred to as operating system hard disk.
In system's operational process, the user may need the hard disk in the hard disk module is carried out hot plug.Because operation has operating system in the operating system hard disk, can not carry out hot plug to it, thereby need to discern the hard disk at current operation system place.Otherwise, if the hard disk at operating system place has been carried out hot plug, will bringing on a disaster property consequence.
The solution of identifying operation system disk is in the prior art: for server connects display, the system manager enters the operating system management interface, obtain the hard disk logical partition at current operation system place by operation, according to the corresponding relation between hard disk logical partition and the physical hard disk, determine the physical hard disk information of installing operating system.After getting access to operating system hard disk, can be labelled on hard disk bracket, identify operating system hard disk and not operation system disk, other users just can come the identifying operation system disk by label easily like this.
The shortcoming of existing solution is: server need be connected to display, and enters the operating system management interface by the system manager, and needs the clear corresponding relation of understanding between hard disk logical partition and the physical hard disk.
But what have in the existing server system does not provide display, for example rack (RACK) formula server system.In addition, on can only remote-operated server system, this locality can not enter the operating system interface.Like this, just can not utilize such scheme to come the identifying operation system disk.And, also a plurality of operating systems may be installed at server, each operating system installation is on different hard disks, and like this, the operating system of current operation is uncertain, and above-mentioned labelled mode can not reflect the hard disk of current operation system in real time.
Summary of the invention
Technical matters to be solved by this invention provides a kind of device that hard disk is equipped with operating system of discerning, and does not need to enter in the operating system interface, just can discern the hard disk that operating system is installed, and the user is given in indication.
In order to address the above problem, it is as follows to the invention provides technical scheme:
A kind ofly discern the device that hard disk is equipped with operating system, be applied in the computing machine with the hard disk module, described hard disk module comprises a plurality of hard disks, and described device comprises:
Acquisition module is used to obtain the hard disk logical partition at current operation system place, and described hard disk logical partition corresponding physical hard disk information is sent to Baseboard Management Controller, and described physical hard disk information is used to indicate one or more hard disks that operating system is installed;
Baseboard Management Controller is used for according to described corresponding physical hard disk information, drives indicating module the hard disk that operating system is installed is indicated;
Indicating module is used for according to the driving of Baseboard Management Controller the hard disk that operating system is installed being indicated.
Preferably, described operating system hard disk recognition device also comprises:
Trigger module is used for the triggering for generating trigger pip according to the outside, and trigger pip is sent to Baseboard Management Controller;
Baseboard Management Controller is further used for according to described corresponding physical hard disk information and described trigger pip, drives indicating module the hard disk that operating system is installed is indicated.
Preferably, be provided with two groups of registers in the Baseboard Management Controller, when receiving described corresponding physical hard disk information, with the corresponding positions set of first group of register; When receiving described trigger pip, with the corresponding positions set of second group of register; And when the value of determining described two groups of registers equates, drive indicating module the hard disk that operating system is installed is indicated.
Preferably, acquisition module obtains the hard disk logical partition at current operation system place from operating system by application programming interfaces.
Preferably, acquisition module also obtains corresponding relation between hard disk logical partition number and the physical hard disk number by application programming interfaces from operating system, and after getting access to the hard disk logical partition at current operation system place, described hard disk logical partition corresponding physical hard disk information is sent to Baseboard Management Controller according to described corresponding relation.
Preferably, acquisition module sends to Baseboard Management Controller by IPMI message with described corresponding physical hard disk information.
Preferably, indicating module to the indicating mode of hard disk that operating system is installed is:
LED light lamp is lighted or hummer buzzing or LCD are shown.
The invention has the beneficial effects as follows: the hard disk logical partition that obtains the current operation system place by acquisition module, described hard disk logical partition corresponding physical hard disk information is sent to Baseboard Management Controller, Baseboard Management Controller drives indicating module operating system hard disk is indicated according to described corresponding physical hard disk information.Like this, do not need the support of display, do not need to enter the operating system interface yet, just can discern the hard disk of current operation system easily; And the user does not need to understand the corresponding relation between hard disk logical partition and the physical hard disk yet.
Description of drawings
Fig. 1 is the structural representation of the described operating system hard disk recognition device of the embodiment of the invention;
Fig. 2 is the structural representation of the described operating system hard disk recognition device of another embodiment of the present invention;
Fig. 3 is an application example synoptic diagram of operating system hard disk recognition device of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the accompanying drawings and the specific embodiments.
Please refer to Fig. 1, be the described operating system hard disk recognition device of the embodiment of the invention, it is used to the identification with hard disk module operation system of computer hard disk, mainly comprise: acquisition module 10, Baseboard Management Controller (Baseboard Management Controller, BMC) 20 and indicating module 30.
Acquisition module 10 obtains the hard disk logical partition at current operation system place, and described hard disk logical partition corresponding physical hard disk information is sent to Baseboard Management Controller 20.Baseboard Management Controller 20 drives 30 pairs of operating system hard disks of indicating module and indicates according to described corresponding physical hard disk information.
In the present embodiment, acquisition module 10 is by application programming interfaces (Application ProgrammingInterface, API) from operating system, obtain the hard disk logical partition at current operation system place, and (Intelligent Platform Management Interface, IPMI) message sends to Baseboard Management Controller 20 with described corresponding physical hard disk information to pass through IPMI.
In addition, also from operating system, obtain corresponding relation between hard disk logical partition number and the physical hard disk number in the acquisition module 10 by API, and after getting access to the hard disk logical partition at current operation system place, described hard disk logical partition corresponding physical hard disk information is sent to Baseboard Management Controller 20 according to described corresponding relation.
Wherein, Baseboard Management Controller 20 is provided with a plurality of universal input/output interfaces (General-Purpose I/O Port, GPIO) pin, it drives 30 pairs of operating system hard disks of indicating module by the high/low level of output on corresponding GPIO pin and indicates.For example, the GPIO pin that the output high level connects to the current operation system hard disk, light emitting diode corresponding with operating system hard disk on the indicating module 30 (Light-Emitting Diode, LED) light by lamp.
Need to prove that the indicating mode of indicating module 30 is not limited to light the LED lamp, can also for: (Liquid Crystal Display LCD) shows and to wait other indicating modes for hummer buzzing or LCD.
Please refer to Fig. 2, in another embodiment of the present invention, also comprise trigger module 40.This trigger module 40 can realize that specifically promptly trigger module 40 is the combination of a plurality of buttons with button, and each button is corresponding to a physical hard disk in the hard disk module.Trigger module 40 produces trigger pip when being subjected to outside triggering (for example the user pushes button), and trigger pip is sent to Baseboard Management Controller 20; Baseboard Management Controller 20 further according to the physical hard disk information of described trigger pip and acquisition module 10 transmissions, drives 30 pairs of operating system hard disks of indicating module and indicates.Be that with the difference of first embodiment indicating module 30 is not to indicate always, but just indicates, and can save a part of electric energy like this when Baseboard Management Controller 20 receives trigger pip.
Wherein, two groups of registers can be set in Baseboard Management Controller 20, when receiving the physical hard disk information of acquisition module 10 transmissions, with the corresponding positions set of first group of register; When receiving described trigger pip, with the corresponding positions set of second group of register.And the value of these two groups of registers compared, if the value of two groups of registers equates, illustrate that the pairing physical hard disk of the button that is pressed is an operating system hard disk, so at corresponding GPIO pin output high level, LED lamp corresponding with operating system hard disk in the indicating module 30 is lighted; Otherwise, illustrate that the pairing physical hard disk of the button that is pressed is not an operating system hard disk, to corresponding GPIO pin output high level, corresponding LED does not keep extinguishing.
Please refer to Fig. 3, in concrete the application, acquisition module 10 can be for operating in application program or the service on the operating system.This application program or service are obtained the logical partition at current operation system place by api function from the operating system bottom, and according to the corresponding relation between hard disk logical partition number and the physical hard disk number, use IPMI message that operating system physical hard disk information is seen through operating system and send BMC (design has BMC on the computer motherboard, supports the IPMI standard commands) to.
A button of design and a LED lamp suppose that this hard disk module comprises two hard disks, hard disk bracket 1 corresponding button 1 and LED1, hard disk bracket 2 corresponding button 2 and LED2 on each hard disk bracket of hard disk module.Each button and LED all are connected to the GPIO pin of BMC: LED1 is connected to GPIO1, and button 1 is connected to GPIO2, and LED2 is connected to GPIO3, and button 2 is connected to GPIO4.
(Firmware, F/W) design has two groups of registers: register 1, register 2, register 1 are preserved the operating system physical hard disk information that transmits from application program or service to the firmware of BMC, and register 2 is preserved the trigger message that transmits from each button.
When the button of certain hard disk bracket is pressed, the F/W Automatic Program of BMC compares the information of two groups of register correspondences, if the value of register equates, illustrate that the hard disk when fore-stock is exactly the hard disk of operating system installation, the GPIO output high level of F/W programmed control correspondence is when the LED of fore-stock lamp is lighted.Otherwise the LED lamp keeps extinguishing state.
Should be noted that at last, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not breaking away from the spiritual scope of technical solution of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.

Claims (7)

1. discern the device that hard disk is equipped with operating system for one kind, be applied in the computing machine with the hard disk module, described hard disk module comprises a plurality of hard disks, it is characterized in that, described device comprises:
Acquisition module is used to obtain the hard disk logical partition at current operation system place, and described hard disk logical partition corresponding physical hard disk information is sent to Baseboard Management Controller, and described physical hard disk information is used to indicate one or more hard disks that operating system is installed;
Baseboard Management Controller is used for according to described corresponding physical hard disk information, drives indicating module the hard disk that operating system is installed is indicated;
Indicating module is used for according to the driving of Baseboard Management Controller the hard disk that operating system is installed being indicated.
2. device as claimed in claim 1 is characterized in that, also comprises:
Trigger module is used for the triggering for generating trigger pip according to the outside, and trigger pip is sent to Baseboard Management Controller;
Baseboard Management Controller is further used for according to described corresponding physical hard disk information and described trigger pip, drives indicating module the hard disk that operating system is installed is indicated.
3. device as claimed in claim 2 is characterized in that:
Be provided with two groups of registers in the Baseboard Management Controller, when receiving described corresponding physical hard disk information, with the corresponding positions set of first group of register; When receiving described trigger pip, with the corresponding positions set of second group of register; And when the value of determining described two groups of registers equates, drive indicating module the hard disk that operating system is installed is indicated.
4. device as claimed in claim 1 is characterized in that:
Acquisition module obtains the hard disk logical partition at current operation system place from operating system by application programming interfaces API.
5. device as claimed in claim 4 is characterized in that:
Acquisition module also obtains corresponding relation between hard disk logical partition number and the physical hard disk number by API from operating system, and after getting access to the hard disk logical partition at current operation system place, described hard disk logical partition corresponding physical hard disk information is sent to Baseboard Management Controller according to described corresponding relation.
6. device as claimed in claim 1 is characterized in that:
Acquisition module sends to Baseboard Management Controller by IPMI IPMI message with described corresponding physical hard disk information.
7. device as claimed in claim 1 is characterized in that, indicating module to the indicating mode of hard disk that operating system is installed is:
The LED lamp is lighted or hummer buzzing or LCD LCD demonstration.
CN200710064566A 2007-03-20 2007-03-20 Operating system hard disk recognition device Active CN101271420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710064566A CN101271420B (en) 2007-03-20 2007-03-20 Operating system hard disk recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710064566A CN101271420B (en) 2007-03-20 2007-03-20 Operating system hard disk recognition device

Publications (2)

Publication Number Publication Date
CN101271420A CN101271420A (en) 2008-09-24
CN101271420B true CN101271420B (en) 2010-05-19

Family

ID=40005407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710064566A Active CN101271420B (en) 2007-03-20 2007-03-20 Operating system hard disk recognition device

Country Status (1)

Country Link
CN (1) CN101271420B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250296B (en) * 2009-12-09 2020-02-21 联想(北京)有限公司 Computer and indication method of computer port
CN106033234A (en) * 2015-03-20 2016-10-19 联想(北京)有限公司 Information processing method and server
US10310745B2 (en) * 2017-05-19 2019-06-04 Samsung Electronics Co., Ltd. Method and apparatus for fine tuning and optimizing NVMe-oF SSDs
CN110532818A (en) * 2019-08-05 2019-12-03 杭州电子科技大学 A kind of hard disc enciphering system having GPIO, subregion and encryption method
CN113220546B (en) * 2021-05-14 2023-07-14 浪潮电子信息产业股份有限公司 Method, device, system and medium for identifying position of server operating system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1135618A (en) * 1995-02-17 1996-11-13 宏碁电脑股份有限公司 Method for automatically detecting kind of disk in computer system and apparatus thereof
CN1808366A (en) * 2005-01-21 2006-07-26 英业达股份有限公司 Hard disk re-recognition system and method in redundancy array of inexpensive disks
US7155615B1 (en) * 2000-06-30 2006-12-26 Intel Corporation Method and apparatus for providing a secure-private partition on a hard disk drive of a computer system via IDE controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1135618A (en) * 1995-02-17 1996-11-13 宏碁电脑股份有限公司 Method for automatically detecting kind of disk in computer system and apparatus thereof
US7155615B1 (en) * 2000-06-30 2006-12-26 Intel Corporation Method and apparatus for providing a secure-private partition on a hard disk drive of a computer system via IDE controller
CN1808366A (en) * 2005-01-21 2006-07-26 英业达股份有限公司 Hard disk re-recognition system and method in redundancy array of inexpensive disks

Also Published As

Publication number Publication date
CN101271420A (en) 2008-09-24

Similar Documents

Publication Publication Date Title
CN106648958B (en) Basic input output system replys management system and its method and program product
US7447822B2 (en) Hot-plug control system and method
US8996778B2 (en) Cable adapter correlation in a cluster
CN101271420B (en) Operating system hard disk recognition device
US20070027981A1 (en) Computer diagnostic system
US8397053B2 (en) Multi-motherboard server system
CN104484264A (en) Hard disk state indication method and hard disk state indication device
WO2017050061A1 (en) System, device and method for optical fiber distribution management
TW201109913A (en) Main system board error-detecting system and its pluggable error-detecting board
TW201222246A (en) Computer chassis system and hard disk status display method thereof
US20210329755A1 (en) Navigational dynamic lighting
US9779591B2 (en) Keyboard backlight event messaging system
US20140189168A1 (en) Hard disk drive module having indicating device
CN103747031A (en) LED display screen fault network monitor system
US20130179671A1 (en) Super i/o module and control method thereof
TWI659302B (en) Hdd monitoring system
CN102479140A (en) Computer system and hard disk state display method
CN102479126A (en) Startup debugging device and method thereof
CN110708489A (en) Communication method, communication device, electronic device and storage medium
CN101377753A (en) Accessory test device and method
CN104750627B (en) Fan identifying system and server
TWI689814B (en) Server hard disk indicator control system and control method
US10157157B2 (en) Component population optimization
CN110321263B (en) Hard disk monitoring system
CN111338911B (en) Server hard disk indicator lamp control system and control method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant