** Also affects: lvm2 (Ubuntu Quantal)
   Importance: Undecided
       Status: New

** Description changed:

- Hi,
+ [Impact]
  
- pvmove can wipe the data when issue_discards is set to 1 in
- /etc/lvm/lvm.conf
+  * Setting issue_discards=1 in /etc/lvm.conf (non-default) results in data 
loss, if pvmove is performed
+ on a Logical Volume which is moved to or form an SSD or other block devices 
which supports discards
+  * As this bug *directly cause a loss of user data* this fix should be 
uploaded to quantal (lvm2 in precise is not effected, because it does not 
support the issue_discards option.
  
- This has been fixed in debian in the -5 upload.
+ [Test Case]
+ 
+  * Enable issue_discards=1 in /etc/lvm.conf
+  * Create a volumegroup with two physical volumes (at least one of these must 
support discards (e.g. an SSD)
+  * Create a test logical volume
+  * Create a filesystem on this logical volume
+  * With pvmove, move the underlying logical volume to the other physical 
volume
+ => experience Data loss (in my experiments the whole logical volume was 
zeroed, checked with hexdumd /dev/vgtest/lvtest)
+ 
+ [Regression Potential]
+ 
+  * The upstream fix is fairly self contained and separates discard and
+ move operations.
  
  The patches can be found at:
  
  https://lists.fedorahosted.org/pipermail/lvm2-commits/2012-June/000037.html
  https://lists.fedorahosted.org/pipermail/lvm2-commits/2012-June/000038.html
  https://lists.fedorahosted.org/pipermail/lvm2-commits/2012-June/000039.html
+ 
+ An SRU of just the upstream-*.patches from the -5 upload fix this bug.

** Changed in: lvm2 (Ubuntu Quantal)
       Status: New => Triaged

** Changed in: lvm2 (Ubuntu Quantal)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1082325

Title:
  pvmove wipes data when issue_discards=1 on SSD

To manage notifications about this bug go to:
https://bugs.launchpad.net/lvm2/+bug/1082325/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to