From: David Teigland <teigland@redhat.com>
To: Zhiyong Ye <yezhiyong@bytedance.com>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] How to convert a single path to a multipath after using dm-multipath
Date: Tue, 11 Apr 2023 08:31:48 -0500 [thread overview]
Message-ID: <20230411133147.GB27598@redhat.com> (raw)
In-Reply-To: <ac0f39c8-932d-293a-b7aa-568532bda22a@bytedance.com>
On Tue, Apr 11, 2023 at 01:29:42PM +0800, Zhiyong Ye wrote:
> and lv on it. I then turn on the multipath function and merge the two paths
> into a new device (/dev/mapper/matha), and I get the following error when I
> execute the lvm command.
>
> # pvs
> WARNING: Not using device /dev/mapper/matha for PV
> HgL3xR-qTio-m75Q-nGAO-Un0U-8uHk-wHbH25.
> WARNING: PV HgL3xR-qTio-m75Q-nGAO-Un0U-8uHk-wHbH25 prefers device /dev/sda
> because device is used by LV.
> PV VG Fmt Attr PSize PFree
> /dev/sda is-he57e6mr4wemb19kgf8i lvm2 a-- 10.00t 9.98t
> May you please advise how one can convert the pv used by vg from sda to
> matha without affecting the current lv usage.
lvchange --refresh should refresh the active LV to use mpatha. To avoid
this, you might configure mpath on sda alone prior to adding the second
path.
Dave
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
next prev parent reply other threads:[~2023-04-11 13:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-11 5:29 [linux-lvm] How to convert a single path to a multipath after using dm-multipath Zhiyong Ye
2023-04-11 13:31 ` David Teigland [this message]
2023-04-12 9:16 ` Zhiyong Ye
2023-04-13 10:54 ` Giorgio Bersano
2023-04-14 3:48 ` Zhiyong Ye
2023-04-13 20:28 ` David Teigland
2023-04-14 3:55 ` Zhiyong Ye
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=20230411133147.GB27598@redhat.com \
--to=teigland@redhat.com \
--cc=linux-lvm@redhat.com \
--cc=yezhiyong@bytedance.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).