Hello!
I have a problem with mulipath configuration.
I have active/passive array. I installed moltipath-tools and changed /etc/multipath.conf
# less /etc/multipath.conf
defaults {
user_friendly_names yes
prio alua
path_checker tur
no_path_retry 10
fast_io_fail_tmo 5
polling_interval 10
selector "round-robin 0"
path_grouping_policy multibus
rr_min_io 100
failback immediate
}
# multipath -ll
mpathb (0AvroRAIDDVAS 000000000000000097f62ae1) dm-0 AvroRAID,DVAS
size=683G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=5 status=active
|- 7:0:0:0 sdc 8:32 active ghost running
`- 9:0:0:0 sdd 8:48 active ready running
I can write to dm device
#dd if=/dev/zero of=/dev/dm-0 oflag=direct bs=1M &
#iostat -m
Linux 2.6.31.14-0.8-desktop (linux-prap) 06/28/2011 _x86_64_ (8 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
0.05 0.01 0.37 42.41 0.00 57.16
Device: tps MB_read/s MB_wrtn/s MB_read MB_wrtn
sda 2.13 0.05 0.00 274 27
scd0 0.00 0.00 0.00 0 0
sdc 0.08 0.00 0.00 1 0
sdd 673.77 0.11 1.79 632 10507
dm-0 673.70 0.11 1.79 629 10507
linux-prap:~ # sg_turs -v /dev/sdd
test unit ready cdb: 00 00 00 00 00 00
linux-prap:~ # sg_turs -v /dev/sdc
test unit ready cdb: 00 00 00 00 00 00
test unit ready: Fixed format, current; Sense key: Not Ready
Additional sense: Logical unit not accessible, target port in standby state
Info fld=0x0 [0]
device not ready
linux-prap:~ # sg_turs -v /dev/sdd
test unit ready cdb: 00 00 00 00 00 00
linux-prap:~ # sg_turs -v /dev/sdc
test unit ready cdb: 00 00 00 00 00 00
test unit ready: Fixed format, current; Sense key: Not Ready
Additional sense: Logical unit not accessible, target port in standby state
Info fld=0x0 [0]
device not ready
#sg_rtpg /dev/sdd
Report target port groups:
target port group id : 0x1 , Pref=1
target port group asymmetric access state : 0x00
T_SUP : 0, O_SUP : 0, U_SUP : 1, S_SUP : 1, AN_SUP : 0, AO_SUP : 1
status code : 0x02
vendor unique status : 0x00
target port count : 02
Relative target port ids:
0x01
0x02
#sg_rtpg /dev/sdc
Report target port groups:
target port group id : 0x2 , Pref=0
target port group asymmetric access state : 0x02
T_SUP : 0, O_SUP : 0, U_SUP : 1, S_SUP : 1, AN_SUP : 0, AO_SUP : 1
status code : 0x02
vendor unique status : 0x00
target port count : 04
Relative target port ids:
0x01
0x02
0x03
0x04
But after performing failover on storage. All write operations stop.
Both paths get status failed.
# multipath -ll
mpathb (0AvroRAIDDVAS 000000000000000097f62ae1) dm-0 AvroRAID,DVAS
size=683G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=5 status=enabled
|- 7:0:0:0 sdc 8:32 failed ready running
`- 9:0:0:0 sdd 8:48 failed ghost running
sg_turs and sg_rtpg works correctly
linux-prap:~ # sg_turs -v /dev/sdd
test unit ready cdb: 00 00 00 00 00 00
test unit ready: Fixed format, current; Sense key: Not Ready
Additional sense: Logical unit not accessible, target port in standby state
Info fld=0x0 [0]
device not ready
linux-prap:~ # sg_turs -v /dev/sdc
test unit ready cdb: 00 00 00 00 00 00
linux-prap:~ # sg_rtpg /dev/sdd
Report target port groups:
target port group id : 0x1 , Pref=0
target port group asymmetric access state : 0x02
T_SUP : 0, O_SUP : 0, U_SUP : 1, S_SUP : 1, AN_SUP : 0, AO_SUP : 1
status code : 0x02
vendor unique status : 0x00
target port count : 02
Relative target port ids:
0x01
0x02
linux-prap:~ # sg_rtpg /dev/sdc
Report target port groups:
target port group id : 0x2 , Pref=1
target port group asymmetric access state : 0x00
T_SUP : 0, O_SUP : 0, U_SUP : 1, S_SUP : 1, AN_SUP : 0, AO_SUP : 1
status code : 0x02
vendor unique status : 0x00
target port count : 04
Relative target port ids:
0x01
0x02
0x03
0x04
After perfoming failover again all operations continue
Can anybody help me?