*** This bug is a duplicate of bug 1082325 ***
https://bugs.launchpad.net/bugs/1082325
Public bug reported:
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
** Affects: lvm2 (Ubuntu)
Importance: Undecided
Status: New
** Package changed: ubuntu => lvm2 (Ubuntu)
** This bug has been marked a duplicate of bug 1082325
pvmove wipes data when issue_discards=1 on SSD
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1096847
Title:
quantal: pvmove on/from SSD corrupts data
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1096847/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs