Bug 961532

Summary: [RFE] Update storage domain's LUNs sizes in DB after lun resize
Product: [Retired] oVirt Reporter: Dax Kelson <dkelson>
Component: ovirt-engine-coreAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acanan, acathrow, amureini, bazulay, derez, iheim, jkt, jplorier, mgoldboi, michele, scohen, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: ovirt-3.4.0-beta2 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1053890 (view as bug list) Environment:
Last Closed: 2014-03-31 15:04:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1053890    

Description Dax Kelson 2013-05-09 20:29:32 UTC
Description of problem:

I setup an iSCSI storage domain with a LUN that was too small. After I resized the LUN on the storage array, ovirt still saw the original size.

I got a command line on the node running spm, and tried running pvresize to no avail.

I ended up doing low level hacking by attaching to the VG group from another Linux box and running pvresize, then rebooting all my nodes.

This needs to be handled much more gracefully and from the UI.

Comment 1 Jiri Vitek 2013-09-17 16:29:06 UTC
This feature will be very welcome, i was asking on same in very first 3.0 release

Comment 2 Juan Pablo Lorier 2013-11-20 11:38:01 UTC
Hi,

Same situation. I need to enlarge my iscsi LUN, peace of cake by the linux side but had no solution from within ovirt.
I had set the SD to mantainance and back to active as suggested in the list, but it didn't work. Also tried force a SPM reelection as another suggested and it didn't work either.
I shouldn't be that hard to recheck the size of the SD once you re activate it (at least)

Comment 3 Ayal Baron 2013-11-21 13:35:16 UTC
(In reply to Juan Pablo Lorier from comment #2)
> Hi,
> 
> Same situation. I need to enlarge my iscsi LUN, peace of cake by the linux
> side but had no solution from within ovirt.
> I had set the SD to mantainance and back to active as suggested in the list,
> but it didn't work. Also tried force a SPM reelection as another suggested
> and it didn't work either.
> I shouldn't be that hard to recheck the size of the SD once you re activate
> it (at least)

Ack, we're already pulling the data from the spm when activating so it should just be a matter of updating the info in the db.
Daniel, let's track that change here.

Comment 4 Jiri Vitek 2013-11-21 15:41:22 UTC
please keep on mind features like netapp volume/lun autogrow

Comment 5 Daniel Erez 2014-01-01 14:15:08 UTC
According to the suggestion solution, added LUN device size synchronization as part of storage domain activation. I.e. when activating an iSCSI storage domain, device size mismatch is detected and updated accordingly in the DB.

Comment 6 Allon Mureinik 2014-01-13 17:03:40 UTC
In order to make the scope of this RFE clear, it only handles resizing a LUN that is part of storage domain.

Handling direct LUNs should be tracked in a different BZ.

Comment 7 Sandro Bonazzola 2014-02-07 11:20:02 UTC
Fixes should be in ovirt-3.4.0-beta2. Assignee please check.

Comment 8 Aharon Canan 2014-02-26 11:47:24 UTC
executed upstream , working fine
https://tcms.engineering.redhat.com/run/114786/

Comment 9 Sandro Bonazzola 2014-03-31 15:04:42 UTC
This is an automated message: moving to Closed CURRENT_RELEASE since oVirt 3.4.0 has been released.