Re: [opensuse-factory] /sbin/fstrim: /home: FITRIM ioctl failed: Operation not supported

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

 



On Tue, Feb 22, 2011 at 6:09 PM, Cristian Rodríguez
<crrodriguez@xxxxxxxxxxxx> wrote:
>  Hi:
>
>  I get the error message in $Subject if I try to use /sbin/fstrim on all
>  my filesystems BUT /boot which is the only one which is not encrypted.
>
>  How am I supposed to "trim" dm-crypt/LUKS volumes on an SSD device ?
>
> Thanks.

First, trim is a nicety, not a 100% requirement.  The FITRIM ioctl was
just introduced in 2.6.37 and it does NOT work in all environments.
ie. I don't think LVM / mdraid are supported either.  But they may
just silently drop the trim commands in the block stack.

The main solution prior to 2.6.37 was wiper.sh from the hdparm
package.  But it to had known limitations similar to those above.

As to your real question
I suspect that is a question you need to take to lkml or one of its
sub-mailing lists.

          linux-fsdevel@xxxxxxxxxxxxxxx,
          linux-ext4@xxxxxxxxxxxxxxx

I monitor the ext4 one and have not seen any discussion related to
trimming dm-crypt/LUKS protected volumes that I recall.

I also wonder if wiper.sh from hdparm would work with your
filesystems.  Trouble is a failure may cause major data loss.  I have
no idea of the odds, I'm just very nervous about unintentionally
trimming the wrong sectors.

Mark Lord is the maintainer of hdparm.  I've found him to be pretty
responsive to questions about wiper.sh, so if you can't tell from the
release notes, etc. I'd send him a email.

Greg
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux