Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM: Removing 3 disks and replacing with 1
Date: Tue, 06 Mar 2012 19:15:23
Message-Id: 4F5661FA.3050605@binarywings.net
In Reply to: Re: [gentoo-user] LVM: Removing 3 disks and replacing with 1 by Michael Mol
1 Am 06.03.2012 19:47, schrieb Michael Mol:
2 > On Tue, Mar 6, 2012 at 1:34 PM, Stroller <stroller@××××××××××××××××××.uk> wrote:
3 >>
4 >> On 6 March 2012, at 17:25, Neil Bothwick wrote:
5 >>
6 >>> On Tue, 6 Mar 2012 16:32:56 +0000, Stroller wrote:
7 >>>
8 >>>>> … I initially want to replace the 3x1TBs with a single 3TB drive but
9 >>>>> i've never removed/replaced a drive in an LVM setup before. I think I
10 >>>>> understand how it is done, using pvmove …
11 >>>>
12 >>>> Or you could just format and mount the new drive and use `cp`.
13 >>>
14 >>> Thereby instantly removing the benefits of LVM and making it almost
15 >>> impossible to extend the space by adding another drive when needed.
16 >>
17 >> Uh, why not create a new volume group with the new disk?
18 >>
19
20 Nitpicking: No need for a new volume group, just a new PV. Using a
21 separate VG makes migration harder.
22
23 >> OP says he wants to *replace* the old disks.
24 >
25 > Makes a certain amount of sense. But it sounds like he found a tool
26 > (pvmove) to do what he needs to do, and trying to do more on top
27 > complicates things beyond what they need to be.
28 >
29 >
30 >>
31 >> Admittedly, I don't like the RAID0 nature of LVM, so my question probably did reflect that cynicism.
32 >
33 > I typically put LVM on top of RAID.
34 >
35 >
36
37 I guess the OP is running the JBOD nature ("linear" in LVM terms). Not
38 that it matters, really.
39
40 BTW: Am I the only one seeing a good opportunity for creating a backup
41 using the old disks? LVM snapshots would be perfect here, as long as the
42 old disks can be kept running.
43
44 Regards,
45 Florian Philipp

Attachments

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