You are not logged in.

#1 2011-06-16 09:28:00

drahnr
Member
Registered: 2011-03-14
Posts: 73

[SOLVED] SSD, luks, ext4, failing discard

I am using an SSD as my root disk (ext4) but unfortunatly it seems I am doing something wrong with it.

Info about my general setup:
SSD: OCZ Agility 3

fstab /dev/mapper/luks_speedy_root    /    ext4 defaults,noatime,discard 0 1

But dmesg spits this at me...

[  132.233441] EXT4-fs (dm-0): re-mounted. Opts: discard,commit=0
[  132.977911] EXT4-fs (dm-1): re-mounted. Opts: commit=0
[  132.983537] EXT4-fs (dm-3): re-mounted. Opts: commit=0
[  132.994849] EXT4-fs (dm-2): re-mounted. Opts: commit=0
[  132.998169] EXT4-fs (dm-4): re-mounted. Opts: commit=0
[  137.365117] EXT4-fs warning (device dm-0): release_blocks_on_commit:2679: discard not supported, disabling
[  149.508892] chromium-sandbo (2114): /proc/2112/oom_adj is deprecated, please use /proc/2112/oom_score_adj instead.
[  698.992307] EXT4-fs (dm-4): re-mounted. Opts: (null)
[  879.422121] EXT4-fs (dm-2): re-mounted. Opts: (null)
[ 1488.420395] gnome-settings-[1838]: segfault at 7f33961c5210 ip 00007f33961c5210 sp 00007fff88fd0728 error 14
[ 2156.081088] EXT4-fs (dm-0): re-mounted. Opts: discard,discard
[ 2161.335879] EXT4-fs warning (device dm-0): release_blocks_on_commit:2679: discard not supported, disabling

I am using MBR partition style aligned to 512 blocks (GPT is no option here)

Thanks for any help or tip to get it work properly

Last edited by drahnr (2011-06-16 09:52:26)

Offline

#2 2011-06-16 09:32:07

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [SOLVED] SSD, luks, ext4, failing discard

But remember that DISCARD/TRIM feature is NOT SUPPORTED by device-mapper (but they're working on it, see here)

source: https://wiki.archlinux.org/index.php/SS … _partition

Offline

#3 2011-06-16 09:34:10

drahnr
Member
Registered: 2011-03-14
Posts: 73

Re: [SOLVED] SSD, luks, ext4, failing discard

ouch! Missed that part...thanks :>

Offline

#4 2011-06-16 09:41:00

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: [SOLVED] SSD, luks, ext4, failing discard

please mark this as solved. thank you.

Offline

#5 2011-06-16 09:50:02

drahnr
Member
Registered: 2011-03-14
Posts: 73

Re: [SOLVED] SSD, luks, ext4, failing discard

This is quick walkthrough how to setup luks on a SSD as optimal as possbile at this time: http://www.saout.de/pipermail/dm-crypt/ … 00584.html

Last edited by drahnr (2011-06-16 09:50:15)

Offline

Board footer

Powered by FluxBB