Function multipath_resize_map return "invalid map name" when extending volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
Fix Released
|
Undecided
|
Rajat Dhasmana |
Bug Description
OS Version:
# rpm -qa |grep release
centos-
When extending volume, if multipath device exist, cmd "multipathd resize map mpath_id" is used to force the multipath daemon to update it's
size information a particular multipath device. But cmd "multipathd resize map mpath_id" returns "invalid map name".
Here is a test:
(1) Resize the physical device ## use whatever method your SAN uses to resize the physical device (My test volume:30G -->35G)
(2) Rescan sd device: echo 1 > /sys/bus/
(3) # blockdev --getsize64 /dev/disk/
32212254720
(4)# multipathd resize map 3500500d4315ac777
invalid map name
(5)# blockdev --getsize64 /dev/disk/
32212254720
(6)# multipathd resize map mpathduk
ok
(7)# blockdev --getsize64 /dev/disk/
37580963840
So, we should use mpath name insead of mpath id in function multipath_
Changed in os-brick: | |
assignee: | nobody → yuyafei (yu-yafei) |
tags: | added: extend multipath |
Changed in os-brick: | |
assignee: | nobody → Rajat Dhasmana (whoami-rajat) |
Unassigning due to no activity for > 6 months.