Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel 4.0+ dmcrypt and disk corruption
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri May 08, 2015 6:29 pm    Post subject: kernel 4.0+ dmcrypt and disk corruption Reply with quote

Heads up !

Kernel 4.0+, dmcrypt == potential disk corruption ?

There currently seems to be an open issue of f2fs (?) and dmcrypt/cryptsetup, on SSD (only ?) that leads to filesystem corruption:

http://marc.info/?l=dm-devel&m=143051577322679&w=2

So make sure to create backups before upgrading

could be either issues in f2fs, dmcrypt or other parts of the kernel - or even specific SSD models
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2971
Location: Germany

PostPosted: Fri May 08, 2015 10:56 pm    Post subject: Reply with quote

You're the one who reported this? (4.0 has been out for a while, somehow I'd expect more noise for such an issue.)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri May 08, 2015 11:16 pm    Post subject: Reply with quote

Nope,

just stumbled over it on the mailing list while looking for regressions

I might upgrade to 4.0 or 4.1 within the next days or few weeks so looking in advance if there's any trouble (currently rather happy with 3.19.y)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2971
Location: Germany

PostPosted: Fri May 08, 2015 11:35 pm    Post subject: Reply with quote

kernelOfTruth wrote:
(currently rather happy with 3.19.y)


Same here, waiting with 4.x until at least 4.2 just in case something is checking for kernel version numbers and not able to handle 4.x yet.
Back to top
View user's profile Send private message
elxa
n00b
n00b


Joined: 15 Oct 2012
Posts: 18

PostPosted: Fri May 15, 2015 2:47 pm    Post subject: Reply with quote

I am running linux 4.0 on a dmcrypt encrypted ext4 rootfs (ssd, discards enabled) for more than 3 weeks and have never had any problem with it.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri May 15, 2015 4:47 pm    Post subject: Reply with quote

elxa wrote:
I am running linux 4.0 on a dmcrypt encrypted ext4 rootfs (ssd, discards enabled) for more than 3 weeks and have never had any problem with it.


then you're lucky :)

what SSD are you using ?


meanwhile it's already two on the mailing list that report these issues

disabling NCQ (queue_depth to 1) might help

the second report includes the SSD - which appears to be a somewhat exotic model (LiteOn + mSATA)

LiteOn LGT-256M6G


There also seem to have been changes to NCQ handling with 4.0+ and/or 4.1
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
elxa
n00b
n00b


Joined: 15 Oct 2012
Posts: 18

PostPosted: Fri May 15, 2015 4:48 pm    Post subject: Reply with quote

Samsung 830 256GB
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2971
Location: Germany

PostPosted: Fri May 15, 2015 4:54 pm    Post subject: Reply with quote

As for NCQ, I have disabled it in either case (libata.force=noncq). I get better performance from my HDD RAID without it (maybe WD Greens are bad at NCQ handling?) and at the same time I couldn't find a single downside.

Also my SSD brand (Crucial) is known to have issues with delayed trim which is a subfeature of NCQ, so its better to be rid of it.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun May 24, 2015 4:31 pm    Post subject: Reply with quote

frostschutz wrote:
As for NCQ, I have disabled it in either case (libata.force=noncq). I get better performance from my HDD RAID without it (maybe WD Greens are bad at NCQ handling?) and at the same time I couldn't find a single downside.

Also my SSD brand (Crucial) is known to have issues with delayed trim which is a subfeature of NCQ, so its better to be rid of it.


Sounds like a good move to do in general:

http://marc.info/?l=linux-kernel&m=143195981313563&w=2

The Thread on the Mailing List got updated and it turned out it was an issue with NCQ and the SSD
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum