Your message dated Fri, 06 Apr 2012 17:11:41 +0530
with message-id <[email protected]>
and subject line Re: Bug#667624: multipath-tools: Can't assign multipath 
aliases via /etc/multipath.conf
has caused the Debian Bug report #667624,
regarding multipath-tools: Can't assign multipath aliases via 
/etc/multipath.conf
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
667624: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667624
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: multipath-tools
Version: 0.4.8+git0.761c66f-10
Severity: minor



-- Package-specific info:
Contents of /etc/multipath.conf:
defaults {
        polling_interval    30 
        failback            immediate
        no_path_retry       5
        rr_min_io           100
        path_checker        tur
        user_friendly_names yes 
        bindings_file /etc/bindings
}
blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
        device {
                vendor DELL
                product "PERC|Universal"
        }
}
devices {
       device {
               vendor                   "IBM"
               product                  "2145"
               path_grouping_policy     group_by_prio
               prio                     "alua" 
}
multipaths {
       multipath {
               wwid  360050768019001ab2800000000000536 
               alias VD_DSETPLABA_03 
       }
       multipath {
               wwid  360050768019001ab2800000000000537 
               alias VD_DSETPLABA_04 
       }
}


-- System Information:
Debian Release: 6.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages multipath-tools depends on:
ii  initscripts        2.88dsf-13.1          scripts for initializing and shutt
ii  kpartx             0.4.8+git0.761c66f-10 create device mappings for partiti
ii  libaio1            0.3.107-7             Linux kernel AIO access library - 
ii  libc6              2.11.3-2              Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1 2:1.02.48-5           The Linux Kernel Device Mapper use
ii  libncurses5        5.7+20100313-5        shared libraries for terminal hand
ii  libreadline6       6.1-3                 GNU readline and history libraries
ii  lsb-base           3.2-23.2squeeze1      Linux Standard Base 3.2 init scrip
ii  udev               164-3                 /dev/ and hotplug management daemo

multipath-tools recommends no packages.

Versions of packages multipath-tools suggests:
pn  multipath-tools-boot          <none>     (no description available)

-- no debconf information

I don't understand why multipathd doesn't assign specified (in 
/etc/muultipath.conf) aliases to my multipath devices.
I also see that "bindings_file" directive doesn't work (it's not in man page so 
I suppose that this feature isn't supported).

This is what I'm trying to do:

dsetplab02:~# /etc/init.d/multipath-tools stop
Stopping multipath daemon: multipathd.
dsetplab02:~# multipath -F
dsetplab02:~# rm /var/lib/multipath/bindings 
dsetplab02:~# multipath -l
dsetplab02:~# /etc/init.d/multipath-tools start
Starting multipath daemon: multipathd.
dsetplab02:~# multipath -l
mpath1 (360050768019001ab2800000000000537) dm-2 IBM,2145
size=1.0T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=-2 status=active
| |- 1:0:3:1 sde 8:64  active undef running
| `- 2:0:0:1 sdg 8:96  active undef running
`-+- policy='round-robin 0' prio=-2 status=enabled
  |- 1:0:0:1 sdc 8:32  active undef running
  `- 2:0:3:1 sdi 8:128 active undef running
mpath0 (360050768019001ab2800000000000536) dm-1 IBM,2145
size=1.0T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=-2 status=active
| |- 1:0:0:0 sdb 8:16  active undef running
| `- 2:0:3:0 sdh 8:112 active undef running
`-+- policy='round-robin 0' prio=-2 status=enabled
  |- 1:0:3:0 sdd 8:48  active undef running
  `- 2:0:0:0 sdf 8:80  active undef running
dsetplab02:~# cat /var/lib/multipath/bindings 
# Multipath bindings, Version : 1.0
# NOTE: this file is automatically maintained by the multipath program.
# You should not need to edit this file in normal circumstances.
#
# Format:
# alias wwid
#
mpath0 360050768019001ab2800000000000536
mpath1 360050768019001ab2800000000000537


I could assign my aliases editing "/var/lib/multipath/bindings" but it isn't 
the correct procedure.

Could you help me to discover if I'm doing something wrong or if I found a bug.

Thanks In Advance,
Matteo



--- End Message ---
--- Begin Message ---
On Thursday 05 April 2012 09:42 PM, Matteo Chesi wrote:
>> > Items to investigate:
>> > * Does bindings override aliases?
>> > * Does bindings_file setting get overridden/not honored ?
> Let me know if you need my support to investigate these issues.

Okay!! Just needed a little reading. :-)


To use an alias (a user defined alias), you need to set
user_friendly_names to yes. With that, and a custom alias defined, you
will see it for your map.

Something like:

dbug667624 (1494554000000000076646200000000000000000000000000) dm-3
IET,VIRTUAL-DISK
size=1000M features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 4:0:0:0 sdg 8:96   active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 2:0:0:0 sda 8:0    active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 5:0:0:0 sdh 8:112  active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 3:0:0:0 sdf 8:80   active ready running



The config file looks like:

root@debian-x86:/var/cache/pbuilder# cat /etc/multipath.conf
##
## This is a template multipath-tools configuration file
## Uncomment the lines relevent to your environment
##
defaults {
        udev_dir                /dev
        polling_interval        10
        path_selector           "round-robin 0"
        path_grouping_policy    multibus
        getuid_callout          "/lib/udev/scsi_id --whitelisted
--device=/dev/%n"
        prio                    const
        path_checker            directio
        rr_min_io               100
        flush_on_last_del       no
        max_fds                 8192
        rr_weight               priorities
        failback                immediate
        no_path_retry           fail
        queue_without_daemon    no
        *user_friendly_names     yes*
        mode                    644
        uid                     0
        gid                     disk
}
multipaths {
        multipath {
                wwid                   
1494554000000000076646200000000000000000000000000
                alias                   *dbug667624*
        }
}


I'm closing this bug report. If it doesn't help, please re-open it.

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to