How to Distinguish a Physical Disk Device from an Event Message

https://support.microsoft.com/en-us/help/159865

https://support.microsoft.com/en-us/help/244780/information-about-event-id-51

This article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy.

Summary

Microsoft Windows may report event messages in the event log for various hard disk device issues using the following syntax:

The device, \Device\Harddisk#\Partition #

The following are examples of some common event log message entries:

  • The device, \Device\Harddisk0\Partition 1, has a bad block.
  • The device, \Device\HardDisk1\Partition0, has been reset.
  • System process lost delayed-write data.
  • System was attempting to transfer file data from buffers to \\device\harddisk4\partition2\mydir\myfile.txt
    The write operation failed.
  • An error occurred while attempting to recover data from the fault tolerance set containing \device\harddisk2\FT1

In each of the preceding examples you need to translate the hard disk number to a physical drive on the system. You can determine the hard disk number by looking in the registry, but you need to know if you are using IDE drives, SCSI drives or a combination of the two. Disk Administrator will display the drives in the order they are enumerated on each controller and in the order that the controller device drivers are loaded. If you are using multiple controllers, the order in which they are identified is based on I/O port and controller BIOS address assignments.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756How to back up and restore the registry in Windows

NOTE: Disk Management is enhanced in Windows 2000 and later operating systems. You can use Disk Management to view this information without using Registry Editor. To view where a particular hard disk is located in your system, use the following procedure:

  1. Start Disk Management console (diskmgmt.msc).
  2. View the graphical view of your disks. Right-click the gray portion of the basic or dynamic disk whose disk number matches the "Harddisk#" in the error message.
  3. Click Properties.The Properties will contain "Device Type" information that will tell you if the disk is IDE or SCSI, and it will also display the "Hardware Vendor" name of the physical device and the "Adapter Name" it is attached to.

For Windows NT, use Registry Editor to extract the required information as follows:

  1. Run Registry Editor (Regedt32.exe).
  2. Locate, and then click the following registry key (for IDE-based devices):

    HKEY_LOCAL_MACHINE\Hardware\Devicemap\Atdisk

          Controller0  look at the controller address and interrupt.         disk0  look at identifier string for manufacturer and model#         disk1  look at identifier string for manufacturer and model#      Controller1 look at the controller address and interrupt.         disk0  look at identifier string for manufacturer and model#         disk1  look at identifier string for manufacturer and model# 
  3. Locate, and then click the following registry key (For Atapi-compliant or SCSI devices):

    HKEY_LOCAL_MACHINE\Hardware\Devicemap\SCSI

          Scsiport0  look at driver, Interrupt, and IOAddress         Scisbus0            Targetid0            Logical Unit Id 0   look at identifier and type.            Targetid1            Logical Unit Id 0   look at identifier and type.            Targetid4            Logical Unit Id 0   look at identifier and type.         Scsibus1            Targetid0            Logical Unit Id 0   look at identifier and type.            Targetid1            Logical Unit Id 0   look at identifier and type.            Targetid2            Logical Unit Id 0         Scsiport1  look at driver, Interrupt and I/O Address.         Scsibus0            Targetid0            Logical Unit Id 0   look at identifier and type. 

NOTE: When the SCSI ID number is higher than 9, the registry lists the drives alphabetically, but the computer assigns physical IDs to the drives numerically.

Using the information gathered from the registry, you can determine which physical drive maps to a particular disk number in Disk Administrator.

  1. Using the "identifier" and "type" values, determine which entries are for DISKS and which are for other devices such as CD-ROMS, tapes, scanners, and so forth.
  2. Find each Type:REG_SZ:DiskPeripheral entry under the Targetid#\Logicalunitid0. Each one found equates to a drive in Disk Administrator and also to a \device\harddisk number.
  3. To find \device\harddisk5 find the 6th DiskPeripheral (zero through five).
  4. Make note of the SCSIPORT, SCSIBUS, and TARGETID# and use this to replace the defective device.

    SCSIPORT is a SCSI controller.
    SCSIBUS is a channel on the SCSI controller. Some controllers are dual channel and have SCSIBUS0 and SCSIBUS1.
    TARGETID is the SCSI ID the device that is configured to use usually 0 through 6, with the initiator ID 7 representing the controller itself.
  5. If you have doubts about which SCSIPORT represents which SCSI Controller look at the driver, I/O Address, and Interrupt of the SCSIPORT entry and match it with the hardware configuration set on the controller.
  6. For IDE Devices, the drives are in master/slave configuration order on each controller.
时间: 2024-12-21 00:53:15

How to Distinguish a Physical Disk Device from an Event Message的相关文章

RHCA442 UNIT 6 Compensating for Physical Disk Characteristics

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://alansky.blog.51cto.com/634963/654451 UNIT 6 Compensating for Physical Disk Characteristics 学习目标:     A. 了解影响磁盘IO的物理因素     B. 应用队列技术调整IO调度 6.1 Physical factors affect disk IO 影响磁盘IO的物理因素 A. 存储

QEMU KVM Libvirt手册(11): Managing Storage

When managing a VM Guest on the VM Host Server itself, it is possible to access the complete file system of the VM Host Server in order to attach or create virtual hard disks or to attach existing images to the VM Guest. However, this is not possible

Preparing Your Cluster

Oracle? Database 2 Day + Real Application Clusters Guide 11g Release 2 (11.2) E17264-13 2 Preparing Your Cluster About Shared Storage Note: If you choose not to use Oracle ASM for storing your Oracle Clusterware files, then both the voting disks and

KVM虚拟机存储管理

KVM的存储选项有多种,包括虚拟磁盘文件.基于文件系统的存储和基于设备的存储. 一.KVM的存储性能解析对比 1.虚拟磁盘文件 当系统创建KVM虚拟机的时候,默认使用虚拟磁盘文件作为后端存储.安装后,虚拟机认为在使用真实的磁盘,但实际上看到的是用于模拟硬盘的虚拟磁盘文件.这一额外的文件系统层会降低系统速度. 当然,基于磁盘镜像的虚拟磁盘并非全无益处,磁盘文件系统可以很轻松地用于其它的KVM虚拟化宿主机.但是如果您希望优化KVM虚拟化性能,最好考虑其它的存储方式. 2.基于文件系统的KVM存储 在

System and Device Programming------questions solved about device

(1) br------ 2 root root 0,21 Feb 12 15:40 /dev/dsk15crw-rw-- 2 root root 7,21 Mar 7 09:29 /dev/rdsk15because the two special files propably refer to same partition,sothey refer to to same device,they are just two files of samedevice,which stands for

Tagging Physical Resources in a Cloud Computing Environment

A cloud system may create physical resource tags to store relationships between cloud computing offerings, such as computing service offerings, storage offerings, and network offerings, and the specific physical resources in the cloud computing envir

Network Function Virtualization for a Network Device

An apparatus for performing network function virtualization (NFV), comprising: a memory, a processor coupled to the memory, wherein the memory includes instructions that when executed by the processor cause the apparatus to perform the following: rec

Human Interface Device (HID) Class Decoder

http://www.usblyzer.com/usb-human-interface-device-hid-class-decoder.htm   Human Interface Device (HID) Class Decoder Human Interface Device (HID) class is one of the most frequently used USB classes. The HID class consists primarily of devices that

Linux Block Device Management

This article talks about how the device number management works in Linux block subsystem. However, the idea applies to character device number management too. Note: I am referring to linux-3.17 source code. The purpose of introducing device number ma