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


Groups > linux.debian.user > #229686

Re: Migrating LVM volumes to a new machine

From Michael Stone <mstone@debian.org>
Newsgroups linux.debian.user
Subject Re: Migrating LVM volumes to a new machine
Date 2020-12-12 01:00 +0100
Message-ID <Bl0ul-2Gj-3@gated-at.bofh.it> (permalink)
References <Bl0kF-2Cv-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Dec 11, 2020 at 11:46:46PM +0000, Mark Fletcher wrote:
>I would like to understand how to move a LVM VG from one machine to
>another, when the disk to be moved contains filesystems key to the
>source system. I have read section 13.6 of the LVM HOWTO which talks
>about moving VGs.
...
>I feel
>like I can't follow the instructions in the HOWTO because it wants me to
>unmount the file systems, export the LVs and so on, on the old machine
>before moving the disk, and I don't see how I can do that on a system
>that is expecting to use those file systems to operate.

you must have missed:
"vgexport/vgimport is not necessary to move drives from one system to 
another. It is an administrative policy tool to prevent access to 
volumes in the time it takes to move them."

Just move the disk and the lvm stuff will show up like normal. The only 
potential gotcha is if you used the same volume group names on both 
systems, then that would need to be resolved (by renaming one of them)

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


Thread

Migrating LVM volumes to a new machine Mark Fletcher <mark27q1@gmail.com> - 2020-12-12 00:50 +0100
  Re: Migrating LVM volumes to a new machine Michael Stone <mstone@debian.org> - 2020-12-12 01:00 +0100
    Re: Migrating LVM volumes to a new machine Mark Fletcher <mark27q1@gmail.com> - 2020-12-12 13:00 +0100
      Re: Migrating LVM volumes to a new machine Andy Smith <andy@strugglers.net> - 2020-12-12 13:40 +0100

csiph-web