* Migration of disks within a clustered LVM2 volume group
@ 2025-02-25 12:01 SCOTT FIELDS
2025-02-25 16:48 ` David Teigland
0 siblings, 1 reply; 2+ messages in thread
From: SCOTT FIELDS @ 2025-02-25 12:01 UTC (permalink / raw)
To: lvm-devel@lists.linux.dev
It has been stated that mirroring is deprecated in clustered LVM2 configurations and currently unsupported.
To migrate a physical volume to a new physical volume requires the volume group to be brought into a non-clustered state to perform the migration. Afterwards, it can be brought back into a clustered state, post migration.
Is there any alternative, since doing so is disruptive twice, and counter to it being a clustered system.
Scott Fields
Kyndryl
Senior Lead SRE – BNSF
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Migration of disks within a clustered LVM2 volume group
2025-02-25 12:01 Migration of disks within a clustered LVM2 volume group SCOTT FIELDS
@ 2025-02-25 16:48 ` David Teigland
0 siblings, 0 replies; 2+ messages in thread
From: David Teigland @ 2025-02-25 16:48 UTC (permalink / raw)
To: SCOTT FIELDS; +Cc: lvm-devel@lists.linux.dev
On Tue, Feb 25, 2025 at 12:01:30PM +0000, SCOTT FIELDS wrote:
> It has been stated that mirroring is deprecated in clustered LVM2 configurations and currently unsupported.
>
> To migrate a physical volume to a new physical volume requires the volume group to be brought into a non-clustered state to perform the migration. Afterwards, it can be brought back into a clustered state, post migration.
>
> Is there any alternative, since doing so is disruptive twice, and counter to it being a clustered system.
Hi, you can move each LV that is using the given PV, e.g.
$ pvs
PV VG Fmt Attr PSize PFree
/dev/nvme0n1 vg lvm2 a-- 1020.00m 732.00m
/dev/nvme1n1 vg lvm2 a-- 1020.00m 1020.00m
/dev/nvme2n1 vg lvm2 a-- 1020.00m 988.00m
/dev/nvme3n1 vg lvm2 a-- 1020.00m 1020.00m
$ pvmove /dev/nvme2n1 /dev/nvme3n1
pvmove in a shared VG requires a named LV.
$ lvs -o+devices vg
LV VG Attr LSize Devices
lv vg -wi-a----- 64.00m /dev/nvme0n1(64),/dev/nvme2n1(0)
$ pvmove -n lv /dev/nvme2n1 /dev/nvme3n1
/dev/nvme2n1: Moved: 100.00%
$ lvs -o+devices vg
LV VG Attr LSize Devices
lv vg -wi-a----- 64.00m /dev/nvme0n1(64),/dev/nvme3n1(0)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-25 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 12:01 Migration of disks within a clustered LVM2 volume group SCOTT FIELDS
2025-02-25 16:48 ` David Teigland
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.