FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 05-30-2011, 07:57 PM
Jorge Salamero Sanz
 
Default paths scsi names persistence after rescan

hi all,

i've configured multipath on a linux box and i'm getting these messages on
syslog:

May 30 10:50:05 mail-1 udevd-work[25148]: rename(/dev/disk/by-
id/wwn-0x6006016052b022002e770b609680e011.udev-tmp, /dev/disk/by-
id/wwn-0x6006016052b022002e770b609680e011) failed: No such file or directory

and sometimes after a path failure, the different paths get different scsi
names, /proc/partitions shows in that case:

8 16 838860800 sdb
8 32 849582720 sdc
8 80 838860800 sdf
8 96 849582720 sdg
252 3 849582720 dm-3
252 4 838860800 dm-4
8 208 838860800 sdn
8 224 849582720 sdo
65 0 849582720 sdq
8 240 838860800 sdp

and then multipath gets crazy:

May 25 12:26:51 mail-1 multipathd: sdh: emc_clariion_checker: sending query
command failed
...

i guess i should tell udev to asign persistant names using uuid? what's the
right way to address this problem?

this is my config:

root@mail-1:~# multipath -ll
backup (36006016052b022009cd7f2aeaf80e011) dm-3 DGC ,RAID 5
[size=810G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=2][active]
\_ 3:0:1:1 sdg 8:96 [active][ready]
\_ 4:0:0:1 sde 8:64 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:0:1 sdc 8:32 [active][ready]
\_ 4:0:1:1 sdi 8:128 [active][ready]
mail (36006016052b022002e770b609680e011) dm-4 DGC ,RAID 5
[size=800G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=2][active]
\_ 4:0:0:0 sdd 8:48 [active][ready]
\_ 3:0:1:0 sdf 8:80 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:0:0 sdb 8:16 [active][ready]
\_ 4:0:1:0 sdh 8:112 [active][ready]

root@mail-1:~# cat /etc/multipath.conf
#

blacklist {
devnode "sda"
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z][[0-9]*]"
devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
}

defaults {
user_friendly_names no
}

devices {
device {
vendor "DGC"
product "*"
path_grouping_policy group_by_prio
getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n"
prio_callout "/sbin/mpath_prio_emc /dev/%n"
hardware_handler "1 emc"
no_path_retry 300
path_checker emc_clariion
failback immediate
}
}

multipaths {
multipath {
wwid 36006016052b022002e770b609680e011
alias mail
}
multipath {
wwid 36006016052b022009cd7f2aeaf80e011
alias backup
}
}

thanks in advance!

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 05-31-2011, 09:24 PM
Jorge Salamero Sanz
 
Default paths scsi names persistence after rescan

hi all,

i've configured multipath on a linux box and i'm getting these messages on
syslog:

May 30 10:50:05 mail-1 udevd-work[25148]: rename(/dev/disk/by-
id/wwn-0x6006016052b022002e770b609680e011.udev-tmp, /dev/disk/by-
id/wwn-0x6006016052b022002e770b609680e011) failed: No such file or directory

and sometimes after a path failure, the different paths get different scsi
names, /proc/partitions shows in that case:

8 16 838860800 sdb
8 32 849582720 sdc
8 80 838860800 sdf
8 96 849582720 sdg
252 3 849582720 dm-3
252 4 838860800 dm-4
8 208 838860800 sdn
8 224 849582720 sdo
65 0 849582720 sdq
8 240 838860800 sdp

and then multipath gets crazy:

May 25 12:26:51 mail-1 multipathd: sdh: emc_clariion_checker: sending query
command failed
...

i guess i should tell udev to asign persistant names using uuid? what's the
right way to address this problem?

this is my config:

root@mail-1:~# multipath -ll
backup (36006016052b022009cd7f2aeaf80e011) dm-3 DGC ,RAID 5
[size=810G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=2][active]
\_ 3:0:1:1 sdg 8:96 [active][ready]
\_ 4:0:0:1 sde 8:64 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:0:1 sdc 8:32 [active][ready]
\_ 4:0:1:1 sdi 8:128 [active][ready]
mail (36006016052b022002e770b609680e011) dm-4 DGC ,RAID 5
[size=800G][features=1 queue_if_no_path][hwhandler=1 emc]
\_ round-robin 0 [prio=2][active]
\_ 4:0:0:0 sdd 8:48 [active][ready]
\_ 3:0:1:0 sdf 8:80 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:0:0 sdb 8:16 [active][ready]
\_ 4:0:1:0 sdh 8:112 [active][ready]

root@mail-1:~# cat /etc/multipath.conf
#

blacklist {
devnode "sda"
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z][[0-9]*]"
devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
}

defaults {
user_friendly_names no
}

devices {
device {
vendor "DGC"
product "*"
path_grouping_policy group_by_prio
getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n"
prio_callout "/sbin/mpath_prio_emc /dev/%n"
hardware_handler "1 emc"
no_path_retry 300
path_checker emc_clariion
failback immediate
}
}

multipaths {
multipath {
wwid 36006016052b022002e770b609680e011
alias mail
}
multipath {
wwid 36006016052b022009cd7f2aeaf80e011
alias backup
}
}

thanks in advance!

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 05-31-2011, 09:36 PM
"Peter M. Petrakis"
 
Default paths scsi names persistence after rescan

On 05/31/2011 05:24 PM, Jorge Salamero Sanz wrote:
>
> hi all,
>
> i've configured multipath on a linux box and i'm getting these messages on
> syslog:

Let's start with the basics:
- which version of Ubuntu are you running?
- multipath version
- kernel version


> May 30 10:50:05 mail-1 udevd-work[25148]: rename(/dev/disk/by-
> id/wwn-0x6006016052b022002e770b609680e011.udev-tmp, /dev/disk/by-
> id/wwn-0x6006016052b022002e770b609680e011) failed: No such file or directory

So without the alias directives the wwn are created and persist just fine?


> and sometimes after a path failure, the different paths get different scsi
> names, /proc/partitions shows in that case:
>
> 8 16 838860800 sdb
> 8 32 849582720 sdc
> 8 80 838860800 sdf
> 8 96 849582720 sdg
> 252 3 849582720 dm-3
> 252 4 838860800 dm-4
> 8 208 838860800 sdn
> 8 224 849582720 sdo
> 65 0 849582720 sdq
> 8 240 838860800 sdp
>
> and then multipath gets crazy:
>
> May 25 12:26:51 mail-1 multipathd: sdh: emc_clariion_checker: sending query
> command failed
> ...
>
> i guess i should tell udev to asign persistant names using uuid? what's the
> right way to address this problem?
>
> this is my config:
>
> root@mail-1:~# multipath -ll
> backup (36006016052b022009cd7f2aeaf80e011) dm-3 DGC ,RAID 5
> [size=810G][features=1 queue_if_no_path][hwhandler=1 emc]
> \_ round-robin 0 [prio=2][active]
> \_ 3:0:1:1 sdg 8:96 [active][ready]
> \_ 4:0:0:1 sde 8:64 [active][ready]
> \_ round-robin 0 [prio=0][enabled]
> \_ 3:0:0:1 sdc 8:32 [active][ready]
> \_ 4:0:1:1 sdi 8:128 [active][ready]
> mail (36006016052b022002e770b609680e011) dm-4 DGC ,RAID 5
> [size=800G][features=1 queue_if_no_path][hwhandler=1 emc]
> \_ round-robin 0 [prio=2][active]
> \_ 4:0:0:0 sdd 8:48 [active][ready]
> \_ 3:0:1:0 sdf 8:80 [active][ready]
> \_ round-robin 0 [prio=0][enabled]
> \_ 3:0:0:0 sdb 8:16 [active][ready]
> \_ 4:0:1:0 sdh 8:112 [active][ready]
>
> root@mail-1:~# cat /etc/multipath.conf
> #
>
> blacklist {
> devnode "sda"
> devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
> devnode "^hd[a-z][[0-9]*]"
> devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
> }
>
> defaults {
> user_friendly_names no
> }
>
> devices {
> device {
> vendor "DGC"
> product "*"
> path_grouping_policy group_by_prio
> getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n"
> prio_callout "/sbin/mpath_prio_emc /dev/%n"
> hardware_handler "1 emc"
> no_path_retry 300
> path_checker emc_clariion
> failback immediate
> }
> }
>
> multipaths {
> multipath {
> wwid 36006016052b022002e770b609680e011
> alias mail
> }
> multipath {
> wwid 36006016052b022009cd7f2aeaf80e011
> alias backup
> }
> }
>
> thanks in advance!

Peter

>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 06-01-2011, 04:42 PM
 
Default paths scsi names persistence after rescan

On Tue, 31 May 2011 17:36:42 -0400, "Peter M. Petrakis"
<peter.petrakis@canonical.com> wrote:
> On 05/31/2011 05:24 PM, Jorge Salamero Sanz wrote:
>>
>> hi all,
>>
>> i've configured multipath on a linux box and i'm getting these messages
>> on
>> syslog:
>
> Let's start with the basics:
> - which version of Ubuntu are you running?

ubuntu lucid updated

> - multipath version

multipath-tools 0.4.8-14ubuntu4

> - kernel version

Linux mail-1 2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8 18:25:51 UTC 2011
x86_64 GNU/Linux

>
>
>> May 30 10:50:05 mail-1 udevd-work[25148]: rename(/dev/disk/by-
>> id/wwn-0x6006016052b022002e770b609680e011.udev-tmp, /dev/disk/by-
>> id/wwn-0x6006016052b022002e770b609680e011) failed: No such file or
>> directory
>
> So without the alias directives the wwn are created and persist just
fine?

