* [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
2012-04-12 19:49 [gentoo-user] About ready to move /usr, /var and /home to LVM Dale
@ 2012-04-12 19:58 ` Nikos Chantziaras
2012-04-12 20:09 ` Dale
` (2 more replies)
2012-04-12 21:04 ` [gentoo-user] " Florian Philipp
` (3 subsequent siblings)
4 siblings, 3 replies; 44+ messages in thread
From: Nikos Chantziaras @ 2012-04-12 19:58 UTC (permalink / raw
To: gentoo-user
On 12/04/12 22:49, Dale wrote:
> Howdy,
>
> Well, it appears we got the init thingy working. I'm about ready to
> move things around since one of my drives is about full and I need a
> spare to move things around with. I use cp -a to copy things while
> booted from a USB stick do hicky. So far, that has always worked and is
> pretty fast. I do have a question tho.
>
> When I copy this over, do I still need to copy over null, console and
> such to /dev? I know I don't need everything in /dev but do recall
> needing those in the past. Has this changed since I'm using the init
> thingy? Am I forgetting one? I thought there was three.
>
> Anything else that could be a gotcha? I plan to move this twice. Once
> to the spare drive, repartition the OS drive then copy things back over
> again. It's been a while and with LVM about to be used, I hope it is
> the last time.
Make sure this is really what you want. If *any* of the disks in the
LVM goes bad, you lose everything, not just the data on that single disk.
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
2012-04-12 19:58 ` [gentoo-user] " Nikos Chantziaras
@ 2012-04-12 20:09 ` Dale
2012-04-12 20:16 ` Michael Mol
2012-04-13 8:01 ` Paul Colquhoun
2012-04-13 9:58 ` William Kenworthy
2 siblings, 1 reply; 44+ messages in thread
From: Dale @ 2012-04-12 20:09 UTC (permalink / raw
To: gentoo-user
Nikos Chantziaras wrote:
> On 12/04/12 22:49, Dale wrote:
>> Howdy,
>>
>> Well, it appears we got the init thingy working. I'm about ready to
>> move things around since one of my drives is about full and I need a
>> spare to move things around with. I use cp -a to copy things while
>> booted from a USB stick do hicky. So far, that has always worked and is
>> pretty fast. I do have a question tho.
>>
>> When I copy this over, do I still need to copy over null, console and
>> such to /dev? I know I don't need everything in /dev but do recall
>> needing those in the past. Has this changed since I'm using the init
>> thingy? Am I forgetting one? I thought there was three.
>>
>> Anything else that could be a gotcha? I plan to move this twice. Once
>> to the spare drive, repartition the OS drive then copy things back over
>> again. It's been a while and with LVM about to be used, I hope it is
>> the last time.
>
> Make sure this is really what you want. If *any* of the disks in the
> LVM goes bad, you lose everything, not just the data on that single disk.
>
>
>
< dale goes to figure out a way around this one. >
Thanks for that. I hadn't thought about that. If I tie two drives
together, the file system spans both drives. One dies, the whole thing
is broken as you say. Makes sense.
< scratches chin > I think I can still make this work tho. Yea, I got
a idea. It wasn't my original plan but this should work. Sure glad you
mentioned that though. THANKS MUCH !!!
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
2012-04-12 20:09 ` Dale
@ 2012-04-12 20:16 ` Michael Mol
2012-04-12 21:19 ` Florian Philipp
0 siblings, 1 reply; 44+ messages in thread
From: Michael Mol @ 2012-04-12 20:16 UTC (permalink / raw
To: gentoo-user
On Thu, Apr 12, 2012 at 4:09 PM, Dale <rdalek1967@gmail.com> wrote:
> Nikos Chantziaras wrote:
>> On 12/04/12 22:49, Dale wrote:
>>> Howdy,
>>>
>>> Well, it appears we got the init thingy working. I'm about ready to
>>> move things around since one of my drives is about full and I need a
>>> spare to move things around with. I use cp -a to copy things while
>>> booted from a USB stick do hicky. So far, that has always worked and is
>>> pretty fast. I do have a question tho.
>>>
>>> When I copy this over, do I still need to copy over null, console and
>>> such to /dev? I know I don't need everything in /dev but do recall
>>> needing those in the past. Has this changed since I'm using the init
>>> thingy? Am I forgetting one? I thought there was three.
>>>
>>> Anything else that could be a gotcha? I plan to move this twice. Once
>>> to the spare drive, repartition the OS drive then copy things back over
>>> again. It's been a while and with LVM about to be used, I hope it is
>>> the last time.
>>
>> Make sure this is really what you want. If *any* of the disks in the
>> LVM goes bad, you lose everything, not just the data on that single disk.
>>
>>
>>
>
>
> < dale goes to figure out a way around this one. >
>
> Thanks for that. I hadn't thought about that. If I tie two drives
> together, the file system spans both drives. One dies, the whole thing
> is broken as you say. Makes sense.
>
> < scratches chin > I think I can still make this work tho. Yea, I got
> a idea. It wasn't my original plan but this should work. Sure glad you
> mentioned that though. THANKS MUCH !!!
This is why I do LVM on top of a RAID device.
--
:wq
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
2012-04-12 20:16 ` Michael Mol
@ 2012-04-12 21:19 ` Florian Philipp
2012-04-13 0:52 ` Dale
0 siblings, 1 reply; 44+ messages in thread
From: Florian Philipp @ 2012-04-12 21:19 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1419 bytes --]
Am 12.04.2012 22:16, schrieb Michael Mol:
> On Thu, Apr 12, 2012 at 4:09 PM, Dale <rdalek1967@gmail.com> wrote:
>> Nikos Chantziaras wrote:
>>> On 12/04/12 22:49, Dale wrote:
>>>> Howdy,
>>>>
>>>> Well, it appears we got the init thingy working. I'm about ready to
>>>> move things around since one of my drives is about full and I need a
>>>> spare to move things around with.
>>>>
[...]
>>>>
>>>> Anything else that could be a gotcha? I plan to move this twice. Once
>>>> to the spare drive, repartition the OS drive then copy things back over
>>>> again. It's been a while and with LVM about to be used, I hope it is
>>>> the last time.
>>>
>>> Make sure this is really what you want. If *any* of the disks in the
>>> LVM goes bad, you lose everything, not just the data on that single disk.
>>>
>>
>> < dale goes to figure out a way around this one. >
>>
>> Thanks for that. I hadn't thought about that. If I tie two drives
>> together, the file system spans both drives. One dies, the whole thing
>> is broken as you say. Makes sense.
>>
>> < scratches chin > I think I can still make this work tho. Yea, I got
>> a idea. It wasn't my original plan but this should work. Sure glad you
>> mentioned that though. THANKS MUCH !!!
>
> This is why I do LVM on top of a RAID device.
>
Or if you are short on disk space, you can also use LVM to mirror just
/home.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
2012-04-12 21:19 ` Florian Philipp
@ 2012-04-13 0:52 ` Dale
0 siblings, 0 replies; 44+ messages in thread
From: Dale @ 2012-04-13 0:52 UTC (permalink / raw
To: gentoo-user
Florian Philipp wrote:
> Am 12.04.2012 22:16, schrieb Michael Mol:
>> On Thu, Apr 12, 2012 at 4:09 PM, Dale <rdalek1967@gmail.com> wrote:
>>> Nikos Chantziaras wrote:
>>>> On 12/04/12 22:49, Dale wrote:
>>>>> Howdy,
>>>>>
>>>>> Well, it appears we got the init thingy working. I'm about ready to
>>>>> move things around since one of my drives is about full and I need a
>>>>> spare to move things around with.
>>>>>
> [...]
>>>>>
>>>>> Anything else that could be a gotcha? I plan to move this twice. Once
>>>>> to the spare drive, repartition the OS drive then copy things back over
>>>>> again. It's been a while and with LVM about to be used, I hope it is
>>>>> the last time.
>>>>
>>>> Make sure this is really what you want. If *any* of the disks in the
>>>> LVM goes bad, you lose everything, not just the data on that single disk.
>>>>
>>>
>>> < dale goes to figure out a way around this one. >
>>>
>>> Thanks for that. I hadn't thought about that. If I tie two drives
>>> together, the file system spans both drives. One dies, the whole thing
>>> is broken as you say. Makes sense.
>>>
>>> < scratches chin > I think I can still make this work tho. Yea, I got
>>> a idea. It wasn't my original plan but this should work. Sure glad you
>>> mentioned that though. THANKS MUCH !!!
>>
>> This is why I do LVM on top of a RAID device.
>>
>
> Or if you are short on disk space, you can also use LVM to mirror just
> /home.
>
I got backups of most important stuff but my almost full disk is videos.
LOTS of videos. I even found Gilligans Island. lol
Right now, I have a 160Gb which is for the OS itself, a 250Gb which is
what I plan to copy to and back from and a 750Gb for the videos. I plan
to buy a 2Tb or so drive as soon as I can. Buggers are pricey for me.
I want to get a good one since I have no way to back that up, yet. I
plan to later.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
2012-04-12 19:58 ` [gentoo-user] " Nikos Chantziaras
2012-04-12 20:09 ` Dale
@ 2012-04-13 8:01 ` Paul Colquhoun
2012-04-13 9:58 ` William Kenworthy
2 siblings, 0 replies; 44+ messages in thread
From: Paul Colquhoun @ 2012-04-13 8:01 UTC (permalink / raw
To: gentoo-user
On Thu, 12 Apr 2012 22:58:03 Nikos Chantziaras wrote:
> On 12/04/12 22:49, Dale wrote:
> > Howdy,
> >
> > Well, it appears we got the init thingy working. I'm about ready to
> > move things around since one of my drives is about full and I need a
> > spare to move things around with. I use cp -a to copy things while
> > booted from a USB stick do hicky. So far, that has always worked and is
> > pretty fast. I do have a question tho.
> >
> > When I copy this over, do I still need to copy over null, console and
> > such to /dev? I know I don't need everything in /dev but do recall
> > needing those in the past. Has this changed since I'm using the init
> > thingy? Am I forgetting one? I thought there was three.
> >
> > Anything else that could be a gotcha? I plan to move this twice. Once
> > to the spare drive, repartition the OS drive then copy things back over
> > again. It's been a while and with LVM about to be used, I hope it is
> > the last time.
>
> Make sure this is really what you want. If *any* of the disks in the
> LVM goes bad, you lose everything, not just the data on that single disk.
Actually, that is not necessarily true. When you create the logical volume
you can specify that it is mirrored onto multiple physical drives, assuming
you have enough space on more than one drive.
See the "-m, --mirrors Mirrors" option in 'man lvcreate'
--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Before you criticize someone, you should walk a mile in their shoes.
Then, when you do, you'll be a mile away, and you'll have their shoes.
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
2012-04-12 19:58 ` [gentoo-user] " Nikos Chantziaras
2012-04-12 20:09 ` Dale
2012-04-13 8:01 ` Paul Colquhoun
@ 2012-04-13 9:58 ` William Kenworthy
2012-04-13 15:12 ` covici
2 siblings, 1 reply; 44+ messages in thread
From: William Kenworthy @ 2012-04-13 9:58 UTC (permalink / raw
To: gentoo-user
On Thu, 2012-04-12 at 22:58 +0300, Nikos Chantziaras wrote:
> On 12/04/12 22:49, Dale wrote:
> > Howdy,
> >
> > Well, it appears we got the init thingy working. I'm about ready to
> > move things around since one of my drives is about full and I need a
> > spare to move things around with. I use cp -a to copy things while
> > booted from a USB stick do hicky. So far, that has always worked and is
> > pretty fast. I do have a question tho.
> >
> > When I copy this over, do I still need to copy over null, console and
> > such to /dev? I know I don't need everything in /dev but do recall
> > needing those in the past. Has this changed since I'm using the init
> > thingy? Am I forgetting one? I thought there was three.
> >
> > Anything else that could be a gotcha? I plan to move this twice. Once
> > to the spare drive, repartition the OS drive then copy things back over
> > again. It's been a while and with LVM about to be used, I hope it is
> > the last time.
>
> Make sure this is really what you want. If *any* of the disks in the
> LVM goes bad, you lose everything, not just the data on that single disk.
>
>
Not necessarily so ... you can remove a failed drive and only lose the
data on that drive - the data on the other drives is usually accessible.
If a drive is in the process of failing you have more options to move
the data to another drive. If you dont have lvm ... the data on that
drive is toast anyway.
Downside, is you have to be aware that you are using LVM and respond
accordingly ... go at it the wrong way and it will be you who have lost
the data (on the whole set of disks), not LVM. Non LVM is simpler, but
the gain in flexibility offsets that enormously.
I have used LVM for years now, and have had failed drives, failing
drives and add/remove drives and have resized partitions quite a few
times over that period - without losing everything. Yes, I have
sometimes lost data on a drive before I could move it off ... but I look
at it from the point of view that without LVM, I would not have had a
chance to save what I did manage to get.
BillK
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
2012-04-13 9:58 ` William Kenworthy
@ 2012-04-13 15:12 ` covici
2012-04-14 1:21 ` Alan McKinnon
0 siblings, 1 reply; 44+ messages in thread
From: covici @ 2012-04-13 15:12 UTC (permalink / raw
To: gentoo-user
William Kenworthy <billk@iinet.net.au> wrote:
> On Thu, 2012-04-12 at 22:58 +0300, Nikos Chantziaras wrote:
> > On 12/04/12 22:49, Dale wrote:
> > > Howdy,
> > >
> > > Well, it appears we got the init thingy working. I'm about ready to
> > > move things around since one of my drives is about full and I need a
> > > spare to move things around with. I use cp -a to copy things while
> > > booted from a USB stick do hicky. So far, that has always worked and is
> > > pretty fast. I do have a question tho.
> > >
> > > When I copy this over, do I still need to copy over null, console and
> > > such to /dev? I know I don't need everything in /dev but do recall
> > > needing those in the past. Has this changed since I'm using the init
> > > thingy? Am I forgetting one? I thought there was three.
> > >
> > > Anything else that could be a gotcha? I plan to move this twice. Once
> > > to the spare drive, repartition the OS drive then copy things back over
> > > again. It's been a while and with LVM about to be used, I hope it is
> > > the last time.
> >
> > Make sure this is really what you want. If *any* of the disks in the
> > LVM goes bad, you lose everything, not just the data on that single disk.
> >
> >
>
> Not necessarily so ... you can remove a failed drive and only lose the
> data on that drive - the data on the other drives is usually accessible.
> If a drive is in the process of failing you have more options to move
> the data to another drive. If you dont have lvm ... the data on that
> drive is toast anyway.
>
> Downside, is you have to be aware that you are using LVM and respond
> accordingly ... go at it the wrong way and it will be you who have lost
> the data (on the whole set of disks), not LVM. Non LVM is simpler, but
> the gain in flexibility offsets that enormously.
>
> I have used LVM for years now, and have had failed drives, failing
> drives and add/remove drives and have resized partitions quite a few
> times over that period - without losing everything. Yes, I have
> sometimes lost data on a drive before I could move it off ... but I look
> at it from the point of view that without LVM, I would not have had a
> chance to save what I did manage to get.
>
I had a bad drive, and I tried to use pvmove, but it stopped when it got
an error and would not tell me the file it had trouble with nor would
it move any data past that point -- is there a better way to recover
such data? I simply used the backup to get my data back, rather than
lvm.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
2012-04-13 15:12 ` covici
@ 2012-04-14 1:21 ` Alan McKinnon
0 siblings, 0 replies; 44+ messages in thread
From: Alan McKinnon @ 2012-04-14 1:21 UTC (permalink / raw
To: gentoo-user
On Fri, 13 Apr 2012 11:12:55 -0400
covici@ccs.covici.com wrote:
> I had a bad drive, and I tried to use pvmove, but it stopped when it
> got an error and would not tell me the file it had trouble with nor
> would it move any data past that point -- is there a better way to
> recover such data? I simply used the backup to get my data back,
> rather than lvm.
You can use an (expensive) data recovery expert.
What you ran into is a failing drive. You couldn't get the data off
because the drive didn't work, and that has nothing to do with LVM
whatsoever.
LVM is not a data security tool.
LVM is not a backup tool.
LVM does not cover your ass.
All that LVM does is make it easy to manipulate file system volumes,
and to easily make volumes larger than a single disk.
You still have to take all the same precautions to protect your data
that you have done without LVM.
--
Alan McKinnnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-12 19:49 [gentoo-user] About ready to move /usr, /var and /home to LVM Dale
2012-04-12 19:58 ` [gentoo-user] " Nikos Chantziaras
@ 2012-04-12 21:04 ` Florian Philipp
2012-04-13 0:56 ` Dale
2012-04-12 22:30 ` Neil Bothwick
` (2 subsequent siblings)
4 siblings, 1 reply; 44+ messages in thread
From: Florian Philipp @ 2012-04-12 21:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1389 bytes --]
Am 12.04.2012 21:49, schrieb Dale:
> Howdy,
>
> Well, it appears we got the init thingy working. I'm about ready to
> move things around since one of my drives is about full and I need a
> spare to move things around with. I use cp -a to copy things while
> booted from a USB stick do hicky. So far, that has always worked and is
> pretty fast. I do have a question tho.
>
> When I copy this over, do I still need to copy over null, console and
> such to /dev? I know I don't need everything in /dev but do recall
> needing those in the past. Has this changed since I'm using the init
> thingy? Am I forgetting one? I thought there was three.
>
So, you are not just moving /usr /var and /home but also the rest of
root? In that case it is best to do something like
mount --bind / /mnt/real_root
cp -a /mnt/real_root/* /mnt/new_root
mount --bind binds only the root file system, not any other or temporary
file systems mounted on top of it (like udev, /dev/pts, etc.). That
allows you to copy your static /dev file system (as created by untaring
the stage3).
> Anything else that could be a gotcha? I plan to move this twice. Once
> to the spare drive, repartition the OS drive then copy things back over
> again. It's been a while and with LVM about to be used, I hope it is
> the last time.
>
> Thanks.
>
> Dale
>
> :-) :-)
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-12 21:04 ` [gentoo-user] " Florian Philipp
@ 2012-04-13 0:56 ` Dale
0 siblings, 0 replies; 44+ messages in thread
From: Dale @ 2012-04-13 0:56 UTC (permalink / raw
To: gentoo-user
Florian Philipp wrote:
> Am 12.04.2012 21:49, schrieb Dale:
>> Howdy,
>>
>> Well, it appears we got the init thingy working. I'm about ready to
>> move things around since one of my drives is about full and I need a
>> spare to move things around with. I use cp -a to copy things while
>> booted from a USB stick do hicky. So far, that has always worked and is
>> pretty fast. I do have a question tho.
>>
>> When I copy this over, do I still need to copy over null, console and
>> such to /dev? I know I don't need everything in /dev but do recall
>> needing those in the past. Has this changed since I'm using the init
>> thingy? Am I forgetting one? I thought there was three.
>>
>
> So, you are not just moving /usr /var and /home but also the rest of
> root? In that case it is best to do something like
> mount --bind / /mnt/real_root
> cp -a /mnt/real_root/* /mnt/new_root
>
> mount --bind binds only the root file system, not any other or temporary
> file systems mounted on top of it (like udev, /dev/pts, etc.). That
> allows you to copy your static /dev file system (as created by untaring
> the stage3).
>
>> Anything else that could be a gotcha? I plan to move this twice. Once
>> to the spare drive, repartition the OS drive then copy things back over
>> again. It's been a while and with LVM about to be used, I hope it is
>> the last time.
>>
>> Thanks.
>>
>> Dale
>>
>> :-) :-)
>>
>
>
Right now I have this:
/
/boot
/home
/usr/portage
/var
I'm going to make a backup of /home before I do anything. Just in case.
I also plan to unmount my drive with the videos too.
Good idea. May give this a try. See what all I can break here in a
bit. lol
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-12 19:49 [gentoo-user] About ready to move /usr, /var and /home to LVM Dale
2012-04-12 19:58 ` [gentoo-user] " Nikos Chantziaras
2012-04-12 21:04 ` [gentoo-user] " Florian Philipp
@ 2012-04-12 22:30 ` Neil Bothwick
2012-04-13 0:58 ` Dale
2012-04-13 1:23 ` Dale
2012-04-13 14:51 ` Dale
4 siblings, 1 reply; 44+ messages in thread
From: Neil Bothwick @ 2012-04-12 22:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]
On Thu, 12 Apr 2012 14:49:10 -0500, Dale wrote:
> Anything else that could be a gotcha? I plan to move this twice. Once
> to the spare drive, repartition the OS drive then copy things back over
> again.
There's no need for the second copy. Create the VG on the spare drive and
copy everything over. Then you can reboot into the system. Now you can
remove the old partitions from the main drive and create a single PV in
the space freed (reboot after repartitioning to make sure you're using
the new partition table.
Then add the new PV to the VG you are using and use pvmove to transfer
everything from the spare drive to the main one. You can use the system
while doing this, so there is only half the downtime compared with doing
two copies.
--
Neil Bothwick
Some cause happiness wherever they go. Others whenever they go.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-12 22:30 ` Neil Bothwick
@ 2012-04-13 0:58 ` Dale
0 siblings, 0 replies; 44+ messages in thread
From: Dale @ 2012-04-13 0:58 UTC (permalink / raw
To: gentoo-user
Neil Bothwick wrote:
> On Thu, 12 Apr 2012 14:49:10 -0500, Dale wrote:
>
>> Anything else that could be a gotcha? I plan to move this twice. Once
>> to the spare drive, repartition the OS drive then copy things back over
>> again.
>
> There's no need for the second copy. Create the VG on the spare drive and
> copy everything over. Then you can reboot into the system. Now you can
> remove the old partitions from the main drive and create a single PV in
> the space freed (reboot after repartitioning to make sure you're using
> the new partition table.
>
> Then add the new PV to the VG you are using and use pvmove to transfer
> everything from the spare drive to the main one. You can use the system
> while doing this, so there is only half the downtime compared with doing
> two copies.
>
>
Florian has a good idea too. Dang, both of these sound good. Well, I
got to think on this one. ;-)
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-12 19:49 [gentoo-user] About ready to move /usr, /var and /home to LVM Dale
` (2 preceding siblings ...)
2012-04-12 22:30 ` Neil Bothwick
@ 2012-04-13 1:23 ` Dale
2012-04-13 4:52 ` Matthew Marlowe
2012-04-13 14:51 ` Dale
4 siblings, 1 reply; 44+ messages in thread
From: Dale @ 2012-04-13 1:23 UTC (permalink / raw
To: gentoo-user
Dale wrote:
> Howdy,
>
> Well, it appears we got the init thingy working. I'm about ready to
> move things around since one of my drives is about full and I need a
> spare to move things around with. I use cp -a to copy things while
> booted from a USB stick do hicky. So far, that has always worked and is
> pretty fast. I do have a question tho.
>
> When I copy this over, do I still need to copy over null, console and
> such to /dev? I know I don't need everything in /dev but do recall
> needing those in the past. Has this changed since I'm using the init
> thingy? Am I forgetting one? I thought there was three.
>
> Anything else that could be a gotcha? I plan to move this twice. Once
> to the spare drive, repartition the OS drive then copy things back over
> again. It's been a while and with LVM about to be used, I hope it is
> the last time.
>
> Thanks.
>
> Dale
>
> :-) :-)
>
One more question. Currently /usr is on / and that is the way it was
when I built the init thingy. Do I need to rebuild the init thingy so
that it knows /usr is on a separate partition and will mount it or will
it know that when it reboots?
Thanks again for all the help. Already headed off a couple problems.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-13 1:23 ` Dale
@ 2012-04-13 4:52 ` Matthew Marlowe
2012-04-13 15:21 ` Dale
0 siblings, 1 reply; 44+ messages in thread
From: Matthew Marlowe @ 2012-04-13 4:52 UTC (permalink / raw
To: gentoo-user
fyi, as someone who has played around quite a bit with most of the
ways to configure a home workstation, I find the best config currently
is:
Dedicated Fast Enterprise 2TB drive -> /, swap, and /boot (ext4)
Six 2TB Reliable SATA Drives in RAID10 -> /home (ext4 with appropriate
chunksize/etc)
Two 2TB Reliable SATA Drives in LVM VG -> /archive, other lvm volumes
I can afford to lose and may need to change sizes for.
No worrying about any bootup complications/initrd or seperate /usr or
/var on workstation, all the important personal data is on reliable
storage, lots of free space for big projects. Backups are on separate
disks from data.
Ext4 over RAID seem happier without lvm. Maybe a few years down the
road btrfs will be complete, I'll be able to switch to that.
Only complications of above is a) careful monitoring of boot disk, b)
with so many drives, chassis needs good air flow/power, and c) unless
/tmp or /var put on lvm, all gentoo compiles are limited by i/o of
boot disk (this isn't a problem for me now, but perhaps when I upgrade
to faster cpus with more cores..).
On Thu, Apr 12, 2012 at 6:23 PM, Dale <rdalek1967@gmail.com> wrote:
> Dale wrote:
>> Howdy,
>>
>> Well, it appears we got the init thingy working. I'm about ready to
>> move things around since one of my drives is about full and I need a
>> spare to move things around with. I use cp -a to copy things while
>> booted from a USB stick do hicky. So far, that has always worked and is
>> pretty fast. I do have a question tho.
>>
>> When I copy this over, do I still need to copy over null, console and
>> such to /dev? I know I don't need everything in /dev but do recall
>> needing those in the past. Has this changed since I'm using the init
>> thingy? Am I forgetting one? I thought there was three.
>>
>> Anything else that could be a gotcha? I plan to move this twice. Once
>> to the spare drive, repartition the OS drive then copy things back over
>> again. It's been a while and with LVM about to be used, I hope it is
>> the last time.
>>
>> Thanks.
>>
>> Dale
>>
>> :-) :-)
>>
>
>
> One more question. Currently /usr is on / and that is the way it was
> when I built the init thingy. Do I need to rebuild the init thingy so
> that it knows /usr is on a separate partition and will mount it or will
> it know that when it reboots?
>
> Thanks again for all the help. Already headed off a couple problems.
>
> Dale
>
> :-) :-)
>
> --
> I am only responsible for what I said ... Not for what you understood or
> how you interpreted my words!
>
> Miss the compile output? Hint:
> EMERGE_DEFAULT_OPTS="--quiet-build=n"
>
--
Matthew Marlowe
matt@professionalsysadmin.com
https://www.twitter.com/deploylinux
1-805-857-9144
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-13 4:52 ` Matthew Marlowe
@ 2012-04-13 15:21 ` Dale
0 siblings, 0 replies; 44+ messages in thread
From: Dale @ 2012-04-13 15:21 UTC (permalink / raw
To: gentoo-user
Matthew Marlowe wrote:
> fyi, as someone who has played around quite a bit with most of the
> ways to configure a home workstation, I find the best config currently
> is:
>
> Dedicated Fast Enterprise 2TB drive -> /, swap, and /boot (ext4)
> Six 2TB Reliable SATA Drives in RAID10 -> /home (ext4 with appropriate
> chunksize/etc)
> Two 2TB Reliable SATA Drives in LVM VG -> /archive, other lvm volumes
> I can afford to lose and may need to change sizes for.
>
> No worrying about any bootup complications/initrd or seperate /usr or
> /var on workstation, all the important personal data is on reliable
> storage, lots of free space for big projects. Backups are on separate
> disks from data.
> Ext4 over RAID seem happier without lvm. Maybe a few years down the
> road btrfs will be complete, I'll be able to switch to that.
>
> Only complications of above is a) careful monitoring of boot disk, b)
> with so many drives, chassis needs good air flow/power, and c) unless
> /tmp or /var put on lvm, all gentoo compiles are limited by i/o of
> boot disk (this isn't a problem for me now, but perhaps when I upgrade
> to faster cpus with more cores..).
>
That would work IF I could afford all those drives. Right now, I have
three and one of them was given to me by another Gentoo user. I did
find a security system that has a 500Gb drive that I may use. Videos on
a drive made for videos should work fine. lol
Also, I have a Cooler Master case with lots of fans, large ones too.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-12 19:49 [gentoo-user] About ready to move /usr, /var and /home to LVM Dale
` (3 preceding siblings ...)
2012-04-13 1:23 ` Dale
@ 2012-04-13 14:51 ` Dale
2012-04-13 20:35 ` Dale
2012-04-15 2:02 ` Peter Humphrey
4 siblings, 2 replies; 44+ messages in thread
From: Dale @ 2012-04-13 14:51 UTC (permalink / raw
To: gentoo-user
I have ran into a issue here. I copied everything over to sdb, my temp
drive. When I try to boot it, it still boots from sda which is the
primary drive. I can not get it to boot from the copy. I did update
the fstab file to point to the new sdb partitions, I use labels for that
and they have different names. I also edited grub and told it root was
sdb2. When I boot, everything mounted is sda.
I tried chrooting in and building a init thingy, still boots to sdb.
What gives here?
Name Flags Part TypeFS Type [Label] Size (MB)
-------------------------------------------------------------------
sdb1 Primary ext2 [boot-250g] 197.41
sdb2 Primary ext4 [root-250g] 74998.11
sdb5 Logical ext4 [home-250g] 50001.48
LABEL=boot-250g /boot ext2 defaults 1 2
LABEL=root-250g / ext4 defaults 0 1
LABEL=home-250g /home ext4 defaults 0 2
Those are from the copy. Here is grub:
title=Initramfs-new_drive
root (hd0,0)
kernel /bzImage-3.3.1-1 root=/dev/sdb2 init=/sbin/init nox
initrd /initramfs-3.3.1-1-tmp.img
I have done this in the past and it worked but not now. Is this the
init thingy mounting sda stuff and then Gentoo carries on from there?
If so, how do I tell the init thingy to point to sdb stuff?
Thoughts?
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-13 14:51 ` Dale
@ 2012-04-13 20:35 ` Dale
2012-04-13 21:19 ` Re[2]: " Stefan Schmiedl
2012-04-15 2:02 ` Peter Humphrey
1 sibling, 1 reply; 44+ messages in thread
From: Dale @ 2012-04-13 20:35 UTC (permalink / raw
To: gentoo-user
Dale wrote:
> I have ran into a issue here. I copied everything over to sdb, my temp
> drive. When I try to boot it, it still boots from sda which is the
> primary drive. I can not get it to boot from the copy. I did update
> the fstab file to point to the new sdb partitions, I use labels for that
> and they have different names. I also edited grub and told it root was
> sdb2. When I boot, everything mounted is sda.
>
> I tried chrooting in and building a init thingy, still boots to sdb.
>
> What gives here?
>
> Name Flags Part TypeFS Type [Label] Size (MB)
> -------------------------------------------------------------------
> sdb1 Primary ext2 [boot-250g] 197.41
> sdb2 Primary ext4 [root-250g] 74998.11
> sdb5 Logical ext4 [home-250g] 50001.48
>
>
>
> LABEL=boot-250g /boot ext2 defaults 1 2
> LABEL=root-250g / ext4 defaults 0 1
> LABEL=home-250g /home ext4 defaults 0 2
>
>
> Those are from the copy. Here is grub:
>
> title=Initramfs-new_drive
> root (hd0,0)
> kernel /bzImage-3.3.1-1 root=/dev/sdb2 init=/sbin/init nox
> initrd /initramfs-3.3.1-1-tmp.img
>
> I have done this in the past and it worked but not now. Is this the
> init thingy mounting sda stuff and then Gentoo carries on from there?
> If so, how do I tell the init thingy to point to sdb stuff?
>
> Thoughts?
>
> Dale
>
> :-) :-)
>
OK. I thought of something else to try. I created a new grub entry.
This is a plain entry with no init thingy at all. It looks like this:
title Gentoo no init tmp drive
kernel (hd0,0)/bzImage-3.3.1-1 root=/dev/sdb2 nox
Simple but it still boots the sda drive instead of the sdb drive. What
am I missing here? I looked in dmesg, the root=/dev/sdb2 line is in
there so grub passes it on.
This is weird. I need ideas folks. I'm running out of things to try.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re[2]: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-13 20:35 ` Dale
@ 2012-04-13 21:19 ` Stefan Schmiedl
2012-04-14 3:46 ` Dale
0 siblings, 1 reply; 44+ messages in thread
From: Stefan Schmiedl @ 2012-04-13 21:19 UTC (permalink / raw
To: Dale
Dale,
Friday, April 13, 2012, 10:35:43 PM, you wrote:
>> I have ran into a issue here. I copied everything over to sdb, my temp
>> drive. When I try to boot it, it still boots from sda which is the
>> primary drive. I can not get it to boot from the copy. I did update
>> the fstab file to point to the new sdb partitions, I use labels for that
>> and they have different names. I also edited grub and told it root was
>> sdb2. When I boot, everything mounted is sda.
>>
>> Those are from the copy. Here is grub:
>>
>> title=Initramfs-new_drive
>> root (hd0,0)
>> kernel /bzImage-3.3.1-1 root=/dev/sdb2 init=/sbin/init nox
>> initrd /initramfs-3.3.1-1-tmp.img
if you want to boot from /dev/sdb, why do you tell grub
to use (hd0,0), which usually maps to /dev/sda1?
I'd expect to see root (hd1,0) in there somewhere.
Depending on boot flags and BIOS settings, you might still
be using the MBR on /dev/sda.
When I migrated a client's data over to a new disk a while
ago, I basically used "tar cf - /sda | tar xf - -C /sdb" and
then switched SATA cables before rebooting. The former /dev/sdb
became /dev/sda and everything was fine.
s.
>>
>> I have done this in the past and it worked but not now. Is this the
>> init thingy mounting sda stuff and then Gentoo carries on from there?
>> If so, how do I tell the init thingy to point to sdb stuff?
>>
>> Thoughts?
>>
>> Dale
>>
>> :-) :-)
>>
D> OK. I thought of something else to try. I created a new grub entry.
D> This is a plain entry with no init thingy at all. It looks like this:
D> title Gentoo no init tmp drive
D> kernel (hd0,0)/bzImage-3.3.1-1 root=/dev/sdb2 nox
D> Simple but it still boots the sda drive instead of the sdb drive. What
D> am I missing here? I looked in dmesg, the root=/dev/sdb2 line is in
D> there so grub passes it on.
D> This is weird. I need ideas folks. I'm running out of things to try.
D> Dale
D> :-) :-)
--
Stefan Schmiedl
EDV-Beratung Schmiedl, Berghangstr. 5, D-93413 Cham
im Büro: 09971 9966 989, am Handy: 0160 9981 6278
"This is why Science and Mathematics are still much fun:
You discover things that seem impossible to be true
and then get to figure out why it's impossible for them not to be."
-- Vi Hart: Spirals, Fibonacci, and Being a Plant, Part 3
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-13 21:19 ` Re[2]: " Stefan Schmiedl
@ 2012-04-14 3:46 ` Dale
2012-04-14 6:19 ` Re[2]: " Stefan Schmiedl
0 siblings, 1 reply; 44+ messages in thread
From: Dale @ 2012-04-14 3:46 UTC (permalink / raw
To: gentoo-user
Stefan Schmiedl wrote:
> Dale,
>
> Friday, April 13, 2012, 10:35:43 PM, you wrote:
>
>>> I have ran into a issue here. I copied everything over to sdb, my temp
>>> drive. When I try to boot it, it still boots from sda which is the
>>> primary drive. I can not get it to boot from the copy. I did update
>>> the fstab file to point to the new sdb partitions, I use labels for that
>>> and they have different names. I also edited grub and told it root was
>>> sdb2. When I boot, everything mounted is sda.
>>>
>>> Those are from the copy. Here is grub:
>>>
>>> title=Initramfs-new_drive
>>> root (hd0,0)
>>> kernel /bzImage-3.3.1-1 root=/dev/sdb2 init=/sbin/init nox
>>> initrd /initramfs-3.3.1-1-tmp.img
>
> if you want to boot from /dev/sdb, why do you tell grub
> to use (hd0,0), which usually maps to /dev/sda1?
>
> I'd expect to see root (hd1,0) in there somewhere.
>
> Depending on boot flags and BIOS settings, you might still
> be using the MBR on /dev/sda.
>
> When I migrated a client's data over to a new disk a while
> ago, I basically used "tar cf - /sda | tar xf - -C /sdb" and
> then switched SATA cables before rebooting. The former /dev/sdb
> became /dev/sda and everything was fine.
>
> s.
>
>>>
>>> I have done this in the past and it worked but not now. Is this the
>>> init thingy mounting sda stuff and then Gentoo carries on from there?
>>> If so, how do I tell the init thingy to point to sdb stuff?
>>>
>>> Thoughts?
>>>
>>> Dale
>>>
>>> :-) :-)
>>>
>
>
> D> OK. I thought of something else to try. I created a new grub entry.
> D> This is a plain entry with no init thingy at all. It looks like this:
>
> D> title Gentoo no init tmp drive
> D> kernel (hd0,0)/bzImage-3.3.1-1 root=/dev/sdb2 nox
>
> D> Simple but it still boots the sda drive instead of the sdb drive. What
> D> am I missing here? I looked in dmesg, the root=/dev/sdb2 line is in
> D> there so grub passes it on.
>
> D> This is weird. I need ideas folks. I'm running out of things to try.
>
> D> Dale
>
> D> :-) :-)
I tried changing the root line and it still booted sda. Also, note that
I also tried a grub entry that doesn't even have a root line. It just
points directly to sdb.
From what I have always been told, the root line points to grub not the
root partition of the OS. Those are two different things. Correct me
if I am wrong here. That's the way I have always been told.
I'm using grub legacy here.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re[2]: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-14 3:46 ` Dale
@ 2012-04-14 6:19 ` Stefan Schmiedl
2012-04-14 10:38 ` Dale
0 siblings, 1 reply; 44+ messages in thread
From: Stefan Schmiedl @ 2012-04-14 6:19 UTC (permalink / raw
To: Dale
Dale,
Saturday, April 14, 2012, 5:46:44 AM, you wrote:
D> Stefan Schmiedl wrote:
>> I'd expect to see root (hd1,0) in there somewhere.
D> I tried changing the root line and it still booted sda. Also, note that
D> I also tried a grub entry that doesn't even have a root line. It just
D> points directly to sdb.
D>From what I have always been told, the root line points to grub not the
D> root partition of the OS. Those are two different things. Correct me
D> if I am wrong here. That's the way I have always been told.
That is correct, "root (hdx,y)" points to partition y on drive x, where
the kernel is to be found, i.e. the root path for the "kernel" line.
The kernel uses its root=/dev/whatever to set up the root for the linux
environment.
D> I'm using grub legacy here.
me too. And the last time I tried, changing the root line made grub boot
from the other disk. Have you tried editing this line in grub's editor
during boot?
s.
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-14 6:19 ` Re[2]: " Stefan Schmiedl
@ 2012-04-14 10:38 ` Dale
0 siblings, 0 replies; 44+ messages in thread
From: Dale @ 2012-04-14 10:38 UTC (permalink / raw
To: gentoo-user
Stefan Schmiedl wrote:
> Dale,
>
> Saturday, April 14, 2012, 5:46:44 AM, you wrote:
>
> D> Stefan Schmiedl wrote:
>>> I'd expect to see root (hd1,0) in there somewhere.
>
> D> I tried changing the root line and it still booted sda. Also, note that
> D> I also tried a grub entry that doesn't even have a root line. It just
> D> points directly to sdb.
>
> D>From what I have always been told, the root line points to grub not the
> D> root partition of the OS. Those are two different things. Correct me
> D> if I am wrong here. That's the way I have always been told.
>
> That is correct, "root (hdx,y)" points to partition y on drive x, where
> the kernel is to be found, i.e. the root path for the "kernel" line.
> The kernel uses its root=/dev/whatever to set up the root for the linux
> environment.
>
> D> I'm using grub legacy here.
>
> me too. And the last time I tried, changing the root line made grub boot
> from the other disk. Have you tried editing this line in grub's editor
> during boot?
>
> s.
>
>
>
Yep, it failed many times with a file not found error. I have a copy of
/boot there but it is just a copy of sda. In the past, I have had one
/boot and booted two different Gentoo OSs with no problem.
This is what I don't get, when I point the root=/dev/sda2, it should
point to that and load the fstab file there to mount the rest. For some
reason, it goes back to sda even when told not to.
This is confusing me. When grub is pointed to something, it should go
there and error out if it is not the correct one such as pointing to the
wrong partition.
This is weird.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-13 14:51 ` Dale
2012-04-13 20:35 ` Dale
@ 2012-04-15 2:02 ` Peter Humphrey
2012-04-15 5:16 ` Dale
2012-04-15 10:52 ` Alex Schuster
1 sibling, 2 replies; 44+ messages in thread
From: Peter Humphrey @ 2012-04-15 2:02 UTC (permalink / raw
To: gentoo-user
On Friday 13 April 2012 15:51:07 Dale wrote:
> Here is grub:
>
> title=Initramfs-new_drive
> root (hd0,0)
> kernel /bzImage-3.3.1-1 root=/dev/sdb2 init=/sbin/init nox
> initrd /initramfs-3.3.1-1-tmp.img
Your "init=" parameter points to (hd0,0)/sbin/init because of your "root
(hd0,0)" line. I think that's what you need to fix. It should say
"init=(hd1,0)/sbin/init" if I've read this thread aright.
> Is this the init thingy mounting sda stuff and then Gentoo carries on
> from there? If so, how do I tell the init thingy to point to sdb stuff?
By specifying "initrd (hd1,0)/initramfs-3.3.1-1-tmp.img"
I hope I've got this right - it's late at night here.
--
Rgds
Peter
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-15 2:02 ` Peter Humphrey
@ 2012-04-15 5:16 ` Dale
2012-04-15 9:26 ` pk
2012-04-15 9:27 ` pk
2012-04-15 10:52 ` Alex Schuster
1 sibling, 2 replies; 44+ messages in thread
From: Dale @ 2012-04-15 5:16 UTC (permalink / raw
To: gentoo-user
Peter Humphrey wrote:
> On Friday 13 April 2012 15:51:07 Dale wrote:
>
>> Here is grub:
>>
>> title=Initramfs-new_drive
>> root (hd0,0)
>> kernel /bzImage-3.3.1-1 root=/dev/sdb2 init=/sbin/init nox
>> initrd /initramfs-3.3.1-1-tmp.img
>
> Your "init=" parameter points to (hd0,0)/sbin/init because of your "root
> (hd0,0)" line. I think that's what you need to fix. It should say
> "init=(hd1,0)/sbin/init" if I've read this thread aright.
>
I have changed the root line to hd1,0 and it still boots sda. Other
settings result in a failure. It doesn't even try to boot.
>> Is this the init thingy mounting sda stuff and then Gentoo carries on
>> from there? If so, how do I tell the init thingy to point to sdb stuff?
>
> By specifying "initrd (hd1,0)/initramfs-3.3.1-1-tmp.img"
>
> I hope I've got this right - it's late at night here.
>
But the kernel I want to use is on sda1. The OS is on sdb tho.
I'm going to do this another way. I'm going to boot a stick thingy and
just copy it that way. It takes longer but at least it works. Someone
has borked grub tho. This worked just a few years ago. All I changed
back then was the root=/dev/sd** to whatever you want to boot. Now it
acts like it is hard coded to never change once booted. I just hope the
thing boots after I change things around.
May backup my packages first. ;-)
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-15 5:16 ` Dale
@ 2012-04-15 9:26 ` pk
2012-04-15 10:42 ` Dale
2012-04-15 9:27 ` pk
1 sibling, 1 reply; 44+ messages in thread
From: pk @ 2012-04-15 9:26 UTC (permalink / raw
To: gentoo-user
On 2012-04-15 07:16, Dale wrote:
> I have changed the root line to hd1,0 and it still boots sda. Other
> settings result in a failure. It doesn't even try to boot.
What does your 'device.map' file say the sdb drive is mapped to? You
usually find the 'device.map' file in /boot/grub for both grub1 and
grub2... not sure which one you use (haven't followed this thread, sorry).
> But the kernel I want to use is on sda1. The OS is on sdb tho.
Hm... did you mean to write 'sdb1' (your /boot partition as mentioned
earlier in the thread) or do you mean that you want to boot a kernel
located in sda1 and still use sdb1 as your /boot partition? I don't see
how the last part would work...
You need to tell grub where your / (root) partition are named (by grub
convention). You find out what hdX maps to what drive (sdX) through grub
or the 'device.map' file that should have been created when you set up grub.
HTH
Best regards
Peter K
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-15 9:26 ` pk
@ 2012-04-15 10:42 ` Dale
2012-04-15 13:52 ` pk
0 siblings, 1 reply; 44+ messages in thread
From: Dale @ 2012-04-15 10:42 UTC (permalink / raw
To: gentoo-user
OK. Just picking a random reply so this is not just for Peter K.
This opened a HUGE can of worms. I made CERTAIN I have backups of
things like /home and multiple backups of my .mozilla directory. After
that, I booted the USB stick thingy. It's the sysrescue one. Anyway.
I repartitioned sda to like I wanted, including putting all but / and
/boot on LVM. I did the usual file system creations and mounting. Then
transferred everything over. ALL that went well enough. Might I also
add, it is much faster on SATA. ;-) I edited fstab, grub.conf and all
that to look for the updated things. I had my ducks beak to tail.
Reboot.
Uh oh !!!! Crap hits the fan, BIG TIME. That thing is still looking
for the old partition sda3 for / just like when I was trying to boot off
the sdb drive. This thing had errors everywhere. The kernel loaded but
everything else failed, miserably. Heart sinks. Lots of chin
scratching. Then some banging head on wall. Then I booted the stick
thingy again. I had a brain fart. Who here remembers me saying I tried
to use the init thingy that the kernel builds itself and couldn't get it
to work? Let's see those hands please. Yea, that sucker was still
there. I forgot to remove it since it didn't work. < slaps forehead >
This explains a LOT of the problems I was having with dracut too.
Basically, dracut and the kernel built init thingy was duking it out
behind the scenes. We didn't know that.
My fix was to rebuild the kernel with the kernel built init thingy
disabled. I still got a couple errors tho but it did boot pretty well.
May have a new thread for that, if google don't help.
How's that for a head slapper?
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-15 10:42 ` Dale
@ 2012-04-15 13:52 ` pk
2012-04-15 15:15 ` Dale
0 siblings, 1 reply; 44+ messages in thread
From: pk @ 2012-04-15 13:52 UTC (permalink / raw
To: gentoo-user
On 2012-04-15 12:42, Dale wrote:
> Uh oh !!!! Crap hits the fan, BIG TIME. That thing is still looking
So the computer blew up? ;-)
> How's that for a head slapper?
A good one I'd say? ;-)
Glad you got it sorted.
Best regards
Peter K
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-15 13:52 ` pk
@ 2012-04-15 15:15 ` Dale
0 siblings, 0 replies; 44+ messages in thread
From: Dale @ 2012-04-15 15:15 UTC (permalink / raw
To: gentoo-user
pk wrote:
> On 2012-04-15 12:42, Dale wrote:
>
>> Uh oh !!!! Crap hits the fan, BIG TIME. That thing is still looking
>
> So the computer blew up? ;-)
I think it was my brain. If it was the puter, it would have been more
stuff. lol
>
>> How's that for a head slapper?
>
> A good one I'd say? ;-)
>
> Glad you got it sorted.
>
> Best regards
>
> Peter K
>
>
The funny thing is this, I was thinking about installing fresh. Just dd
the drive and start over. Guess what tho, I saved the kernel config.
It would likely have been looking for sda3 . . . again. Something would
have hit the fan then for sure. ROFL
Sure does explain a LOT tho. I bet that was some of the dracut issues
too. I don't plan to test the theory but bet it was.
Now to sort out the minor boot up errors.
Dale
:-) :-)
--
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!
Miss the compile output? Hint:
EMERGE_DEFAULT_OPTS="--quiet-build=n"
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-15 5:16 ` Dale
2012-04-15 9:26 ` pk
@ 2012-04-15 9:27 ` pk
1 sibling, 0 replies; 44+ messages in thread
From: pk @ 2012-04-15 9:27 UTC (permalink / raw
To: gentoo-user
On 2012-04-15 07:16, Dale wrote:
Here's some linkies for you:
Grub2:
https://www.gnu.org/software/grub/manual/html_node/Device-map.html
Grub1:
https://www.gnu.org/software/grub/manual/legacy/Device-map.html
Best regards
Peter K
^ permalink raw reply [flat|nested] 44+ messages in thread
* Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
2012-04-15 2:02 ` Peter Humphrey
2012-04-15 5:16 ` Dale
@ 2012-04-15 10:52 ` Alex Schuster
1 sibling, 0 replies; 44+ messages in thread
From: Alex Schuster @ 2012-04-15 10:52 UTC (permalink / raw
To: gentoo-user
Peter Humphrey writes:
> On Friday 13 April 2012 15:51:07 Dale wrote:
>
>> Here is grub:
>>
>> title=Initramfs-new_drive
>> root (hd0,0)
>> kernel /bzImage-3.3.1-1 root=/dev/sdb2 init=/sbin/init nox
>> initrd /initramfs-3.3.1-1-tmp.img
>
> Your "init=" parameter points to (hd0,0)/sbin/init because of your "root
> (hd0,0)" line. I think that's what you need to fix. It should say
> "init=(hd1,0)/sbin/init" if I've read this thread aright.
Hmmm, this can't be true. The (hdx,y) notation is a Grub thing, but
those kernel parameters go to the kernel who does not understand this
notation. That's why there is the root=/dev/sdb2 argument, instead of
root=(hd1,1). Once the kernel knows where the root partition is, other
file arguments are relative to this.
Wonko
^ permalink raw reply [flat|nested] 44+ messages in thread