LVM volume copy/clear assumes volume_dd_blocksize is set to 1M
Bug #1192258 reported by
Eric Harney
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Huang Zhiteng |
Bug Description
The recent change to enable adjusting volume dd blocksize to sizes other than 1M does not adjust the "count" parameter of the dd command. Therefore, if you change volume_dd_blocksize to (for example) "1K", for a 1GB volume, only the first 1 MB of the volume will be copied/wiped.
The "count" parameter for dd needs to scale based on what the volume_dd_blocksize option is set to to ensure the whole volume is copied/wiped.
https:/
(Note: not tested, just observed while reading code. Feel free to correct if I'm missing something.)
Changed in cinder: | |
importance: | Undecided → High |
milestone: | none → havana-2 |
Changed in cinder: | |
status: | New → Confirmed |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-2 → 2013.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/33523
Review: https:/