extend volume failed using cinder lvm driver

Bug #1240854 reported by ling-yun
This bug report is a duplicate of:  Bug #1240287: cinder : extend volume Error. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
In Progress
Undecided
ling-yun

Bug Description

1.The minimum unit of volume size is gigabytes(G) and the default operation unit of lvextend command is megabytes(M).
2.On a openstack env using cinder lvm driver, extend volume from 1G to 2G.
Fail infomartion as following:
1)volume status:error_extending
root@ubuntu-02:/var/log/cinder# cinder list
+--------------------------------------+-----------------+-------------------+------+-------------+----------+--------------------------------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------------+-------------------+------+-------------+----------+--------------------------------------+
| 98cc90d5-391d-46b0-8c47-e73b38544cd2 | in-use | test | 1 | None | false | 46451812-c59d-4fe4-8283-c270162389c7 |
| cd47bca4-1604-4f0e-8b62-38cc503616ba | error_extending | test_volume_owner | 1 | None | false | |
+--------------------------------------+-----------------+-------------------+------+-------------+----------+--------------------------------------+

2)according to cinder-volume log,it seemed that error happened in dismatch volume size.

2013-10-16 23:57:59.468 18303 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvextend -L 2 cinder-volumes/volume-cd47bca4-1604-4f0e-8b62-38cc503616ba
2013-10-16 23:57:59.468 18303 TRACE cinder.brick.local_dev.lvm Exit code: 3
2013-10-16 23:57:59.468 18303 TRACE cinder.brick.local_dev.lvm Stdout: ' Rounding up size to full physical extent 4.00 MiB\n'
2013-10-16 23:57:59.468 18303 TRACE cinder.brick.local_dev.lvm Stderr: " New size given (1 extents) not larger than existing size (256 extents)\n Run `lvextend --help' for more information.\n"
2013-10-16 23:57:59.468 18303 TRACE cinder.brick.local_dev.lvm

Revision history for this message
ling-yun (zengyunling) wrote :

Already how to fix this bug!

Changed in cinder:
assignee: nobody → ling-yun (zengyunling)
ling-yun (zengyunling)
Changed in cinder:
status: New → In Progress
Revision history for this message
zhangyanzi (zhangyanzi) wrote :

It's really a bug when extending volume using lvm driver.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/52590

Revision history for this message
John Griffith (john-griffith) wrote :

This is a duplicate of: https://bugs.launchpad.net/cinder/+bug/1240287

Which has been fixed already.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.