Unable to create customized multipath device


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Unable to create customized multipath device
# 1  
Old 09-26-2016
Unable to create customized multipath device

Hi,
I am testing on iSCSI + multipath, where i have one iSCSI lun assigned to one server.

Code:
mpatha (1IET     00010001) dm-2 IET,VIRTUAL-DISK
size=100M features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 2:0:0:1 sda 8:0    active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 3:0:0:1 sdb 8:16   active ready running

and multipath.conf as below ...
Code:
# cat /etc/multipath.conf
defaults {
        user_friendly_names     yes
        udev_dir                /dev
        polling_interval        10
        path_grouping_policy    failover
        getuid_callout          "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
        failback                immediate
        no_path_retry           fail
    verbosity        3
}
multipaths {
       multipath {
              wwid     1IET_____00010001
              alias     qdisk_lun
    }
}


blacklist {
}


But it's not working , can you please let me know where i am going wrong ?


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 09-26-2016 at 08:47 AM.. Reason: Added CODE tags.
# 2  
Old 09-26-2016
IF you told us WHAT "is not working", we might be in a position to help you.
These 3 Users Gave Thanks to RudiC For This Post:
# 3  
Old 09-26-2016
Hey thanks for response ... i need iSCSI lun to show as qdisk_lun in "multipath -ll" command , but it's showing mpatha instead
# 4  
Old 09-26-2016
Dear linux.amrit,

I have a few to questions:-
  • What output/errors do you get?
  • What OS version are you using?
  • Can you not join these up with reference to the files in /dev/disk?

We're all here to learn and getting all the relevant information will help us all. Some of this may well depend on the OS version, so please could you paste the output from uname -a in CODE tags into the thread.


Kind regards,
Robin
# 5  
Old 09-26-2016
* What output/errors do you get? Nothing much error i can see...
* What OS version are you using?
Code:
# uname -a
Linux desktopA.home.org 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

* Can you not join these up with reference to the files in /dev/disk*? How to do it ?
Code:
# ls -ld /dev/dm-5 
brw-rw----. 1 root disk 253, 5 Sep 26 15:21 /dev/dm-5
# ls -ld /dev/mapper/mpatha 
lrwxrwxrwx. 1 root root 7 Sep 26 15:21 /dev/mapper/mpatha -> ../dm-3

Do you want me to mention /dev/dm-5 on multipath.conf ?


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 09-26-2016 at 03:36 PM.. Reason: Added CODE tags.
# 6  
Old 09-26-2016
I am not sure , but I believe I had a similar issue years ago and I think the answer was setting a filter in lvm.conf so that the multipath device alias is found first before all the other names that point to the same device. Don't know if it is related...

Last edited by Scrutinizer; 09-26-2016 at 02:51 PM..
# 7  
Old 09-27-2016
issue got resolved ... need to change multipath.conf as below ...

Code:
# cat /etc/multipath.conf
defaults {
        user_friendly_names     yes
    getuid_callout "/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/%n"
}
multipaths {
       multipath {
        wwid    1IET_00030001
              alias     datalun01
    }
}

blacklist {
}


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 09-27-2016 at 08:19 AM.. Reason: Added CODE tags.
These 2 Users Gave Thanks to linux.amrit For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Creating multipath device with FC Disks

Hello, I am trying to setup a storage server with salvaged equipments: QSSC-S4R server, with QLogic 2562 FC HBA's Clariion KTN-STL4 4GB FC Enclosures Disks Salvaged from EMC Vmax Disks are 520B sector size so i converted to 512B in linux environment and create multipath successfully. But... (4 Replies)
Discussion started by: amd103
4 Replies

2. UNIX for Beginners Questions & Answers

How can i create a script that will ssh a device and type some commands?

Hi Guys, this is the scenario: ubuntu pc and I have 10 wireless devices that I need to check their firmware version. I would like to create a script that it will ask me IP, after I enter it, I hit enter then it will show me the version of the firmware. this is what i do. ssh... (9 Replies)
Discussion started by: gabak
9 Replies

3. Shell Programming and Scripting

Need to develop a bash script to create customized report from the server log

Hi, I need to develop a bash script to create customized report from the server log (red hat 5.8 64 bit Operating system). The following is one of the log for our internal application task. <2015.03.03 20:09:52 274 +0800><I><DSCTH01><http-0.0.0.0-443-2><security> GUI request succeeded for... (1 Reply)
Discussion started by: pugazhendhi_r
1 Replies

4. Red Hat

Raw device/multipath details

Hi, How to find the raw device/multipath details of the LUN used by the diskgroups of the database. file system type -- ASM Oracle -- 11.2.0.3.0 OS -- Linux This is RAC database. Regards, Maddy (2 Replies)
Discussion started by: Maddy123
2 Replies

5. Solaris

Cleanup special files create via device match in a whole root zone

I added in the configuration file of a whole root zone the following device match entries: <device match="/dev/rmt/*"/> <device match="/dev/sg/*"/> after the reboot the zone was able to see all the devices of its global zone, and let under /dev/rmt and /dev/sg the special files created with... (1 Reply)
Discussion started by: hugo_perez
1 Replies

6. Red Hat

Unable To Activate Ethernet Network Device in RHEL 5.5 - e100 device eth0 does not seem to be presen

Hi All, Could anyone please help to resolve the below problem. I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error. I spent 2 days for the above and go through with several suggestion found by googling. But no luck. ... (0 Replies)
Discussion started by: Tanmoy
0 Replies

7. Ubuntu

Create a customized ubunto automated installtion cd

Hi 1- I want to create a cd or dvd of ubunto , that include a lot of installed packages entered by me . 2- automated installion (just enter the cd )and install by it self . (3 Replies)
Discussion started by: rashed
3 Replies

8. AIX

entstat: 0909-003 Unable to connect to device

Hello All, at our client VIOS Server there is shared ethernet adapter ent6, when I run lsattr -El ent6 the output shows real adapter ent1 lsattr -El ent6 accounting disabled Enable per-client accounting of network statistics True ctl_chan ent5 Control Channel... (2 Replies)
Discussion started by: Vit0_Corleone
2 Replies

9. Red Hat

device-mapper-multipath path [undef]

I have an HP blade with Qlogic HBA's connected to an EVA8000. I have downloaded the latest multipath.conf from HP's website. The drive presented to the server appears to be configured and working except the output of "multipath -l" shows for all paths. What is causing this output? mpath0... (2 Replies)
Discussion started by: manzier
2 Replies

10. Linux

shrinking root partition and using free space to create a block device

We are intending to protect a set of user specified files using LVM mirroring where the protected space on which the user files are stored is mirrored on an LV on a different disk. Our problem is that for a user with a custom layout has installed linux with 2 partitons for swap and / and there is... (0 Replies)
Discussion started by: kickdgrass
0 Replies
Login or Register to Ask a Question