linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] How to convert a single path to a multipath after using dm-multipath
@ 2023-04-11  5:29 Zhiyong Ye
  2023-04-11 13:31 ` David Teigland
  0 siblings, 1 reply; 7+ messages in thread
From: Zhiyong Ye @ 2023-04-11  5:29 UTC (permalink / raw)
  To: LVM general discussion and development

Dear all,

Dm-multipath (multipath-tools in the user-space) provides powerful 
multipathing capabilities to aggregate multiple paths from the same 
storage backend into a single disk device. However, it is difficult to 
extend single paths into multipaths when LVM is already in use.

I used two physical machines to set up the POC environment for testing, 
with one physical machine acting as the storage iscsi multipath server, 
setting up the same LUN to have two paths to access. Another physical 
machine acts as the iscsi client, first using a single path (/dev/sda) 
and creating vg 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


To be able to use the multipathing capability, I tried to convert the 
device from pv to matha using vgimportclone, but it failed since both 
sda and matha were pointing to the same iscsi storage backend.

May you please advise how one can convert the pv used by vg from sda to 
matha without affecting the current lv usage.

Regards

Zhiyong

_______________________________________________
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/


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-04-14  6:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).