Gentoo Archives: gentoo-user

From: Joost Roeleveld <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM and LABELS in fstab
Date: Thu, 17 Nov 2011 13:39:44
Message-Id: 20658511.W26GOVazJC@eve
In Reply to: Re: [gentoo-user] LVM and LABELS in fstab by Florian Philipp
1 On Thursday, November 17, 2011 10:43:28 AM Florian Philipp wrote:
2 > Am 17.11.2011 07:50, schrieb Dale:
3 > [...]
4 >
5 > > One more question. I have two drives. A 250Gb and a 750Gb. Originally
6 > > the data was on the 750Gb drive. I set the 250Gb up on LVM then moved
7 > > things over from the 750Gb. I then added the 750Gb to the VG and
8 > > resized the file system. So, in theory the data is on the 250Gb drive.
9 > > Let's say I want to remove the 250Gb drive. I would use pvmove to do
10 > > that right? When I ran pvmove /dev/sdb, which is the 250Gb drive, then
11 > > it would remove all the data from that drive so that it could be
12 > > removed. Am I close?
13 > >
14 > > I'm not planning to do that but just wanting to get a better
15 > > understanding of this LVM thing.
16 > >
17 > > Dale
18 >
19 > Yes, that is correct. It moves the data by mirroring it temporarily on
20 > the new location before updating the metadata so that only the new
21 > location is used. Therefore you can safely reboot or abort operations.
22
23 Also, this will only work if the VG has sufficient unused space (eg. not used
24 by LVs) on the other disk(s) to accomodate the data moved.
25
26 --
27 Joost

Replies

Subject Author
Re: [gentoo-user] LVM and LABELS in fstab Dale <rdalek1967@×××××.com>