Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-26 Thread Samuel Sieb
On 11/26/20 12:00 AM, Sreyan Chakravarty wrote: On Thu, Nov 26, 2020 at 1:22 PM Samuel Sieb > wrote: No, it's working.  "fstrim" is run automatically as well. See "systemctl status fstrim.timer" Does issue_discards need to be set in lvm.conf ? Probably not, sin

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-26 Thread Sreyan Chakravarty
On Thu, Nov 26, 2020 at 1:22 PM Samuel Sieb wrote: > No, it's working. "fstrim" is run automatically as well. > See "systemctl status fstrim.timer" > Does issue_discards need to be set in lvm.conf ? -- Regards, Sreyan Chakravarty ___ users mailing li

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Samuel Sieb
On 11/25/20 11:37 PM, Sreyan Chakravarty wrote: On Thu, Nov 26, 2020 at 1:04 AM Samuel Sieb > wrote: Your original post was using the thick LV which doesn't support it. You need to try it again now that you have a thin LV that does Using fstrim now gives th

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Sreyan Chakravarty
On Thu, Nov 26, 2020 at 1:04 AM Samuel Sieb wrote: > > Your original post was using the thick LV which doesn't support it. You > need to try it again now that you have a thin LV that does > Using fstrim now gives the output: $ fstrim -v / /: 584.8 GiB (627935141888 bytes) trimmed Do I have to

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Samuel Sieb
On 11/25/20 10:34 AM, Sreyan Chakravarty wrote: Well if you read my original post you will see that I included:  fstrim -v / still fails with :                  fstrim: /: the discard operation is not supported Your original post was using the thick LV which doesn't support it. You need t

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Sreyan Chakravarty
On Wed, Nov 25, 2020 at 11:27 PM Chris Murphy wrote: > You don't have to enable anything. The fstrim.timer his enabled by default > and runs fstrim.service once per week. > > That command will issue fstrim on all mounted file systems listed in > fstab. It has no effect on HDD, or conventional "th

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Sreyan Chakravarty
On Wed, Nov 25, 2020 at 11:31 PM Ed Greshko wrote: > > > Well, reading the link I sent suggests that the file system supports it. > > Do you get the same error when you use the fstrim command from the command > line? The > format being... > > fstrim [-Aa] [-o offset] [-l length] [-m minimum-size

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Ed Greshko
On 26/11/2020 00:35, Sreyan Chakravarty wrote: On Wed, Nov 25, 2020 at 2:48 PM Ed Greshko mailto:ed.gres...@greshko.com>> wrote: The difference here is the "thin-provisioned" lvm.  In this case the Trim/Discard isn't being used to extend or improve the performance of the underlying h

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Chris Murphy
You don't have to enable anything. The fstrim.timer his enabled by default and runs fstrim.service once per week. That command will issue fstrim on all mounted file systems listed in fstab. It has no effect on HDD, or conventional "thick" lvm. But it does have an effect on thin volumes, it will re

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Sreyan Chakravarty
On Wed, Nov 25, 2020 at 2:48 PM Ed Greshko wrote: > > The difference here is the "thin-provisioned" lvm. In this case the > Trim/Discard isn't being used > to extend or improve the performance of the underlying hardware. It is > being used to free/return > unused blocks to the "pool". > The qu

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Ed Greshko
On 25/11/2020 16:44, Sreyan Chakravarty wrote: On Mon, Nov 23, 2020 at 3:07 PM Ed Greshko mailto:ed.gres...@greshko.com>> wrote: Ahhh, never mind.  It may be useful/supported with thin LV. I am completely confused. Are you sure TRIM and DISCARD are needed for normal HDDs ? because wha

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-25 Thread Sreyan Chakravarty
On Mon, Nov 23, 2020 at 3:07 PM Ed Greshko wrote: > > Ahhh, never mind. It may be useful/supported with thin LV. > I am completely confused. Are you sure TRIM and DISCARD are needed for normal HDDs ? because whatever I find on the internet says that I should use that when I have a SSD. -- R

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-23 Thread Ed Greshko
On 23/11/2020 19:23, Sreyan Chakravarty wrote: On Mon, 23 Nov 2020, 3:07 pm Ed Greshko, mailto:ed.gres...@greshko.com>> wrote: Ahhh, never mind.  It may be useful/supported with thin LV. Can someone tell me why these commands are useful ? Does thin LVMs have problems deleting data?

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-23 Thread Sreyan Chakravarty
On Mon, 23 Nov 2020, 3:07 pm Ed Greshko, wrote: > > > Ahhh, never mind. It may be useful/supported with thin LV. > Can someone tell me why these commands are useful ? Does thin LVMs have problems deleting data? > ___ users mailing list -- users@lis

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-23 Thread Ed Greshko
On 23/11/2020 17:25, Ed Greshko wrote: Do you think that last statement may be a bit confusing if he only has a HDD? Ahhh, never mind.  It may be useful/supported with thin LV. --- The key to getting good answers is to ask good questions. ___ users m

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-23 Thread Ed Greshko
On 23/11/2020 16:47, Samuel Sieb wrote: On 11/23/20 12:07 AM, Sreyan Chakravarty wrote: I am confused about whether I should use TRIM or DISCARD on my laptop. I use LVM on top of LUKS and I do make frequent use of snapshots. Merging them to my root volume. I have a regular HDD and not a SSD.

Re: Is TRIM or DISCARD needed for regular HDDs

2020-11-23 Thread Samuel Sieb
On 11/23/20 12:07 AM, Sreyan Chakravarty wrote: I am confused about whether I should use TRIM or DISCARD on my laptop. I use LVM on top of LUKS and I do make frequent use of snapshots. Merging them to my root volume. I have a regular HDD and not a SSD. Will enabling TRIM and DISCARD help me?

Is TRIM or DISCARD needed for regular HDDs

2020-11-23 Thread Sreyan Chakravarty
Hi, I am confused about whether I should use TRIM or DISCARD on my laptop. I use LVM on top of LUKS and I do make frequent use of snapshots. Merging them to my root volume. I have a regular HDD and not a SSD. Will enabling TRIM and DISCARD help me? If so, how do I do that ? I have already trie