Thrashing the system buffer when deleting LVM volume
Bug #1312729 reported by
lirenke
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
lirenke |
Bug Description
When cinder begin to delete LVM volume, "dd" command would be called, then clear content and remove volume.
During clear volume, cinder check whether O_DIRECT is supported, and the below command be called:
"dd count=0 if=/dev/zero of=/dev/
But this command never be executed successfully because of "/dev/zero" and "iflag=direct".
So the extra_flags will be reset and the below cammand is :
"dd if=/dev/zero of=/dev/
The O_DIRECT flag lose. It may trash system buffer and make system unstable.
Changed in cinder: | |
assignee: | nobody → lirenke (lvhancy) |
To post a comment you must log in.
This is an issue that has been discussed several times before. At the moment the following solution was implemented: https:/ /blueprints. launchpad. net/cinder/ +spec/when- deleting- volume- dd-performance -- https:/ /review. openstack. org/74810
So, ionice is the method provided to reduce consuming the system's resources when doing the DD. I believe the reason that O_DIRECT is not being used for the following reason: http:// osdir.com/ ml/ubuntu- bugs/2012- 11/msg24054. html
Do you have a way to make sure that we don't have issues with O_DIRECT on ubuntu?