Skip to contentSkip to conversation

Mirror fail/recover test

linux-lvm jose nuno neto 5 participants 16 messages Feb 24, 2010 – Apr 19, 2010

lore
Share & tools
lore
#0 lore raw

Hi

I'm trying to test the failure of a SAN Mirrored Lv, and the recover and check for data lost.

Im runing RedHat 5.4
2.6.18-164.2.1.el5
lvm2-2.02.46-8.el5_4.1

I create a 2mirror+log lv ok, can lvconvert to one leg only, can delete ok. But when I simulate a disk fail either with
dd if=/dev/zero of=pvmirror_device
echo offline > /sys/block/pvmirror_device/device/status

lvs -a -o +devices
stills shows the lv has mirrored ( should switch to non-mirrored right?) , and show Unknonwn device on the pvmirror_device I destroy

When I issue a lvconvert -m 0 complains about pv --uuid not found, if I try to pvcreate --uuid pvmirror_device I got a error complaining about still mounted device
If I try lvconvert --repair i hangs forever

What should be the correct procedure to recover from this?

Thanks
Jose

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#1 lore raw
Quoted 5 lines · jose nuno neto [[email protected]] wrote:

Hi

I'm trying to test the failure of a SAN Mirrored Lv, and the recover and check for data lost.

Quoted 8 lines

Im runing RedHat 5.4
2.6.18-164.2.1.el5
lvm2-2.02.46-8.el5_4.1

I create a 2mirror+log lv ok, can lvconvert to one leg only, can delete ok. But when I simulate a disk fail either with
dd if=/dev/zero of=pvmirror_device
echo offline > /sys/block/pvmirror_device/device/status

What is the output of "dmsetup status" at this point?
There must be some messages in the /var/log/messages file if you enable them.

Quoted 2 lines

lvs -a -o +devices
stills shows the lv has mirrored ( should switch to non-mirrored right?) ,

Yes, provided you successfully started the dmeventd monitoring thread and it handled the failure event.

Thanks, Malahal.

#2 lore raw

Much thanks for your interest
im putting more info below

Quoted 16 lines
Quoted 9 lines · jose nuno neto [[email protected]] wrote:

Hi

I'm trying to test the failure of a SAN Mirrored Lv, and the recover and check for data lost.

Im runing RedHat 5.4
2.6.18-164.2.1.el5
lvm2-2.02.46-8.el5_4.1

Quoted 5 lines

I create a 2mirror+log lv ok, can lvconvert to one leg only, can delete ok.
But when I simulate a disk fail either with
dd if=/dev/zero of=pvmirror_device
echo offline > /sys/block/pvmirror_device/device/status

Quoted 3 lines

What is the output of "dmsetup status" at this point?
There must be some messages in the /var/log/messages file if you enable them.

This is my setup for the device Im unppluging

multipath -l -v2 | grep -A 7 3600a0b800048f9b200000c2b4b5980b7 mpath12 (3600a0b800048f9b200000c2b4b5980b7) dm-8 SUN,CSM200_R [size=52G][features=1 queue_if_no_path][hwhandler=1 rdac][rw] \_ round-robin 0 [prio=0][enabled]

 \_ 7:0:1:1  sdo  8:224  [active][undef]
 \_ 9:0:1:1  sdq  65:0   [active][undef]
\_ round-robin 0 [prio=0][enabled]
 \_ 7:0:0:1  sdd  8:48   [active][undef]
 \_ 9:0:0:1  sdf  8:80   [active][undef]

Before UnPluging
dmsetup status mpath12
0 109051904 multipath 2 0 0 0 2 1 E 0 2 0 8:224 A 0 65:0 A 0 E 0 2 0 8:48 A 0 8:80 A 0

echo offline > /sys/block/sdd/device/state
echo offline > /sys/block/sdo/device/state
echo offline > /sys/block/sdq/device/state
echo offline > /sys/block/sdf/device/state

dmsetup status mpath12
0 109051904 multipath 2 0 0 0 2 1 E 0 2 0 8:224 F 1 65:0 F 1 E 0 2 0 8:48 F 1 8:80 F 1

Feb 25 11:10:32 malta9 multipathd: sdd: rdac checker reports path is down
Feb 25 11:10:32 malta9 multipathd: sdd: rdac checker reports path is down
Feb 25 11:10:32 malta9 multipathd: sdo: rdac checker reports path is down
Feb 25 11:10:32 malta9 multipathd: sdo: rdac checker reports path is down
Feb 25 11:10:32 malta9 multipathd: sdq: rdac checker reports path is down
Feb 25 11:10:32 malta9 multipathd: sdq: rdac checker reports path is down
Feb 25 11:10:32 malta9 multipathd: dm-8: devmap already registered
Feb 25 11:10:32 malta9 multipathd: dm-8: devmap already registered
Feb 25 11:10:52 malta9 multipathd: sdf: rdac checker reports path is down
Feb 25 11:10:52 malta9 multipathd: sdf: rdac checker reports path is down
Feb 25 11:10:52 malta9 multipathd: dm-8: devmap already registered
Feb 25 11:10:52 malta9 multipathd: dm-8: devmap already registered

dmeventd is running
root 4601 0.0 0.1 96272 69668 ? S<Lsl Feb24 0:00 [dmeventd]

Also I have lvm.conf option
ignore_suspended_devices = 1
that should prevent this right?

Quoted 16 lines
Quoted 4 lines

lvs -a -o +devices
stills shows the lv has mirrored ( should switch to non-mirrored right?) ,

Yes, provided you successfully started the dmeventd monitoring thread and it handled the failure event.

Thanks, Malahal.

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 5 lines

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

lvm.conf

devices {
dir = "/dev"
scan = [ "/dev" ]
preferred_names = [ ]
filter = [ "r/disk/", "r/sd.*/", "a/.*/" ]
cache_dir = "/etc/lvm/cache"
cache_file_prefix = ""
write_cache_state = 1
sysfs_scan = 1
md_component_detection = 1
md_chunk_alignment = 1
data_alignment = 0
ignore_suspended_devices = 1
}
log {
verbose = 1
syslog = 1
file = "/var/log/lvm2.log"
overwrite = 0
level = 0
indent = 1
command_names = 1
prefix = " "
}
backup {
backup = 1
backup_dir = "/etc/lvm/backup"
archive = 1
archive_dir = "/etc/lvm/archive"
retain_min = 10
retain_days = 30
}

shell {
    history_size = 100
}

global {
library_dir = "/usr/lib64"
umask = 077
test = 0
units = "h"
activation = 1
proc = "/proc"
locking_type = 1
fallback_to_clustered_locking = 1 fallback_to_local_locking = 1
locking_dir = "/var/lock/lvm"
}
activation {
missing_stripe_filler = "error"
reserved_stack = 256
reserved_memory = 8192
process_priority = -18
volume_list = [ "rootvg" , "@cluster.test" ] mirror_region_size = 512
readahead = "auto"
mirror_log_fault_policy = "allocate" mirror_device_fault_policy = "remove"
}
dmeventd {
mirror_library = "libdevmapper-event-lvm2mirror.so" snapshot_library = "libdevmapper-event-lvm2snapshot.so"
}

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#3 lore raw
Quoted 28 lines · jose nuno neto [[email protected]] wrote:

Much thanks for your interest
im putting more info below

Quoted 9 lines
Quoted 8 lines · jose nuno neto [[email protected]] wrote:

Hi

I'm trying to test the failure of a SAN Mirrored Lv, and the recover and check for data lost.

Im runing RedHat 5.4
2.6.18-164.2.1.el5
lvm2-2.02.46-8.el5_4.1

multipath -l -v2 | grep -A 7 3600a0b800048f9b200000c2b4b5980b7 mpath12 (3600a0b800048f9b200000c2b4b5980b7) dm-8 SUN,CSM200_R [size=52G][features=1 queue_if_no_path][hwhandler=1 rdac][rw] \_ round-robin 0 [prio=0][enabled]

 \_ 7:0:1:1  sdo  8:224  [active][undef]
 \_ 9:0:1:1  sdq  65:0   [active][undef]
\_ round-robin 0 [prio=0][enabled]
 \_ 7:0:0:1  sdd  8:48   [active][undef]
 \_ 9:0:0:1  sdf  8:80   [active][undef]

Before UnPluging
dmsetup status mpath12
0 109051904 multipath 2 0 0 0 2 1 E 0 2 0 8:224 A 0 65:0 A 0 E 0 2 0 8:48 A 0 8:80 A 0

Quoted 8 lines

echo offline > /sys/block/sdd/device/state
echo offline > /sys/block/sdo/device/state
echo offline > /sys/block/sdq/device/state
echo offline > /sys/block/sdf/device/state

dmsetup status mpath12
0 109051904 multipath 2 0 0 0 2 1 E 0 2 0 8:224 F 1 65:0 F 1 E 0 2 0 8:48 F 1 8:80 F 1

I was actually asking for "dmsetup status <mirror-device>" rather than multipath device. I didn't know that you were using multipath devices!!!

Anyway, looks like you have mpath12 that probably queues I/O on path failures rather than failing them back to upper layers. In other words, if you were to run "dd" or any other app to mpath12, it would hang too.

mpath12 seems to keep the request and forever wait for the paths to become available again in your case. If you really want it to fail, configure your multipath accordingly.

Thanks, Malahal.
PS: "features=1 queue_if_no_path" in your 'multipath -ll' output is the source of error here...

#4 lore raw

Re: [linux-lvm] Mirror fail/recover test SOLVED

Hi
Much thanks for your insights, you're right
multipath was keep the I/O on queue and lvm didn't fail the mirror

I had to create a device section on multipath.conf so that the features=0 would be on used by multipath
Best Regards
Jose

Quoted 67 lines
Quoted 35 lines · jose nuno neto [[email protected]] wrote:

Much thanks for your interest
im putting more info below

Quoted 4 lines
Quoted 3 lines · jose nuno neto [[email protected]] wrote:

Hi

I'm trying to test the failure of a SAN Mirrored Lv, and the recover

and

Quoted 5 lines
Quoted 5 lines

check for data lost.

Im runing RedHat 5.4
2.6.18-164.2.1.el5
lvm2-2.02.46-8.el5_4.1

multipath -l -v2 | grep -A 7 3600a0b800048f9b200000c2b4b5980b7 mpath12 (3600a0b800048f9b200000c2b4b5980b7) dm-8 SUN,CSM200_R [size=52G][features=1 queue_if_no_path][hwhandler=1 rdac][rw] \_ round-robin 0 [prio=0][enabled]

 \_ 7:0:1:1  sdo  8:224  [active][undef]
 \_ 9:0:1:1  sdq  65:0   [active][undef]
\_ round-robin 0 [prio=0][enabled]
 \_ 7:0:0:1  sdd  8:48   [active][undef]
 \_ 9:0:0:1  sdf  8:80   [active][undef]

Before UnPluging
dmsetup status mpath12
0 109051904 multipath 2 0 0 0 2 1 E 0 2 0 8:224 A 0 65:0 A 0 E 0 2 0 8:48
A 0 8:80 A 0

echo offline > /sys/block/sdd/device/state
echo offline > /sys/block/sdo/device/state
echo offline > /sys/block/sdq/device/state
echo offline > /sys/block/sdf/device/state

Quoted 4 lines

dmsetup status mpath12
0 109051904 multipath 2 0 0 0 2 1 E 0 2 0 8:224 F 1 65:0 F 1 E 0 2 0 8:48
F 1 8:80 F 1

I was actually asking for "dmsetup status <mirror-device>" rather than multipath device. I didn't know that you were using multipath devices!!!

Anyway, looks like you have mpath12 that probably queues I/O on path failures rather than failing them back to upper layers. In other words, if you were to run "dd" or any other app to mpath12, it would hang too.

mpath12 seems to keep the request and forever wait for the paths to become available again in your case. If you really want it to fail, configure your multipath accordingly.

Thanks, Malahal.
PS: "features=1 queue_if_no_path" in your 'multipath -ll' output is the source of error here...

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#5 lore raw

[linux-lvm] Lvm hangs on San fail

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty "devices"

Any ideas how I should "fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices in

vg_syb_roger-lv_syb_roger_admin

Much Thanks
Jose

#6 lore raw

Re: [linux-lvm] Lvm hangs on San fail

What is your multipath.conf setting of "queue_if_no_path?

Quoted 49 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty "devices"

Any ideas how I should "fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices in

vg_syb_roger-lv_syb_roger_admin

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Signature · 5 lines
Sent from my mobile device

Regards,
Eugene Vilensky
[email protected]
#7 lore raw

Re: [linux-lvm] Lvm hangs on San fail

In reply to jose nuno neto

post your multipath.conf file, you may be queuing forever ?

Quoted 48 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty "devices"

Any ideas how I should "fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices in

vg_syb_roger-lv_syb_roger_admin

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#8 lore raw

Re: [linux-lvm] Lvm hangs on San fail

GoodMornings

This is what I have on multipath.conf

blacklist {
        wwid SSun_VOL0_266DCF4A
        wwid SSun_VOL0_5875CF4A
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
}
defaults {
                user_friendly_names             yes
}
devices {
       device {
                vendor                          "HITACHI"
                product                         "OPEN-V"
                path_grouping_policy            group_by_node_name
                failback                        immediate
                no_path_retry                   fail
       }
       device {
                vendor                          "IET"
                product                         "VIRTUAL-DISK"
                path_checker                    tur
                path_grouping_policy            failover
                failback                        immediate
                no_path_retry                   fail
       }
}

As an example this is one LUN. It shoes [features=0] so I'd say it should fail right way