i get these messages even with no path failure:
http://paste.ubuntu.com/615969/

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 06-01-2011, 07:37 PM
"Peter M. Petrakis"
 
Default paths scsi names persistence after rescan

Hi,

On 06/01/2011 12:42 PM, bencer@cauterized.net wrote:
> On Tue, 31 May 2011 17:36:42 -0400, "Peter M. Petrakis"
> <peter.petrakis@canonical.com> wrote:
>> On 05/31/2011 05:24 PM, Jorge Salamero Sanz wrote:
>>>
>>> hi all,
>>>
>>> i've configured multipath on a linux box and i'm getting these messages
>>> on
>>> syslog:
>>
>> Let's start with the basics:
>> - which version of Ubuntu are you running?
>
> ubuntu lucid updated
>
>> - multipath version
>
> multipath-tools 0.4.8-14ubuntu4
>
>> - kernel version
>
> Linux mail-1 2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8 18:25:51 UTC 2011
> x86_64 GNU/Linux
>
>>
>>
>>> May 30 10:50:05 mail-1 udevd-work[25148]: rename(/dev/disk/by-
>>> id/wwn-0x6006016052b022002e770b609680e011.udev-tmp, /dev/disk/by-
>>> id/wwn-0x6006016052b022002e770b609680e011) failed: No such file or
>>> directory
>>
>> So without the alias directives the wwn are created and persist just
> fine?
>
> i get these messages even with no path failure:
> http://paste.ubuntu.com/615969/
>

Yeah, that doesn't look good.

One thing that bugged me about your multipath.conf

blacklist {
> devnode "sda"
> devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
> devnode "^hd[a-z][[0-9]*]"
> devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
> }

I'd rather see:

devnode "^sda[0-9]*"

beyond that it looks OK.

So to debug this we'll need to see:
- contents of /dev/disk
- udevadm monitor > udev.log
- stop multipathd and run it in the foreground to capture logging
* service multipath-tools stop
* multipathd -v4 -d > mpd.log

You haven't modified or added any udev rules have you?
Also do you have anything like dmraid or LVM running?
Thanks.

Peter



--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 06-02-2011, 09:58 AM
 
Default paths scsi names persistence after rescan

On Wed, 01 Jun 2011 15:37:44 -0400, "Peter M. Petrakis"
<peter.petrakis@canonical.com> wrote:
>
> One thing that bugged me about your multipath.conf
>
> blacklist {
>> devnode "sda"
>> devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
>> devnode "^hd[a-z][[0-9]*]"
>> devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
>> }
>
> I'd rather see:
>
> devnode "^sda[0-9]*"
>
> beyond that it looks OK.

agreed, fixed.

>
> So to debug this we'll need to see:
> - contents of /dev/disk
> - udevadm monitor > udev.log
> - stop multipathd and run it in the foreground to capture logging

http://paste.ubuntu.com/616565/

> * service multipath-tools stop
> * multipathd -v4 -d > mpd.log

http://paste.ubuntu.com/616561/

>
> You haven't modified or added any udev rules have you?
> Also do you have anything like dmraid or LVM running?

I run LVM: http://paste.ubuntu.com/616563/

Thanks for you help!


--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 06-30-2011, 06:49 AM
"Peter M. Petrakis"
 
Default paths scsi names persistence after rescan

On 06/02/2011 10:58 AM, bencer@cauterized.net wrote:

On Wed, 01 Jun 2011 15:37:44 -0400, "Peter M. Petrakis"
<peter.petrakis@canonical.com> wrote:


One thing that bugged me about your multipath.conf

blacklist {

devnode "sda"
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z][[0-9]*]"
devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
}


I'd rather see:

devnode "^sda[0-9]*"

beyond that it looks OK.


agreed, fixed.



So to debug this we'll need to see:
- contents of /dev/disk
- udevadm monitor> udev.log
- stop multipathd and run it in the foreground to capture logging


http://paste.ubuntu.com/616565/


* service multipath-tools stop
* multipathd -v4 -d> mpd.log


http://paste.ubuntu.com/616561/



You haven't modified or added any udev rules have you?
Also do you have anything like dmraid or LVM running?


I run LVM: http://paste.ubuntu.com/616563/

Thanks for you help!



To follow up:

https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/644489

This problem has been run down to multipath-tools and an SRU
is pending to address the issue from lucid-natty, oneiric is
unaffected. If you're a multipath user and you're seeing
a swath of unexplained UDEV CHANGE events from your path members,
the next update will solve your problem. Dropping the CHANGE
filter from the associated UDEV rules *is not* the answer.

An updated lucid multipath-tools is available from my ppa.

ppaeter-petrakis/storage

Peter



--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 

Thread Tools




All times are GMT. The time now is 07:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org