Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #204273

Re: SSD TRIM software raid (mdadm)

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Pascal Hambourg <pascal@plouf.fr.eu.org>
Newsgroups linux.debian.user
Subject Re: SSD TRIM software raid (mdadm)
Date Thu, 10 Jan 2019 01:00:01 +0100
Message-ID <xevVn-eX-11@gated-at.bofh.it> (permalink)
References <xetAd-7lH-5@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Wed Jan 9 23:52:04 2019
Old-Return-Path <pascal@plouf.fr.eu.org>
X-Amavis-Spam-Status No, score=-6.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
User-Agent Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Language en-US
Content-Transfer-Encoding 8bit
X-Mailing-List <debian-user@lists.debian.org> archive/latest/744245
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/d4f5feec-2f38-4b32-0845-99a6d1f59c03@plouf.fr.eu.org
Approved robomod@news.nic.it
Lines 27
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 10 Jan 2019 00:51:50 +0100
X-Original-Message-ID <d4f5feec-2f38-4b32-0845-99a6d1f59c03@plouf.fr.eu.org>
X-Original-References <ac584f57-2dec-e505-c44c-599d97a92ad8@unix-solution.de>
Xref csiph.com linux.debian.user:204273

Show key headers only | View raw


Le 09/01/2019 à 22:22, basti a écrit :
> I have create a software raid level 1 with mdadm.
> 
> One drive is a "classic" HDD.
> The 2'nd drive is a SSD with option "write-mostly".

Why did you flag the SSD as write-mostly ? I would have expected the 
opposite.

> Over the raid I have create and LVM with all the partitions (root,swap
> and qemu/KVM VM's).
> 
> When I understand mdadm the hole space is marked as used.

I don't understand what you mean.

> So my question is how useful is fstrim on /dev/mdx and would it relay
> trim the SSD?

RAID 1 supports TRIM since kernel 3.7. Since the HDD does not support 
TRIM, it will make discarded bloc contents inconsistent between the SSD 
and the HDD but it does not matter.

However you wrote that the RAID device is used by LVM, so you cannot run 
fstrim on it directly. You must enable TRIM/discard in LVM (see 
lvm.conf) and run fstrim on LVs which contain mounted filesystems 
supporting TRIM/discard.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

SSD TRIM software raid (mdadm) basti <mailinglist@unix-solution.de> - 2019-01-09 22:30 +0100
  Re: SSD TRIM software raid (mdadm) Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-01-10 01:00 +0100
    Re: SSD TRIM software raid (mdadm) basti <mailinglist@unix-solution.de> - 2019-01-10 10:50 +0100
  Re: SSD TRIM software raid (mdadm) David Christensen <dpchrist@holgerdanske.com> - 2019-01-10 03:50 +0100

csiph-web