Bug 755047 - Failure to dynamically add more disk space to a physical volume in RHEL6
Summary: Failure to dynamically add more disk space to a physical volume in RHEL6
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: lvm2-cluster
Version: 4
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: LVM and device-mapper development team
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-18 16:30 UTC by Vadim Grinco
Modified: 2012-03-22 12:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-22 12:12:45 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.