Bug 755047

Summary: Failure to dynamically add more disk space to a physical volume in RHEL6
Product: [Retired] Red Hat Cluster Suite Reporter: Vadim Grinco <vgrinco>
Component: lvm2-clusterAssignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Cluster QE <mspqa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4CC: agk, ccaulfie, dwysocha, edamato, jbrassow, mbroz, prockai
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-22 12:12:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vadim Grinco 2011-11-18 16:30:07 UTC
Description of problem:
You can't dynamically re-size LVM physical volumes on RHEL6.

Version-Release number of selected component (if applicable):
lvm2-cluster-2.02.83-3.el6.x86_64
parted-2.1-13.el6.x86_64

How reproducible:
Always on a DS3512 storage connected to a HS22 blade using two FC paths.

Steps to Reproduce:
1. Add a couple of gigs to the logical volume exported by the storage
2. partprobe
3. pvresize /dev/mapper/clvm
  
Actual results:
Physical volume won't be resized although it will say:
  Physical volume "/dev/mapper/clvm" changed
  1 physical volume(s) resized / 0 physical volume(s) not resized

Expected results:
Re-size the physical volume and make the free disk space available in the VG.

Additional info:
To be able to see the changes you need to reboot the whole cluster. In case you reboot just one node it will have the logical volumes inactive after boot up. In a two node cluster this will cause node 2 to fence node 1, and vice versa infinitely before one will manually activate the LVs on both nodes.

Comment 1 Milan Broz 2011-11-18 17:18:56 UTC
I think that this is problem with underlying device size (pvresize just read size from kernel).

Will scsi rescan help?
Something like echo "- - -" > /sys/class/scsi_host/host$host/scan

Can you paste "lsblk -b" when you see this?

Comment 2 Milan Broz 2011-11-18 17:23:55 UTC
Ah, I this is multipath... this can help perhaps.

echo 1 > /sys/block/device_name/device/rescan 
multipathd -k'resize map <mpath>'

Comment 4 Milan Broz 2012-03-22 12:12:45 UTC
I hope comments above solved the problem, if not, please reopen and provide more info, thanks.