Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Moving LVMs around
Date: Wed, 05 Dec 2007 15:55:04
Message-Id: 1196869534.31240.14.camel@localhost
In Reply to: [gentoo-user] Moving LVMs around by Mick
1 On Wed, 2007-12-05 at 15:24 +0000, Mick wrote:
2 > Hi All,
3 >
4 > Could you please hold my hand sorting some LVMs - I have no experience on this
5 > and would not like to mess it up:
6 >
7 > I have create a PV which currently contains /dev/sda5. I have also created a
8 > new PV which contains /dev/sdc1. I want to move /dev/sda5 (11.9G)
9 > to /dev/sdc1 (150G) and then remove /dev/sda5 from this OS and later on from
10 > this machine. How should/could I go about it?
11
12 1. Back up your data!
13 2. Add /dev/sdc1 to the same VG as /dev/sda5 (vgextend)
14 3. pvmove -v /dev/sda5 /dev/sdc1
15 4. Wait a really long time
16 5. Verify nothing is on sda5 (pvdisplay /dev/sda5)
17 6. Deallocate sda5 (pvchange -x n /dev/sda5)
18 7. Remove sda5 from the VG (pvremove)
19
20 --
21 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Moving LVMs around Mick <michaelkintzios@×××××.com>