Gentoo Archives: gentoo-user

From: covici@××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
Date: Fri, 13 Apr 2012 15:14:35
Message-Id: 27071.1334329975@ccs.covici.com
In Reply to: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM. by William Kenworthy
1 William Kenworthy <billk@×××××××××.au> wrote:
2
3 > On Thu, 2012-04-12 at 22:58 +0300, Nikos Chantziaras wrote:
4 > > On 12/04/12 22:49, Dale wrote:
5 > > > Howdy,
6 > > >
7 > > > Well, it appears we got the init thingy working. I'm about ready to
8 > > > move things around since one of my drives is about full and I need a
9 > > > spare to move things around with. I use cp -a to copy things while
10 > > > booted from a USB stick do hicky. So far, that has always worked and is
11 > > > pretty fast. I do have a question tho.
12 > > >
13 > > > When I copy this over, do I still need to copy over null, console and
14 > > > such to /dev? I know I don't need everything in /dev but do recall
15 > > > needing those in the past. Has this changed since I'm using the init
16 > > > thingy? Am I forgetting one? I thought there was three.
17 > > >
18 > > > Anything else that could be a gotcha? I plan to move this twice. Once
19 > > > to the spare drive, repartition the OS drive then copy things back over
20 > > > again. It's been a while and with LVM about to be used, I hope it is
21 > > > the last time.
22 > >
23 > > Make sure this is really what you want. If *any* of the disks in the
24 > > LVM goes bad, you lose everything, not just the data on that single disk.
25 > >
26 > >
27 >
28 > Not necessarily so ... you can remove a failed drive and only lose the
29 > data on that drive - the data on the other drives is usually accessible.
30 > If a drive is in the process of failing you have more options to move
31 > the data to another drive. If you dont have lvm ... the data on that
32 > drive is toast anyway.
33 >
34 > Downside, is you have to be aware that you are using LVM and respond
35 > accordingly ... go at it the wrong way and it will be you who have lost
36 > the data (on the whole set of disks), not LVM. Non LVM is simpler, but
37 > the gain in flexibility offsets that enormously.
38 >
39 > I have used LVM for years now, and have had failed drives, failing
40 > drives and add/remove drives and have resized partitions quite a few
41 > times over that period - without losing everything. Yes, I have
42 > sometimes lost data on a drive before I could move it off ... but I look
43 > at it from the point of view that without LVM, I would not have had a
44 > chance to save what I did manage to get.
45 >
46
47 I had a bad drive, and I tried to use pvmove, but it stopped when it got
48 an error and would not tell me the file it had trouble with nor would
49 it move any data past that point -- is there a better way to recover
50 such data? I simply used the backup to get my data back, rather than
51 lvm.
52
53 --
54 Your life is like a penny. You're going to lose it. The question is:
55 How do
56 you spend it?
57
58 John Covici
59 covici@××××××××××.com

Replies

Subject Author
Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM. Alan McKinnon <alan.mckinnon@×××××.com>