Re: fstrim and Luks / dm-raid

2019-10-06 Thread rhkramer
On Sunday, October 06, 2019 04:32:36 AM Pascal Hambourg wrote: > Le 05/10/2019 à 21:12, Reco a écrit : > >>> The way I heard it, to trigger the corruption one should issue TRIM > >>> asynchronously *and* utilize NCQ for it. fstrim is synchronous. > >> > >> Asynchronous and synchronous to what ? >

Re: fstrim and Luks / dm-raid

2019-10-06 Thread Pascal Hambourg
Le 05/10/2019 à 21:12, Reco a écrit : The way I heard it, to trigger the corruption one should issue TRIM asynchronously *and* utilize NCQ for it. fstrim is synchronous. Asynchronous and synchronous to what ? To SSD's I/O queue. Can you explain what it means or provide any pointers ?

Re: fstrim and Luks / dm-raid

2019-10-05 Thread Reco
Hi. On Sat, Oct 05, 2019 at 11:12:06PM +0200, deloptes wrote: > Reco wrote: > > > Curious. I avoid RAID5/6 due to the old habit, but it's something that's > > good to go. > > But what do you use? RAID5 is most efficient for building large arrays - > what is the alternative? RAID10 if

Re: fstrim and Luks / dm-raid

2019-10-05 Thread deloptes
Reco wrote: > Curious. I avoid RAID5/6 due to the old habit, but it's something that's > good to go. But what do you use? RAID5 is most efficient for building large arrays - what is the alternative?

Re: fstrim and Luks / dm-raid

2019-10-05 Thread Reco
Hi. On Sat, Oct 05, 2019 at 09:09:21PM +0200, Pascal Hambourg wrote: > > > > It's safe only if your SSD firmware is sane and does not corrupt your > > > > data while processing TRIM with NCQ enabled. > > > > For instance, some noname Chinese SSD (ADATA, for instance) can corrupt > > > >

Re: fstrim and Luks / dm-raid

2019-10-05 Thread Pascal Hambourg
Le 05/10/2019 à 18:27, Reco a écrit : mdraid and dm-raid have discard disabled by default with RAID4/5/6 for safety reasons. One must pass the parameter devices_handle_discard_safely=Y to the module raid456 or dm-raid respectively to enable it. I want to make it clear that using this option

Re: fstrim and Luks / dm-raid

2019-10-05 Thread Reco
On Sat, Oct 05, 2019 at 06:14:24PM +0200, Pascal Hambourg wrote: > > > Is fstrim useful in suc a case ? > > > > It's disabled by default, but you can enable by setting > > "issue_discards=1" in lvm.conf, and by adding "discard" option to your > > crypttab. There's no SSD-specific mdraid

Re: fstrim and Luks / dm-raid

2019-10-05 Thread Pascal Hambourg
Le 05/10/2019 à 15:55, Reco a écrit : On Sat, Oct 05, 2019 at 02:52:55PM +0200, Erwan David wrote: I've got a computer with 3 SSD in RAID5 (dm-raid) containing a LUKS partition, then a lvm dm-raid (device-mapper) or mdraid (mdadm) ? Is fstrim useful in suc a case ? It's disabled by

Re: fstrim and Luks / dm-raid

2019-10-05 Thread Erwan David
Le 05/10/2019 à 15:55, Reco a écrit : > Hi. > > On Sat, Oct 05, 2019 at 02:52:55PM +0200, Erwan David wrote: >> I've got a computer with 3 SSD in RAID5 (dm-raid) containing a LUKS >> partition, then a lvm >> Is fstrim useful in suc a case ? > It's disabled by default, but you can enable by

Re: fstrim and Luks / dm-raid

2019-10-05 Thread Reco
Hi. On Sat, Oct 05, 2019 at 02:52:55PM +0200, Erwan David wrote: > I've got a computer with 3 SSD in RAID5 (dm-raid) containing a LUKS > partition, then a lvm > Is fstrim useful in suc a case ? It's disabled by default, but you can enable by setting "issue_discards=1" in lvm.conf, and

fstrim and Luks / dm-raid

2019-10-05 Thread Erwan David
Hi, I've got a computer with 3 SSD in RAID5 (dm-raid) containing a LUKS partition, then a lvm Is fstrim useful in suc a case ? Or on mylaptop without the raid, but with LUKS and LVM ? Should I add the discard option in fstab ? Or an equivalent in mdadm.conf or cryptsetup.conf ? Thanks