mpath-dc2-a (360060e8004f240000000f24000000502) dm-15 HITACHI,OPEN-V -SU
[size=26G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=4][active]
\_ 5:0:1:0 sdu 65:64 [active][ready]
\_ 5:0:1:16384 sdac 65:192 [active][ready]
\_ 5:0:1:32768 sdas 66:192 [active][ready]
\_ 5:0:1:49152 sdba 67:64 [active][ready]
\_ round-robin 0 [prio=4][enabled]
\_ 3:0:1:0 sdaw 67:0 [active][ready]
\_ 3:0:1:16384 sdbe 67:128 [active][ready]
\_ 3:0:1:32768 sdbi 67:192 [active][ready]
\_ 3:0:1:49152 sdbm 68:0 [active][ready]

It think they fail since I see this messages from LVM:

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices in

vg_syb_roger-lv_syb_roger_admin

But from some reason LVM cant remove them, any option I should have on lvm.conf?

BestRegards
Jose

Quoted 64 lines

post your multipath.conf file, you may be queuing forever ?

Quoted 43 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete
I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty
"devices"

Any ideas how I should "fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices

in
vg_syb_roger-lv_syb_roger_admin

Quoted 8 lines

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#9 lore raw

Re: [linux-lvm] Lvm hangs on San fail

Can you post the output of pvdisplay?

Also the output of multipath when the port is down?

If your multipath output is still showing all paths [active][ready] when you shut a port down, you might need to change the path_checker option. I don't have a Hitachi array but readsector0 (the default) did not work for me, directio does. This could be LVM seeing IO is timing out, but the multipath stuff isn't downing a dead path.

Quoted 129 lines · jose nuno neto

GoodMornings

This is what I have on multipath.conf

blacklist {
� � � �wwid SSun_VOL0_266DCF4A
� � � �wwid SSun_VOL0_5875CF4A
� � � �devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*" � � � �devnode "^hd[a-z]"
}
defaults {
� � � � � � � �user_friendly_names � � � � � � yes
}
devices {
� � � device {
� � � � � � � �vendor � � � � � � � � � � � � �"HITACHI" � � � � � � � �product � � � � � � � � � � � � "OPEN-V" � � � � � � � �path_grouping_policy � � � � � �group_by_node_name � � � � � � � �failback � � � � � � � � � � � �immediate � � � � � � � �no_path_retry � � � � � � � � � fail
� � � }
� � � device {
� � � � � � � �vendor � � � � � � � � � � � � �"IET"
� � � � � � � �product � � � � � � � � � � � � "VIRTUAL-DISK" � � � � � � � �path_checker � � � � � � � � � �tur
� � � � � � � �path_grouping_policy � � � � � �failover � � � � � � � �failback � � � � � � � � � � � �immediate � � � � � � � �no_path_retry � � � � � � � � � fail
� � � }
}

As an example this is one LUN. It shoes [features=0] so I'd say it should fail right way

mpath-dc2-a (360060e8004f240000000f24000000502) dm-15 HITACHI,OPEN-V � � �-SU [size=26G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=4][active]
�\_ 5:0:1:0 � � sdu �65:64 �[active][ready]
�\_ 5:0:1:16384 sdac 65:192 [active][ready]
�\_ 5:0:1:32768 sdas 66:192 [active][ready]
�\_ 5:0:1:49152 sdba 67:64 �[active][ready]
\_ round-robin 0 [prio=4][enabled]
�\_ 3:0:1:0 � � sdaw 67:0 � [active][ready]
�\_ 3:0:1:16384 sdbe 67:128 [active][ready]
�\_ 3:0:1:32768 sdbi 67:192 [active][ready]
�\_ 3:0:1:49152 sdbm 68:0 � [active][ready]

It think they fail since I see this messages from LVM:

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices in

vg_syb_roger-lv_syb_roger_admin

But from some reason LVM cant remove them, any option I should have on lvm.conf?

BestRegards
Jose

Quoted 58 lines

post your multipath.conf file, you may be queuing forever ?

Quoted 43 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete
I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty
"devices"

Any ideas how I should �"fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. �Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices

in
vg_syb_roger-lv_syb_roger_admin

Quoted 8 lines

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#10 lore raw

Re: [linux-lvm] Lvm hangs on San fail

In reply to jose nuno neto

hellos

I spent more time on this and it seems since LVM cant write to any pv on the volumes it has lost, it cannot write the failure of the devices and update the metadata on other PVs. So it hangs forever

Is this right?

Quoted 126 lines

GoodMornings

This is what I have on multipath.conf

blacklist {
        wwid SSun_VOL0_266DCF4A
        wwid SSun_VOL0_5875CF4A
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
}
defaults {
                user_friendly_names             yes
}
devices {
       device {
                vendor                          "HITACHI"
                product                         "OPEN-V"
                path_grouping_policy            group_by_node_name
                failback                        immediate
                no_path_retry                   fail
       }
       device {
                vendor                          "IET"
                product                         "VIRTUAL-DISK"
                path_checker                    tur
                path_grouping_policy            failover
                failback                        immediate
                no_path_retry                   fail
       }
}

As an example this is one LUN. It shoes [features=0] so I'd say it should fail right way

mpath-dc2-a (360060e8004f240000000f24000000502) dm-15 HITACHI,OPEN-V -SU
[size=26G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=4][active]
\_ 5:0:1:0 sdu 65:64 [active][ready]
\_ 5:0:1:16384 sdac 65:192 [active][ready]
\_ 5:0:1:32768 sdas 66:192 [active][ready]
\_ 5:0:1:49152 sdba 67:64 [active][ready]
\_ round-robin 0 [prio=4][enabled]
\_ 3:0:1:0 sdaw 67:0 [active][ready]
\_ 3:0:1:16384 sdbe 67:128 [active][ready]
\_ 3:0:1:32768 sdbi 67:192 [active][ready]
\_ 3:0:1:49152 sdbm 68:0 [active][ready]

It think they fail since I see this messages from LVM:

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices in

vg_syb_roger-lv_syb_roger_admin

But from some reason LVM cant remove them, any option I should have on lvm.conf?

BestRegards
Jose

Quoted 65 lines

post your multipath.conf file, you may be queuing forever ?

Quoted 44 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete
I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path
down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty
"devices"

Any ideas how I should "fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices

in
vg_syb_roger-lv_syb_roger_admin

Quoted 8 lines

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#11 lore raw

Re: [linux-lvm] Lvm hangs on San fail

Can you show us a pvdisplay or verbose vgdisplay ?

Quoted 141 lines · jose nuno neto

hellos

I spent more time on this and it seems since LVM cant write to any pv on the volumes it has lost, it cannot write the failure of the devices and update the metadata on other PVs. So it hangs forever

Is this right?

Quoted 52 lines

GoodMornings

This is what I have on multipath.conf

blacklist {
        wwid SSun_VOL0_266DCF4A
        wwid SSun_VOL0_5875CF4A
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
}
defaults {
                user_friendly_names             yes
}
devices {
       device {
                vendor                          "HITACHI"
                product                         "OPEN-V"
                path_grouping_policy            group_by_node_name
                failback                        immediate
                no_path_retry                   fail
       }
       device {
                vendor                          "IET"
                product                         "VIRTUAL-DISK"
                path_checker                    tur
                path_grouping_policy            failover
                failback                        immediate
                no_path_retry                   fail
       }
}

As an example this is one LUN. It shoes [features=0] so I'd say it should fail right way

mpath-dc2-a (360060e8004f240000000f24000000502) dm-15 HITACHI,OPEN-V -SU
[size=26G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=4][active]
\_ 5:0:1:0 sdu 65:64 [active][ready]
\_ 5:0:1:16384 sdac 65:192 [active][ready]
\_ 5:0:1:32768 sdas 66:192 [active][ready]
\_ 5:0:1:49152 sdba 67:64 [active][ready]
\_ round-robin 0 [prio=4][enabled]
\_ 3:0:1:0 sdaw 67:0 [active][ready]
\_ 3:0:1:16384 sdbe 67:128 [active][ready]
\_ 3:0:1:32768 sdbi 67:192 [active][ready]
\_ 3:0:1:49152 sdbm 68:0 [active][ready]

It think they fail since I see this messages from LVM:

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices in
Quoted 74 lines

vg_syb_roger-lv_syb_roger_admin

But from some reason LVM cant remove them, any option I should have on lvm.conf?

BestRegards
Jose

Quoted 65 lines

post your multipath.conf file, you may be queuing forever ?

Quoted 44 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete
I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path
down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty
"devices"

Any ideas how I should "fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices

in
vg_syb_roger-lv_syb_roger_admin

Quoted 8 lines

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Signature · 5 lines
Sent from my mobile device

Regards,
Eugene Vilensky
[email protected]
#12 lore raw

Re: [linux-lvm] Lvm hangs on San fail

Hi

Quoted 2 lines

Can you show us a pvdisplay or verbose vgdisplay ?

Here goes the vgdisplay -v of one of the vgs with mirrors

###########################################################

--- Volume group ---
VG Name vg_ora_jura
System ID

  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  705
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               4
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               52.79 GB
  PE Size               4.00 MB
  Total PE              13515
  Alloc PE / Size       12292 / 48.02 GB
  Free  PE / Size       1223 / 4.78 GB
  VG UUID               nttQ3x-4ecP-Q6ms-jt2u-UIs4-texj-Q9Nxdt

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch
  VG Name                vg_ora_jura
  LV UUID                8oUfYn-2TrP-yS6K-pcS2-cgI4-tcv1-33dSdX
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:28

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export
  VG Name                vg_ora_jura
  LV UUID                NLfQT6-36TS-DRHq-PJRf-9UDv-L8mz-HjPea2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:32

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data
  VG Name                vg_ora_jura
  LV UUID                VtSBIL-XvCw-23xK-NVAH-DvYn-P2sE-OkZJro
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                12.00 GB
  Current LE             3072
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:40

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo
  VG Name                vg_ora_jura
  LV UUID                KRHKBG-71Qv-YBsA-oJDt-igzP-EYaI-gPwcBX
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:48

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch_mimage_0
  VG Name                vg_ora_jura
  LV UUID                lQCOAt-aoK3-HBp1-xrQW-eh7L-6t94-CyAg5c
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:26

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch_mimage_1
  VG Name                vg_ora_jura
  LV UUID                snrnPc-8FxY-ekAk-ooNe-sBws-tuI0-cTFfj3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:27

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch_mlog
  VG Name                vg_ora_jura
  LV UUID                ouqaCQ-Deex-iArv-xLe9-jg8b-5cLf-3SChQ1
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:25

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data_mlog
  VG Name                vg_ora_jura
  LV UUID                TmE2S0-r8ST-v624-RxUn-Qppw-2l8p-jM9EC9
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:37

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data_mimage_0
  VG Name                vg_ora_jura
  LV UUID                8hR0bP-g9mR-OSXS-KdUM-ouZ6-KVdS-sfz51c
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                12.00 GB
  Current LE             3072
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:38

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data_mimage_1
  VG Name                vg_ora_jura
  LV UUID                fzdzrD-7p6d-XFkA-UHyr-CPad-F2nV-6QIU9p
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                12.00 GB
  Current LE             3072
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:39

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export_mlog
  VG Name                vg_ora_jura
  LV UUID                29yLY8-N3Lv-46pN-1jze-50A2-wlhu-quuoMa
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:29

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export_mimage_0
  VG Name                vg_ora_jura
  LV UUID                1uMTsf-wPaQ-ItTy-rpma-m2La-TGZl-C4KIU4
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:30

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export_mimage_1
  VG Name                vg_ora_jura
  LV UUID                cm8Kn7-knL3-mUPL-XFvU-geMm-Wxff-32x2va
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:31

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo_mlog
  VG Name                vg_ora_jura
  LV UUID                811tNy-eaC5-zfZQ-1QVf-cbYP-1MIM-v6waJF
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:45

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo_mimage_0
  VG Name                vg_ora_jura
  LV UUID                aUZAer-f5rl-1f2X-9jgY-f8CJ-jdwe-F5Pmao
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:46

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo_mimage_1
  VG Name                vg_ora_jura
  LV UUID                gAEJym-sSbq-rC4P-AjpI-OibV-k3yI-lDx1I6
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:47

--- Physical volumes ---

  PV Name               /dev/mapper/mpath-dc1-b
  PV UUID               hgjXU1-2qjo-RsmS-1XJI-d0kZ-oc4A-ZKCza8
  PV Status             allocatable
  Total PE / Free PE    6749 / 605
  PV Name               /dev/mapper/mpath-dc2-b
  PV UUID               hcANwN-aeJT-PIAq-bPsf-9d3e-ylkS-GDjAGR
  PV Status             allocatable
  Total PE / Free PE    6749 / 605
  PV Name               /dev/mapper/mpath-dc2-mlog1p1
  PV UUID               4l9Qvo-SaAV-Ojlk-D1YB-Tkud-Yjg0-e5RkgJ
  PV Status             allocatable
  Total PE / Free PE    17 / 13
Quoted 160 lines · jose nuno neto
Quoted 139 lines

hellos

I spent more time on this and it seems since LVM cant write to any pv on the volumes it has lost, it cannot write the failure of the devices and update the metadata on other PVs. So it hangs forever

Is this right?

Quoted 53 lines

GoodMornings

This is what I have on multipath.conf

blacklist {
        wwid SSun_VOL0_266DCF4A
        wwid SSun_VOL0_5875CF4A
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
}
defaults {
                user_friendly_names             yes
}
devices {
       device {
                vendor                          "HITACHI"
                product                         "OPEN-V"
                path_grouping_policy            group_by_node_name
                failback                        immediate
                no_path_retry                   fail
       }
       device {
                vendor                          "IET"
                product                         "VIRTUAL-DISK"
                path_checker                    tur
                path_grouping_policy            failover
                failback                        immediate
                no_path_retry                   fail
       }
}

As an example this is one LUN. It shoes [features=0] so I'd say it should
fail right way

mpath-dc2-a (360060e8004f240000000f24000000502) dm-15 HITACHI,OPEN-V -SU
[size=26G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=4][active]
\_ 5:0:1:0 sdu 65:64 [active][ready]
\_ 5:0:1:16384 sdac 65:192 [active][ready]
\_ 5:0:1:32768 sdas 66:192 [active][ready]
\_ 5:0:1:49152 sdba 67:64 [active][ready]
\_ round-robin 0 [prio=4][enabled]
\_ 3:0:1:0 sdaw 67:0 [active][ready]
\_ 3:0:1:16384 sdbe 67:128 [active][ready]
\_ 3:0:1:32768 sdbi 67:192 [active][ready]
\_ 3:0:1:49152 sdbm 68:0 [active][ready]

It think they fail since I see this messages from LVM:

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices
Quoted 77 lines

in
vg_syb_roger-lv_syb_roger_admin

But from some reason LVM cant remove them, any option I should have on lvm.conf?

BestRegards
Jose

Quoted 67 lines

post your multipath.conf file, you may be queuing forever ?

Quoted 46 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete
I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path
down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty
"devices"

Any ideas how I should "fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has
failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty

devices
in
vg_syb_roger-lv_syb_roger_admin

Quoted 8 lines

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

--
Sent from my mobile device

Regards,
Eugene Vilensky
[email protected]

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#13 lore raw

Re: [linux-lvm] Lvm hangs on San fail

Can you post the output of multipath when the port is down?

Quoted 456 lines · jose nuno neto

Hi

Quoted 2 lines

Can you show us a pvdisplay or verbose vgdisplay ?

Here goes the vgdisplay -v of one of the vgs with mirrors

###########################################################

--- Volume group ---
�VG Name � � � � � � � vg_ora_jura
�System ID
�Format � � � � � � � �lvm2
�Metadata Areas � � � �3
�Metadata Sequence No �705
�VG Access � � � � � � read/write
�VG Status � � � � � � resizable
�MAX LV � � � � � � � �0
�Cur LV � � � � � � � �4
�Open LV � � � � � � � 4
�Max PV � � � � � � � �0
�Cur PV � � � � � � � �3
�Act PV � � � � � � � �3
�VG Size � � � � � � � 52.79 GB
�PE Size � � � � � � � 4.00 MB
�Total PE � � � � � � �13515
�Alloc PE / Size � � � 12292 / 48.02 GB
�Free �PE / Size � � � 1223 / 4.78 GB
�VG UUID � � � � � � � nttQ3x-4ecP-Q6ms-jt2u-UIs4-texj-Q9Nxdt

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_arch �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �8oUfYn-2TrP-yS6K-pcS2-cgI4-tcv1-33dSdX �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �5.00 GB
�Current LE � � � � � � 1280
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:28

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_export �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �NLfQT6-36TS-DRHq-PJRf-9UDv-L8mz-HjPea2 �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �5.00 GB
�Current LE � � � � � � 1280
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:32

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_data �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �VtSBIL-XvCw-23xK-NVAH-DvYn-P2sE-OkZJro �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �12.00 GB
�Current LE � � � � � � 3072
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:40

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_redo �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �KRHKBG-71Qv-YBsA-oJDt-igzP-EYaI-gPwcBX �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �2.00 GB
�Current LE � � � � � � 512
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:48

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_arch_mimage_0 �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �lQCOAt-aoK3-HBp1-xrQW-eh7L-6t94-CyAg5c �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �5.00 GB
�Current LE � � � � � � 1280
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:26

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_arch_mimage_1 �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �snrnPc-8FxY-ekAk-ooNe-sBws-tuI0-cTFfj3 �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �5.00 GB
�Current LE � � � � � � 1280
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:27

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_arch_mlog �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �ouqaCQ-Deex-iArv-xLe9-jg8b-5cLf-3SChQ1 �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �4.00 MB
�Current LE � � � � � � 1
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:25

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_data_mlog �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �TmE2S0-r8ST-v624-RxUn-Qppw-2l8p-jM9EC9 �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �4.00 MB
�Current LE � � � � � � 1
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:37

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_data_mimage_0 �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �8hR0bP-g9mR-OSXS-KdUM-ouZ6-KVdS-sfz51c �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �12.00 GB
�Current LE � � � � � � 3072
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:38

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_data_mimage_1 �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �fzdzrD-7p6d-XFkA-UHyr-CPad-F2nV-6QIU9p �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �12.00 GB
�Current LE � � � � � � 3072
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:39

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_export_mlog �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �29yLY8-N3Lv-46pN-1jze-50A2-wlhu-quuoMa �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �4.00 MB
�Current LE � � � � � � 1
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:29

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_export_mimage_0 �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �1uMTsf-wPaQ-ItTy-rpma-m2La-TGZl-C4KIU4 �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �5.00 GB
�Current LE � � � � � � 1280
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:30

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_export_mimage_1 �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �cm8Kn7-knL3-mUPL-XFvU-geMm-Wxff-32x2va �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �5.00 GB
�Current LE � � � � � � 1280
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:31

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_redo_mlog �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �811tNy-eaC5-zfZQ-1QVf-cbYP-1MIM-v6waJF �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �4.00 MB
�Current LE � � � � � � 1
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:45

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_redo_mimage_0 �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �aUZAer-f5rl-1f2X-9jgY-f8CJ-jdwe-F5Pmao �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �2.00 GB
�Current LE � � � � � � 512
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:46

�--- Logical volume ---
�LV Name � � � � � � � �/dev/vg_ora_jura/lv_ora_jura_redo_mimage_1 �VG Name � � � � � � � �vg_ora_jura
�LV UUID � � � � � � � �gAEJym-sSbq-rC4P-AjpI-OibV-k3yI-lDx1I6 �LV Write Access � � � �read/write
�LV Status � � � � � � �available
�# open � � � � � � � � 1
�LV Size � � � � � � � �2.00 GB
�Current LE � � � � � � 512
�Segments � � � � � � � 1
�Allocation � � � � � � inherit
�Read ahead sectors � � auto
�- currently set to � � 256
�Block device � � � � � 253:47

�--- Physical volumes ---
�PV Name � � � � � � � /dev/mapper/mpath-dc1-b
�PV UUID � � � � � � � hgjXU1-2qjo-RsmS-1XJI-d0kZ-oc4A-ZKCza8 �PV Status � � � � � � allocatable
�Total PE / Free PE � �6749 / 605

�PV Name � � � � � � � /dev/mapper/mpath-dc2-b
�PV UUID � � � � � � � hcANwN-aeJT-PIAq-bPsf-9d3e-ylkS-GDjAGR �PV Status � � � � � � allocatable
�Total PE / Free PE � �6749 / 605

�PV Name � � � � � � � /dev/mapper/mpath-dc2-mlog1p1 �PV UUID � � � � � � � 4l9Qvo-SaAV-Ojlk-D1YB-Tkud-Yjg0-e5RkgJ �PV Status � � � � � � allocatable
�Total PE / Free PE � �17 / 13

Quoted 154 lines · jose nuno neto
Quoted 139 lines

hellos

I spent more time on this and it seems since LVM cant write to any pv on the �volumes it has lost, it cannot write the failure of the devices and update the metadata on other PVs. So it hangs forever

Is this right?

Quoted 53 lines

GoodMornings

This is what I have on multipath.conf

blacklist {
� � � � wwid SSun_VOL0_266DCF4A
� � � � wwid SSun_VOL0_5875CF4A
� � � � devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*" � � � � devnode "^hd[a-z]"
}
defaults {
� � � � � � � � user_friendly_names � � � � � � yes
}
devices {
� � � �device {
� � � � � � � � vendor � � � � � � � � � � � � �"HITACHI" � � � � � � � � product � � � � � � � � � � � � "OPEN-V" � � � � � � � � path_grouping_policy � � � � � �group_by_node_name � � � � � � � � failback � � � � � � � � � � � �immediate � � � � � � � � no_path_retry � � � � � � � � � fail
� � � �}
� � � �device {
� � � � � � � � vendor � � � � � � � � � � � � �"IET"
� � � � � � � � product � � � � � � � � � � � � "VIRTUAL-DISK" � � � � � � � � path_checker � � � � � � � � � �tur
� � � � � � � � path_grouping_policy � � � � � �failover � � � � � � � � failback � � � � � � � � � � � �immediate � � � � � � � � no_path_retry � � � � � � � � � fail
� � � �}
}

As an example this is one LUN. It shoes [features=0] so I'd say it should
fail right way

mpath-dc2-a (360060e8004f240000000f24000000502) dm-15 HITACHI,OPEN-V -SU
[size=26G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=4][active]
�\_ 5:0:1:0 � � sdu �65:64 �[active][ready]
�\_ 5:0:1:16384 sdac 65:192 [active][ready]
�\_ 5:0:1:32768 sdas 66:192 [active][ready]
�\_ 5:0:1:49152 sdba 67:64 �[active][ready]
\_ round-robin 0 [prio=4][enabled]
�\_ 3:0:1:0 � � sdaw 67:0 � [active][ready]
�\_ 3:0:1:16384 sdbe 67:128 [active][ready]
�\_ 3:0:1:32768 sdbi 67:192 [active][ready]
�\_ 3:0:1:49152 sdbm 68:0 � [active][ready]

It think they fail since I see this messages from LVM:

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices
Quoted 77 lines

in
vg_syb_roger-lv_syb_roger_admin

But from some reason LVM cant remove them, any option I should have on lvm.conf?

BestRegards
Jose

Quoted 67 lines

post your multipath.conf file, you may be queuing forever ?

Quoted 46 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete
I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path
down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty
"devices"

Any ideas how I should �"fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has
failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. �Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty

devices
in
vg_syb_roger-lv_syb_roger_admin

Quoted 8 lines

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

--
Sent from my mobile device

Regards,
Eugene Vilensky
[email protected]

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#14 lore raw

Re: [linux-lvm] Lvm hangs on San fail

In reply to jose nuno neto

Hi Jose,

You have a total of 8 paths per LUN, 4 are marked active thru HBA host5 and the remaining 4 are marked enabled on HBA3 (you're on 2 differnet FABRICS right ?) , this may due to the fact that you use policy group_by_node_name. I don't know if this mode if it actually load balances across the 2 HBA's.

When you pull the cable (this is the test that you're doing and that s failling ?) you say it times out forever.
As you're in policy group_by_node_name, which corresponds to the fc_transport target node name you should look at the state of the target ports bound to the HBA you disconnected (is it the test you're doing?) (state Blocked ?) /sys/class/fc_remote_ports/rport:H:B-R (where H is your HBA number )forever due to may dev_loss_tmo or fast_io_fail_tmo too high (both timers are located under /sys/class/fc_remote_ports/rport....

I have almost the same setup with almost the same storage (OPEN-V) from a pair of HP XP (OEM'ized Hitachi arrays) and things are setup to use maximum 4 paths per LUN (2 per fabric), some storage experts tend to say it is already too much, and as multipath policy I use multibus to distribute across the 2 fabrics.

Hope all this will help

you say this happens when you pull the fiber cable from the server

Quoted 455 lines · jose nuno neto

Hi

Quoted 2 lines

Can you show us a pvdisplay or verbose vgdisplay ?

Here goes the vgdisplay -v of one of the vgs with mirrors

###########################################################

--- Volume group ---
VG Name vg_ora_jura
System ID

  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  705
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               4
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               52.79 GB
  PE Size               4.00 MB
  Total PE              13515
  Alloc PE / Size       12292 / 48.02 GB
  Free  PE / Size       1223 / 4.78 GB
  VG UUID               nttQ3x-4ecP-Q6ms-jt2u-UIs4-texj-Q9Nxdt

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch
  VG Name                vg_ora_jura
  LV UUID                8oUfYn-2TrP-yS6K-pcS2-cgI4-tcv1-33dSdX
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:28

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export
  VG Name                vg_ora_jura
  LV UUID                NLfQT6-36TS-DRHq-PJRf-9UDv-L8mz-HjPea2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:32

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data
  VG Name                vg_ora_jura
  LV UUID                VtSBIL-XvCw-23xK-NVAH-DvYn-P2sE-OkZJro
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                12.00 GB
  Current LE             3072
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:40

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo
  VG Name                vg_ora_jura
  LV UUID                KRHKBG-71Qv-YBsA-oJDt-igzP-EYaI-gPwcBX
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:48

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch_mimage_0
  VG Name                vg_ora_jura
  LV UUID                lQCOAt-aoK3-HBp1-xrQW-eh7L-6t94-CyAg5c
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:26

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch_mimage_1
  VG Name                vg_ora_jura
  LV UUID                snrnPc-8FxY-ekAk-ooNe-sBws-tuI0-cTFfj3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:27

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch_mlog
  VG Name                vg_ora_jura
  LV UUID                ouqaCQ-Deex-iArv-xLe9-jg8b-5cLf-3SChQ1
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:25

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data_mlog
  VG Name                vg_ora_jura
  LV UUID                TmE2S0-r8ST-v624-RxUn-Qppw-2l8p-jM9EC9
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:37

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data_mimage_0
  VG Name                vg_ora_jura
  LV UUID                8hR0bP-g9mR-OSXS-KdUM-ouZ6-KVdS-sfz51c
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                12.00 GB
  Current LE             3072
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:38

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data_mimage_1
  VG Name                vg_ora_jura
  LV UUID                fzdzrD-7p6d-XFkA-UHyr-CPad-F2nV-6QIU9p
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                12.00 GB
  Current LE             3072
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:39

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export_mlog
  VG Name                vg_ora_jura
  LV UUID                29yLY8-N3Lv-46pN-1jze-50A2-wlhu-quuoMa
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:29

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export_mimage_0
  VG Name                vg_ora_jura
  LV UUID                1uMTsf-wPaQ-ItTy-rpma-m2La-TGZl-C4KIU4
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:30

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export_mimage_1
  VG Name                vg_ora_jura
  LV UUID                cm8Kn7-knL3-mUPL-XFvU-geMm-Wxff-32x2va
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:31

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo_mlog
  VG Name                vg_ora_jura
  LV UUID                811tNy-eaC5-zfZQ-1QVf-cbYP-1MIM-v6waJF
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:45

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo_mimage_0
  VG Name                vg_ora_jura
  LV UUID                aUZAer-f5rl-1f2X-9jgY-f8CJ-jdwe-F5Pmao
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:46

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo_mimage_1
  VG Name                vg_ora_jura
  LV UUID                gAEJym-sSbq-rC4P-AjpI-OibV-k3yI-lDx1I6
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:47

--- Physical volumes ---

  PV Name               /dev/mapper/mpath-dc1-b
  PV UUID               hgjXU1-2qjo-RsmS-1XJI-d0kZ-oc4A-ZKCza8
  PV Status             allocatable
  Total PE / Free PE    6749 / 605
  PV Name               /dev/mapper/mpath-dc2-b
  PV UUID               hcANwN-aeJT-PIAq-bPsf-9d3e-ylkS-GDjAGR
  PV Status             allocatable
  Total PE / Free PE    6749 / 605
  PV Name               /dev/mapper/mpath-dc2-mlog1p1
  PV UUID               4l9Qvo-SaAV-Ojlk-D1YB-Tkud-Yjg0-e5RkgJ
  PV Status             allocatable
  Total PE / Free PE    17 / 13
Quoted 154 lines · jose nuno neto
Quoted 139 lines

hellos

I spent more time on this and it seems since LVM cant write to any pv on the volumes it has lost, it cannot write the failure of the devices and update the metadata on other PVs. So it hangs forever

Is this right?

Quoted 53 lines

GoodMornings

This is what I have on multipath.conf

blacklist {
        wwid SSun_VOL0_266DCF4A
        wwid SSun_VOL0_5875CF4A
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
}
defaults {
                user_friendly_names             yes
}
devices {
       device {
                vendor                          "HITACHI"
                product                         "OPEN-V"
                path_grouping_policy            group_by_node_name
                failback                        immediate
                no_path_retry                   fail
       }
       device {
                vendor                          "IET"
                product                         "VIRTUAL-DISK"
                path_checker                    tur
                path_grouping_policy            failover
                failback                        immediate
                no_path_retry                   fail
       }
}

As an example this is one LUN. It shoes [features=0] so I'd say it should
fail right way

mpath-dc2-a (360060e8004f240000000f24000000502) dm-15 HITACHI,OPEN-V -SU
[size=26G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=4][active]
\_ 5:0:1:0 sdu 65:64 [active][ready]
\_ 5:0:1:16384 sdac 65:192 [active][ready]
\_ 5:0:1:32768 sdas 66:192 [active][ready]
\_ 5:0:1:49152 sdba 67:64 [active][ready]
\_ round-robin 0 [prio=4][enabled]
\_ 3:0:1:0 sdaw 67:0 [active][ready]
\_ 3:0:1:16384 sdbe 67:128 [active][ready]
\_ 3:0:1:32768 sdbi 67:192 [active][ready]
\_ 3:0:1:49152 sdbm 68:0 [active][ready]

It think they fail since I see this messages from LVM:

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty devices
Quoted 77 lines

in
vg_syb_roger-lv_syb_roger_admin

But from some reason LVM cant remove them, any option I should have on lvm.conf?

BestRegards
Jose

Quoted 67 lines

post your multipath.conf file, you may be queuing forever ?

Quoted 46 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete
I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath reports path
down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to remove faulty
"devices"

Any ideas how I should "fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has
failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling an

event. Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active
paths: 0
Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining active

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty

devices
in
vg_syb_roger-lv_syb_roger_admin

Quoted 8 lines

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

--
Sent from my mobile device

Regards,
Eugene Vilensky
[email protected]

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#15 lore raw

Re: [linux-lvm] Lvm hangs on San fail

GoodMornings

In the meantime we did an upgrade on RHEL to 5.5 and multipath now looks more accurate showing only 1path per HBA. We have a 2datacenter setup with 4Fabrics between them. 2Fabrics for each datacenter.

mpath-dc2-a (360060e8004f240000000f24000000502) dm-12 HITACHI,OPEN-V -SU
[size=26G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 3:0:1:0 sdg 8:96 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 5:0:1:0 sdo 8:224 [active][ready]

I'll repeat the tests and look at the state you're saying

I'm using group_by_node_name because before with 8links it was a mess, but it spreads some load between the paths, but not on all of them. anyway that was it the "strange" paths i'll see how it goes now

Thanks
Jose

Quoted 509 lines

Hi Jose,

You have a total of 8 paths per LUN, 4 are marked active thru HBA host5 and the remaining 4 are marked enabled on HBA3 (you're on 2 differnet FABRICS right ?) , this may due to the fact that you use policy group_by_node_name. I don't know if this mode if it actually load balances across the 2 HBA's.

When you pull the cable (this is the test that you're doing and that s failling ?) you say it times out forever.
As you're in policy group_by_node_name, which corresponds to the fc_transport target node name you should look at the state of the target ports bound to the HBA you disconnected (is it the test you're doing?) (state Blocked ?) /sys/class/fc_remote_ports/rport:H:B-R (where H is your HBA number )forever due to may dev_loss_tmo or fast_io_fail_tmo too high (both timers are located under /sys/class/fc_remote_ports/rport....

I have almost the same setup with almost the same storage (OPEN-V) from a pair of HP XP (OEM'ized Hitachi arrays) and things are setup to use maximum 4 paths per LUN (2 per fabric), some storage experts tend to say it is already too much, and as multipath policy I use multibus to distribute across the 2 fabrics.

Hope all this will help

you say this happens when you pull the fiber cable from the server

Quoted 461 lines · jose nuno neto

Hi

Quoted 2 lines

Can you show us a pvdisplay or verbose vgdisplay ?

Here goes the vgdisplay -v of one of the vgs with mirrors

###########################################################

--- Volume group ---
VG Name vg_ora_jura
System ID

  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  705
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               4
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               52.79 GB
  PE Size               4.00 MB
  Total PE              13515
  Alloc PE / Size       12292 / 48.02 GB
  Free  PE / Size       1223 / 4.78 GB
  VG UUID               nttQ3x-4ecP-Q6ms-jt2u-UIs4-texj-Q9Nxdt

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch
  VG Name                vg_ora_jura
  LV UUID                8oUfYn-2TrP-yS6K-pcS2-cgI4-tcv1-33dSdX
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:28

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export
  VG Name                vg_ora_jura
  LV UUID                NLfQT6-36TS-DRHq-PJRf-9UDv-L8mz-HjPea2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:32

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data
  VG Name                vg_ora_jura
  LV UUID                VtSBIL-XvCw-23xK-NVAH-DvYn-P2sE-OkZJro
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                12.00 GB
  Current LE             3072
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:40

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo
  VG Name                vg_ora_jura
  LV UUID                KRHKBG-71Qv-YBsA-oJDt-igzP-EYaI-gPwcBX
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:48

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch_mimage_0
  VG Name                vg_ora_jura
  LV UUID                lQCOAt-aoK3-HBp1-xrQW-eh7L-6t94-CyAg5c
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:26

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch_mimage_1
  VG Name                vg_ora_jura
  LV UUID                snrnPc-8FxY-ekAk-ooNe-sBws-tuI0-cTFfj3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:27

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_arch_mlog
  VG Name                vg_ora_jura
  LV UUID                ouqaCQ-Deex-iArv-xLe9-jg8b-5cLf-3SChQ1
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:25

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data_mlog
  VG Name                vg_ora_jura
  LV UUID                TmE2S0-r8ST-v624-RxUn-Qppw-2l8p-jM9EC9
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:37

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data_mimage_0
  VG Name                vg_ora_jura
  LV UUID                8hR0bP-g9mR-OSXS-KdUM-ouZ6-KVdS-sfz51c
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                12.00 GB
  Current LE             3072
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:38

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_data_mimage_1
  VG Name                vg_ora_jura
  LV UUID                fzdzrD-7p6d-XFkA-UHyr-CPad-F2nV-6QIU9p
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                12.00 GB
  Current LE             3072
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:39

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export_mlog
  VG Name                vg_ora_jura
  LV UUID                29yLY8-N3Lv-46pN-1jze-50A2-wlhu-quuoMa
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:29

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export_mimage_0
  VG Name                vg_ora_jura
  LV UUID                1uMTsf-wPaQ-ItTy-rpma-m2La-TGZl-C4KIU4
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:30

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_export_mimage_1
  VG Name                vg_ora_jura
  LV UUID                cm8Kn7-knL3-mUPL-XFvU-geMm-Wxff-32x2va
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                5.00 GB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:31

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo_mlog
  VG Name                vg_ora_jura
  LV UUID                811tNy-eaC5-zfZQ-1QVf-cbYP-1MIM-v6waJF
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 MB
  Current LE             1
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:45

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo_mimage_0
  VG Name                vg_ora_jura
  LV UUID                aUZAer-f5rl-1f2X-9jgY-f8CJ-jdwe-F5Pmao
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:46

--- Logical volume ---

  LV Name                /dev/vg_ora_jura/lv_ora_jura_redo_mimage_1
  VG Name                vg_ora_jura
  LV UUID                gAEJym-sSbq-rC4P-AjpI-OibV-k3yI-lDx1I6
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GB
  Current LE             512
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:47

--- Physical volumes ---

  PV Name               /dev/mapper/mpath-dc1-b
  PV UUID               hgjXU1-2qjo-RsmS-1XJI-d0kZ-oc4A-ZKCza8
  PV Status             allocatable
  Total PE / Free PE    6749 / 605
  PV Name               /dev/mapper/mpath-dc2-b
  PV UUID               hcANwN-aeJT-PIAq-bPsf-9d3e-ylkS-GDjAGR
  PV Status             allocatable
  Total PE / Free PE    6749 / 605
  PV Name               /dev/mapper/mpath-dc2-mlog1p1
  PV UUID               4l9Qvo-SaAV-Ojlk-D1YB-Tkud-Yjg0-e5RkgJ
  PV Status             allocatable
  Total PE / Free PE    17 / 13
Quoted 4 lines · jose nuno neto
Quoted 3 lines

hellos

I spent more time on this and it seems since LVM cant write to any pv

on

Quoted 1 line
Quoted 1 line

the volumes it has lost, it cannot write the failure of the devices

and

Quoted 53 lines
Quoted 53 lines

update the metadata on other PVs. So it hangs forever

Is this right?

Quoted 49 lines

GoodMornings

This is what I have on multipath.conf

blacklist {
        wwid SSun_VOL0_266DCF4A
        wwid SSun_VOL0_5875CF4A
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
}
defaults {
                user_friendly_names             yes
}
devices {
       device {
                vendor                          "HITACHI"
                product                         "OPEN-V"
                path_grouping_policy            group_by_node_name
                failback                        immediate
                no_path_retry                   fail
       }
       device {
                vendor                          "IET"
                product                         "VIRTUAL-DISK"
                path_checker                    tur
                path_grouping_policy            failover
                failback                        immediate
                no_path_retry                   fail
       }
}

As an example this is one LUN. It shoes [features=0] so I'd say it should
fail right way

mpath-dc2-a (360060e8004f240000000f24000000502) dm-15 HITACHI,OPEN-V -SU
[size=26G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=4][active]
\_ 5:0:1:0 sdu 65:64 [active][ready]
\_ 5:0:1:16384 sdac 65:192 [active][ready]
\_ 5:0:1:32768 sdas 66:192 [active][ready]
\_ 5:0:1:49152 sdba 67:64 [active][ready]
\_ round-robin 0 [prio=4][enabled]
\_ 3:0:1:0 sdaw 67:0 [active][ready]
\_ 3:0:1:16384 sdbe 67:128 [active][ready]
\_ 3:0:1:32768 sdbi 67:192 [active][ready]
\_ 3:0:1:49152 sdbm 68:0 [active][ready]

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

It think they fail since I see this messages from LVM:

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty

devices

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

in
vg_syb_roger-lv_syb_roger_admin

But from some reason LVM cant remove them, any option I should have

on

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

lvm.conf?

BestRegards
Jose

Quoted 11 lines

post your multipath.conf file, you may be queuing forever ?

Quoted 6 lines · jose nuno neto

Hi2all

I'm on RHEL 5.4 with
lvm2-2.02.46-8.el5_4.1
2.6.18-164.2.1.el5

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

I have a multipathed SAN connection with what Im builing LVs Its a Cluster system, and I want LVs to switch on failure

If I simulate a fail through the OS via /sys/bus/scsi/devices/$DEVICE/delete
I get a LV fail and the service switch to other node

But if I do it "real" portdown on the SAN Switch, multipath

reports

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

path
down, but LVM commands hang forever and nothing gets switched

from the logs i see multipath failing paths, and lvm Failed to

remove

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

faulty
"devices"

Any ideas how I should "fix" it?

Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Log device, 253:53, has
failed.
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Device failure in
vg_ora_scapa-lv_ora_scapa_redo
Apr 14 16:02:45 dc1-x6250-a lvm[15622]: Another thread is handling

an

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

event. Waiting...

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining

active

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

paths: 0

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-a: remaining

active

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

paths: 0

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining

active

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

paths: 0

Apr 14 16:02:52 dc1-x6250-a multipathd: mpath-dc1-b: remaining

active

Quoted 42 lines
Quoted 28 lines
Quoted 19 lines
Quoted 19 lines
Quoted 17 lines

paths: 0

Apr 14 16:03:05 dc1-x6250-a lvm[15622]: Device failure in
vg_syb_roger-lv_syb_roger_admin
Apr 14 16:03:14 dc1-x6250-a lvm[15622]: Failed to remove faulty

devices
in
vg_syb_roger-lv_syb_roger_admin

Much Thanks
Jose

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 8 lines
Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

--
Sent from my mobile device

Regards,
Eugene Vilensky
[email protected]

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 5 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/