Function multipath_resize_map return "invalid map name" when extending volume

Bug #1609753 reported by Yafei Yu on 2016-08-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Undecided
Unassigned

Bug Description

OS Version:
# rpm -qa |grep release
centos-release-7-0.1406.el7.centos.2.4.x86_64

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/scsi/drivers/sd/device_id/rescan
(3) # blockdev --getsize64 /dev/disk/by-id/dm-uuid-mpath-3500500d4315ac777
32212254720
(4)# multipathd resize map 3500500d4315ac777
invalid map name
(5)# blockdev --getsize64 /dev/disk/by-id/dm-uuid-mpath-3500500d4315ac777
32212254720
(6)# multipathd resize map mpathduk
ok
(7)# blockdev --getsize64 /dev/disk/by-id/dm-uuid-mpath-3500500d4315ac777
37580963840

So, we should use mpath name insead of mpath id in function multipath_resize_map.

Yafei Yu (yu-yafei) on 2016-08-04
Changed in os-brick:
assignee: nobody → yuyafei (yu-yafei)

Unassigning due to no activity for > 6 months.

Changed in os-brick:
assignee: yuyafei (yu-yafei) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers