Change in vdsm[master]: hsm: Report info needed for refreshing devices

danken at redhat.com danken at redhat.com
Thu Apr 23 16:24:45 UTC 2015


Dan Kenigsberg has submitted this change and it was merged.

Change subject: hsm: Report info needed for refreshing devices
......................................................................


hsm: Report info needed for refreshing devices

One of the way to increase the size of a Storage Domain
is to increase the LUN size on the storage server.

Devices that were resized on the storage server need to be
resized also on the host.

When GetDeviceList is called, a multipath rescan occurs.
Therefore the underlying paths are refreshed.
However, the PV still have the previous size.
The devices needed to be refreshed can be discovered
by comparing the path capacity and the PV size.

The following fields are added to GetDevicelist:
Capacity of path in the path status section, and size of PV.

See output with the additional fields:

{'GUID': '36001405bab880a35fc349e183390eb8e',
  'capacity': '24696061952',
  'devtype': 'iSCSI',
  'fwrev': '4.0',
  'logicalblocksize': '512',
  'pathlist': [{'connection': '10.35.0.174',
                'initiatorname': 'default',
                'iqn': 'iqn.2015-01.com.rhevuser:444',
                'port': '3260',
                'portal': '1'}],
  'pathstatus': [{'capacity': '24696061952',
                  'lun': '0',
                  'physdev': 'sda',
                  'state': 'active',
                  'type': 'iSCSI'}],
  'physicalblocksize': '512',
  'productID': 'block_backend_l',
  'pvUUID': '07QE9o-UoSl-v8NP-JTkV-nE3F-nI7x-RgsoQM',
  'pvsize': '24293408768',
  'serial': 'SLIO-ORG__bab880a3-5fc3-49e1-8339-0eb8e882dc16',
  'status': 'used',
  'vendorID': 'LIO-ORG',
  'vgUUID': 'hRpSR4-NTBV-z3Ki-K1N6-llGQ-en24-GGVf8Y'}

Relates-To: https://bugzilla.redhat.com/609689
Change-Id: Icfa5cf4321202362f5a00dad7c9a0347ba52ec71
Signed-off-by: Fred Rolland <frolland at redhat.com>
Reviewed-on: https://gerrit.ovirt.org/38675
Reviewed-by: Nir Soffer <nsoffer at redhat.com>
Reviewed-by: Adam Litke <alitke at redhat.com>
---
M vdsm/rpc/vdsmapi-schema.json
M vdsm/storage/hsm.py
M vdsm/storage/multipath.py
3 files changed, 13 insertions(+), 2 deletions(-)

Approvals:
  Adam Litke: Looks good to me, approved
  Nir Soffer: Looks good to me, but someone else must approve
  Freddy Rolland: Verified



-- 
To view, visit https://gerrit.ovirt.org/38675
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icfa5cf4321202362f5a00dad7c9a0347ba52ec71
Gerrit-PatchSet: 8
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Freddy Rolland <frolland at redhat.com>
Gerrit-Reviewer: Adam Litke <alitke at redhat.com>
Gerrit-Reviewer: Ala Hino <ahino at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Candace Sheremeta <cshereme at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Fred Rolland <frolland at redhat.com>
Gerrit-Reviewer: Freddy Rolland <frolland at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server


More information about the vdsm-patches mailing list