Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Moving LVMs around
Date: Wed, 05 Dec 2007 16:41:57
Message-Id: 200712051628.29648.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Moving LVMs around by Albert Hopkins
1 On Wednesday 05 December 2007, Albert Hopkins wrote:
2 > On Wed, 2007-12-05 at 15:24 +0000, Mick wrote:
3 > > Hi All,
4 > >
5 > > Could you please hold my hand sorting some LVMs - I have no experience on
6 > > this and would not like to mess it up:
7 > >
8 > > I have create a PV which currently contains /dev/sda5. I have also
9 > > created a new PV which contains /dev/sdc1. I want to move /dev/sda5
10 > > (11.9G) to /dev/sdc1 (150G) and then remove /dev/sda5 from this OS and
11 > > later on from this machine. How should/could I go about it?
12 >
13 > 1. Back up your data!
14 > 2. Add /dev/sdc1 to the same VG as /dev/sda5 (vgextend)
15 > 3. pvmove -v /dev/sda5 /dev/sdc1
16 > 4. Wait a really long time
17 > 5. Verify nothing is on sda5 (pvdisplay /dev/sda5)
18 > 6. Deallocate sda5 (pvchange -x n /dev/sda5)
19 > 7. Remove sda5 from the VG (pvremove)
20
21 Life saver!
22
23 Question re. step 2: Does /dev/sdc1 *have* to be added (vgextend) to the same
24 VG_old as /dev/sda5, or could it be added (vgcreate) to a new VG_new?
25
26 Thanks!
27 --
28 Regards,
29 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Moving LVMs around Neil Bothwick <neil@××××××××××.uk>