quantal: pvmove on/from SSD corrupts data

Bug #1096847 reported by Arnd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

root@deimos:/mnt# uname -a
Linux deimos 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

When I set issue_discards = 1
in /etc/lvm/lvm.conf and
move an LV from or to my ssd* in the VG the LV is zeroed afterwards.
To clarify: everything else on the system and the ssd (including fstrim invocation on ext4) works flawlessly.
If I set issue_discards = 0 in /etc/lvm/lvm.conf everything works fine too.

root@deimos:/etc/lvm# mkfs.ext4 /dev/vgdeimos/testssd
mke2fs 1.42.5 (29-Jul-2012)
Dateisystem-Label=
OS-Typ: Linux
Blockgröße=4096 (log=2)
Fragmentgröße=4096 (log=2)
Stride=0 Blöcke, Stripebreite=0 Blöcke
131072 Inodes, 524288 Blöcke
26214 Blöcke (5.00%) reserviert für den Superuser
Erster Datenblock=0
Maximale Dateisystem-Blöcke=536870912
16 Blockgruppen
32768 Blöcke pro Gruppe, 32768 Fragmente pro Gruppe
8192 Inodes pro Gruppe
Superblock-Sicherungskopien gespeichert in den Blöcken:
 32768, 98304, 163840, 229376, 294912

Platz für Gruppentabellen wird angefordert: erledigt
Inode-Tabellen werden geschrieben: erledigt
Erstelle Journal (16384 Blöcke): erledigt
Schreibe Superblöcke und Dateisystem-Accountinginformationen: erledigt

root@deimos:/etc/lvm# pvmove -n testssd /dev/sde1 /dev/sda1
  /dev/sde1: Moved: 0,6%
  /dev/sde1: Moved: 50,6%
  /dev/sde1: Moved: 100,0%

root@deimos:/etc/lvm# hexdump /dev/vgdeimos/testssd
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
80000000

* Samsung SSD 840 PRO

Arnd (arnd-arndnet)
affects: ubuntu → lvm2 (Ubuntu)
Revision history for this message
Alasdair G. Kergon (agk2) wrote : Re: [Bug 1096847] [NEW] quantal: pvmove on/from SSD corrupts data

You don't give the lvm version, but it sounds like you might be
missing the patch for https://bugzilla.redhat.com/832392 .

Aladsair

Revision history for this message
Arnd (arnd-arndnet) wrote :

Yeah seems so.
As of now, quantal is missing the fix. Thanks

root@deimos:~# pvmove --version
  LVM version: 2.02.95(2) (2012-03-06)
  Library version: 1.02.74 (2012-03-06)
  Driver version: 4.22.0

root@deimos:~# dpkg -l lvm2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-============================-===================-===================-=============================================================
ii lvm2 2.02.95-4ubuntu1 amd64 Linux Logical Volume Manager

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.