Start a Conversation

Unsolved

This post is more than 5 years old

427

April 30th, 2008 05:00

Linux RHEL4 & clariion CX-700 & LUN size

Hi.

I have a problem with Red Hat Enterprise Linux 4 and EMC CLARiiON CX-700.
HBA¿s ¿ emulex,
Server ¿ IBM x3950.
I have multipathd on host.
Configuration was made according to ¿Native Multipath Failover Based on DM-MPIO for
v2.6.x Linux Kernel and EMC® Storage Arrays¿


Here is my multipathd conf:

-------------------------------------------------
devnode_blacklist {
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 yes
}


devices {
## Device attributes requirements for EMC Symmetrix
## are part of the default definitions and do not require separate
## definition.
## Device attributes for EMC CLARiiON
device {
vendor "DGC "
product "*"
path_grouping_policy group_by_prio
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
prio_callout "/sbin/mpath_prio_emc /dev/%n"
path_checker emc_clariion
path_selector "round-robin 0"
features "1 queue_if_no_path"
no_path_retry 300
hardware_handler "1 emc"
failback immediate
}
}
-------------------------------------------------

Here is the sequence of my operations:

1. Add LUN in a Storage group (LUN size 1GB).

2. Scan hba¿s:
echo "- - -" > /sys/class/scsi_host/host2/scan
echo "- - -" > /sys/class/scsi_host/host3/scan


3. exec multipath ¿d -v2:

create: mpath24 (36006016031151c00c8598f400912dd11)
[size=1 GB][features="1 queue_if_no_path"][hwhandler="1 emc"]
\_ round-robin 0 [prio=4]
\_ 2:0:1:23 sdge 131:160 [ready]
\_ 2:0:2:23 sdgf 131:176 [ready]
\_ 3:0:0:23 sdgh 131:208 [ready]
\_ 3:0:1:23 sdgi 131:224 [ready]
\_ round-robin 0
\_ 2:0:0:23 sdgd 131:144 [ready]
\_ 2:0:3:23 sdgg 131:192 [ready]
\_ 3:0:2:23 sdgj 131:240 [ready]
\_ 3:0:3:23 sdgk 132:0 [ready]


4. Compare LUN UID on Storage System and on host, they are equal.

5. Work with LUN.

6. Unmount LUN on host, remove LUN from Storage Group.

7. exec multipath ¿F.

8. Add new LUN to same Storage Group (LUN size 5GB).

9. Rescan hba¿s.

10. exec multipath ¿d:

create: mpath26 (36006016031151c0058b6104b0912dd11)
[size=1 GB][features="1 queue_if_no_path"][hwhandler="1 emc"]
\_ round-robin 0 [prio=4]
\_ 2:0:1:23 sdge 131:160 [ready]
\_ 2:0:2:23 sdgf 131:176 [ready]
\_ 3:0:0:23 sdgh 131:208 [ready]
\_ 3:0:1:23 sdgi 131:224 [ready]
\_ round-robin 0
\_ 2:0:0:23 sdgd 131:144 [ready]
\_ 2:0:3:23 sdgg 131:192 [ready]
\_ 3:0:2:23 sdgj 131:240 [ready]
\_ 3:0:3:23 sdgk 132:0 [ready]

11. Сompare LUN UID on Storage System and on host, they are equal.

12. exec multipath -v2:

create: mpath26 (36006016031151c0058b6104b0912dd11)
[size=1 GB][features="1 queue_if_no_path"][hwhandler="1 emc"]
\_ round-robin 0 [prio=4]
\_ 2:0:1:23 sdge 131:160 [ready]
\_ 2:0:2:23 sdgf 131:176 [ready]
\_ 3:0:0:23 sdgh 131:208 [ready]
\_ 3:0:1:23 sdgi 131:224 [ready]
\_ round-robin 0
\_ 2:0:0:23 sdgd 131:144 [ready]
\_ 2:0:3:23 sdgg 131:192 [ready]
\_ 3:0:2:23 sdgj 131:240 [ready]
\_ 3:0:3:23 sdgk 132:0 [ready]

13. exec multipath -v2:
create: mpath26 (36006016031151c0058b6104b0912dd11)
[size=1 GB][features="1 queue_if_no_path"][hwhandler="1 emc"]
\_ round-robin 0 [prio=4]
\_ 2:0:1:23 sdge 131:160 [ready]
\_ 2:0:2:23 sdgf 131:176 [ready]
\_ 3:0:0:23 sdgh 131:208 [ready]
\_ 3:0:1:23 sdgi 131:224 [ready]
\_ round-robin 0
\_ 2:0:0:23 sdgd 131:144 [ready]
\_ 2:0:3:23 sdgg 131:192 [ready]
\_ 3:0:2:23 sdgj 131:240 [ready]
\_ 3:0:3:23 sdgk 132:0 [ready]


So I¿m getting a strange thing ¿ any LUN of any size which will be added after removing LUN with size 1GB will be seen as 1GB, although LUN UID on Storage system and on host are equal.
Can anyone help?

Thanks.

2 Intern

 • 

20.4K Posts

April 30th, 2008 06:00

i had the same issue when i was testing multipathd ..the only way i could get it to display correct size was to reboot the box. Also i had issue if i removed LUNs in the storage group ..somewhere in the middle of the list. For example i had luns 1-5 ..and if i remove lun 3 and run multipath ¿d, my mpath devices would shift causing volume group to go offline. Once again the only way i could fix it was to reboot. At that point i figured that i could take these many reboots just to reclaim disk ..even for test/qa boxes. So i gave up and bought PowerPath :(

2 Intern

 • 

2.8K Posts

April 30th, 2008 09:00

So i gave up and bought PowerPath :(


I love to hear good news ;-)
No Events found!

Top