All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: "Bryn M. Reeves" <bmr@redhat.com>
Cc: dm-devel@redhat.com, John Stoffel <john@stoffel.org>,
	Drew Hastings <dhastings@crucialwebhost.com>
Subject: Re: Possible bug in mirror target
Date: Wed, 13 Feb 2019 19:08:40 +0100	[thread overview]
Message-ID: <10b45aa5-58af-e198-aa77-30aedc998238@redhat.com> (raw)
In-Reply-To: <20190213150141.GC26740@localhost.localdomain>

Dne 13. 02. 19 v 16:01 Bryn M. Reeves napsal(a):
> On Wed, Feb 13, 2019 at 03:21:52PM +0100, Zdenek Kabelac wrote:
>> If you have this free space it's surely not a bad thing - but there
>> are many cases, you can get any free space - majority of filesystems
>> does not support shrinking - so the only 'free' space you can
>> get is by adding new storage to VG - again quite limiting factor.
> 
> Probably obvious to many, but if you find yourself in this situation
> using the Red Hat / Fedora default layout created by Anaconda, the
> easiest solution is normally to "steal" one extent from the auto-
> configured swap LV, and donate it to the mirror conversion:
> 
>    # swapoff -a
>    # lvresize -l -1 rhel/swap
>    # mkswap /dev/rhel/swap
>    # swapon -a
>    # lvchange -m1 ...
> 
> This will always work with the automatic layouts provided by those
> distros.

Just to further clear this - yeah - stealing 1 extent this way 'mostly' 
temporarily works, however for conversion to 'raid' - the rule should be, that 
log/metadata device for each leg should be co-located on the same physical 
device as the leg itself - clearly storing multiple or all metadata devices on 
1 physical device will not have required purpose - although as long as all 
devices do run correctly such setup will appear as usable (and user will 
actually not get any warning that setup is actually not very safe for device 
failure)

Regards,
Zdenek

  reply	other threads:[~2019-02-13 18:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-05  0:47 Possible bug in mirror target Drew Hastings
2019-02-05 10:03 ` Zdenek Kabelac
2019-02-10 21:58   ` John Stoffel
2019-02-12 15:02     ` Zdenek Kabelac
2019-02-12 22:36       ` John Stoffel
2019-02-13 14:21         ` Zdenek Kabelac
2019-02-13 15:01           ` Bryn M. Reeves
2019-02-13 18:08             ` Zdenek Kabelac [this message]
2019-02-14 10:23               ` Bryn M. Reeves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10b45aa5-58af-e198-aa77-30aedc998238@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=bmr@redhat.com \
    --cc=dhastings@crucialwebhost.com \
    --cc=dm-devel@redhat.com \
    --cc=john@stoffel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.