Testing TRIM with hdparm on dm-crypt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everyone,

I'm trying to verify that TRIM is actually working on my dm-crypt (LUKS) encrypted LVM volume with the following layers:

  SSD (Crucial M4 128GB) -> LVM -> LUKS -> ext4

I followed the guide available at [1], which includes these steps:

 1) create a random-filled file, sync to disk
 2) fetch LBAs via 'hdparm --fibmap'
 3) pick one sector, raw-read contents with 'hdparm --read-sector'
 4) delete the file, sync to disk
 5) re-read the sector chosen above, verify it contains zeroes

Unfortunately I already get a zeroed sector in step three:

> $ hdparm --read-sector 271984 /dev/sdd
>
> /dev/sdd:
> reading sector 271984: succeeded
> 0000 0000 0000 0000 0000 0000 0000 0000
> 0000 0000 0000 0000 0000 0000 0000 0000
> 0000 0000 0000 0000 0000 0000 0000 0000
> 0000 0000 0000 0000 0000 0000 0000 0000
> (...)


Is there any LBA-calculation I must do because of the LVM layer?


Regards,

lynix



[1] http://techgage.com/article/enabling_and_testing_ssd_trim_support_under_linux/2
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux