When the OCR disk was initialized, a disk read and write error was reported.
Error Input/output error when reading and writing test for multipath device
DD If=/dev/zero OF=/DEV/MAPPER/VOT1 bs=1mcount=1000
Dd:writing '/dev//mapper/vot1 ': input/output error
1+0 Records in
0+0 Records out
The reason is on the multiple path configuration, the production looks multipath–ll
VOT1 (360080e50001fa2d0000003ba5313e77d) dm-6 lsi,inf-01-00
[size=1.0g] [Features=0] [Hwhandler=0] [RW]
\_ round-robin 0 [prio=1][enabled]
\_1:0:1:4 SDN 8:208 [Active][ready]
\_ round-robin 0 [prio=1][enabled]
\_3:0:1:4 Sdad 65:208 [Active][ready]
\_ round-robin 0 [prio=1][enabled]
\_1:0:0:4 SDG 8:96 [Active][ready]
\_ round-robin 0 [prio=1][enabled]
\_3:0:0:4 SDW 65:96 [Active][ready]
You can see all the paths are enable, no active. Four links are ready states, but there is no data flow, not an active state. This is normal.
OCR2 (360080e50001fa2d00000046a53154d41) dm-11 lsi,inf-01-00
[size=1.0g] [Features=0] [Hwhandler=0] [RW]
\_ round-robin 0 [prio=1][active]
\_1:0:0:2 SDE 8:64 [Active][ready]
\_ round-robin 0 [prio=1][enabled]
\_3:0:1:2 Sdab 65:176 [Active][ready]
\_ round-robin 0 [prio=1][enabled]
\_1:0:1:2 SDL 8:176 [Active][ready]
\_ round-robin 0 [prio=1][enabled]
\_3:0:0:2 SDU 65:64 [Active][ready]
This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/
The reason is that multipath does not recognize this device.
By default, Dm-multipath includes support for most general-purpose storage arrays that support Dm-multipath. Default configuration values refer to the Multipath.conf.defaults file, which includes supported devices. If you need to add a storage device that is not supported by default as a known multipath device, edit the/etc/multipath.conf file and insert the correct device information. For example, to add information about the HP Open-v series, the entries are as follows, where%n is the device name:
devices {
Device {
Vendor "HP"
Product "Open-v."
Getuid_callout "/lib/udev/scsi_id--whitelisted--device=/dev/%n"
}
}
All make sure to add devices
Author: csdn Blog Xu Changliang