Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
About ready to move /usr, /var and /home to LVM.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 44 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dale  
View profile  
 More options Apr 12 2012, 4:00 pm
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Thu, 12 Apr 2012 22:00:02 +0200
Local: Thurs, Apr 12 2012 4:00 pm
Subject: [gentoo-user] About ready to move /usr, /var and /home to LVM.
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

:-)  :-)

--
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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikos Chantziaras  
View profile  
 More options Apr 12 2012, 4:10 pm
Newsgroups: linux.gentoo.user
From: Nikos Chantziaras <rea...@gmail.com>
Date: Thu, 12 Apr 2012 22:10:02 +0200
Local: Thurs, Apr 12 2012 4:10 pm
Subject: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
On 12/04/12 22:49, Dale wrote:

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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 12 2012, 4:20 pm
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Thu, 12 Apr 2012 22:20:02 +0200
Local: Thurs, Apr 12 2012 4:20 pm
Subject: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.

< 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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Mol  
View profile  
 More options Apr 12 2012, 4:30 pm
Newsgroups: linux.gentoo.user
From: Michael Mol <mike...@gmail.com>
Date: Thu, 12 Apr 2012 22:30:02 +0200
Local: Thurs, Apr 12 2012 4:30 pm
Subject: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.

This is why I do LVM on top of a RAID device.

--
:wq


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Philipp  
View profile  
 More options Apr 12 2012, 5:10 pm
Newsgroups: linux.gentoo.user
From: Florian Philipp <li...@binarywings.net>
Date: Thu, 12 Apr 2012 23:10:03 +0200
Local: Thurs, Apr 12 2012 5:10 pm
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

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).

  signature.asc
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Florian Philipp  
View profile  
 More options Apr 12 2012, 5:30 pm
Newsgroups: linux.gentoo.user
From: Florian Philipp <li...@binarywings.net>
Date: Thu, 12 Apr 2012 23:30:03 +0200
Local: Thurs, Apr 12 2012 5:30 pm
Subject: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.

Am 12.04.2012 22:16, schrieb Michael Mol:

Or if you are short on disk space, you can also use LVM to mirror just
/home.

  signature.asc
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neil Bothwick  
View profile  
 More options Apr 12 2012, 6:40 pm
Newsgroups: linux.gentoo.user
From: Neil Bothwick <n...@digimed.co.uk>
Date: Fri, 13 Apr 2012 00:40:02 +0200
Local: Thurs, Apr 12 2012 6:40 pm
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

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.

  signature.asc
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 12 2012, 9:00 pm
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Fri, 13 Apr 2012 03:00:01 +0200
Local: Thurs, Apr 12 2012 9:00 pm
Subject: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.

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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 12 2012, 9:10 pm
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Fri, 13 Apr 2012 03:10:02 +0200
Local: Thurs, Apr 12 2012 9:10 pm
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 12 2012, 9:10 pm
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Fri, 13 Apr 2012 03:10:02 +0200
Local: Thurs, Apr 12 2012 9:10 pm
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 12 2012, 9:30 pm
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Fri, 13 Apr 2012 03:30:02 +0200
Local: Thurs, Apr 12 2012 9:30 pm
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Marlowe  
View profile  
 More options Apr 13 2012, 1:00 am
Newsgroups: linux.gentoo.user
From: Matthew Marlowe <m...@professionalsysadmin.com>
Date: Fri, 13 Apr 2012 07:00:02 +0200
Local: Fri, Apr 13 2012 1:00 am
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
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..).

--
Matthew Marlowe
m...@professionalsysadmin.com
https://www.twitter.com/deploylinux
1-805-857-9144

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Colquhoun  
View profile  
 More options Apr 13 2012, 4:10 am
Newsgroups: linux.gentoo.user
From: Paul Colquhoun <paul...@andor.dropbear.id.au>
Date: Fri, 13 Apr 2012 10:10:01 +0200
Local: Fri, Apr 13 2012 4:10 am
Subject: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
On Thu, 12 Apr 2012 22:58:03 Nikos Chantziaras wrote:

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
William Kenworthy  
View profile  
 More options Apr 13 2012, 6:10 am
Newsgroups: linux.gentoo.user
From: William Kenworthy <bi...@iinet.net.au>
Date: Fri, 13 Apr 2012 12:10:02 +0200
Local: Fri, Apr 13 2012 6:10 am
Subject: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 13 2012, 11:00 am
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Fri, 13 Apr 2012 17:00:03 +0200
Local: Fri, Apr 13 2012 11:00 am
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cov...@ccs.covici.com  
View profile  
 More options Apr 13 2012, 11:20 am
Newsgroups: linux.gentoo.user
From: cov...@ccs.covici.com
Date: Fri, 13 Apr 2012 17:20:02 +0200
Local: Fri, Apr 13 2012 11:20 am
Subject: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.

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
         cov...@ccs.covici.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 13 2012, 11:30 am
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Fri, 13 Apr 2012 17:30:01 +0200
Local: Fri, Apr 13 2012 11:30 am
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 13 2012, 4:40 pm
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Fri, 13 Apr 2012 22:40:02 +0200
Local: Fri, Apr 13 2012 4:40 pm
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Schmiedl  
View profile  
 More options Apr 13 2012, 5:30 pm
Newsgroups: linux.gentoo.user
From: Stefan Schmiedl <s...@xss.de>
Date: Fri, 13 Apr 2012 23:30:01 +0200
Local: Fri, Apr 13 2012 5:30 pm
Subject: Re[2]: [gentoo-user] About ready to move /usr, /var and /home to LVM.
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan McKinnon  
View profile  
 More options Apr 13 2012, 9:30 pm
Newsgroups: linux.gentoo.user
From: Alan McKinnon <alan.mckin...@gmail.com>
Date: Sat, 14 Apr 2012 03:30:01 +0200
Local: Fri, Apr 13 2012 9:30 pm
Subject: Re: [gentoo-user] Re: About ready to move /usr, /var and /home to LVM.
On Fri, 13 Apr 2012 11:12:55 -0400

cov...@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.mckin...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 13 2012, 11:50 pm
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Sat, 14 Apr 2012 05:50:01 +0200
Local: Fri, Apr 13 2012 11:50 pm
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gregory Shearman  
View profile  
 More options Apr 14 2012, 12:50 am
Newsgroups: linux.gentoo.user
From: Gregory Shearman <zek...@gmail.com>
Date: Sat, 14 Apr 2012 06:50:02 +0200
Local: Sat, Apr 14 2012 12:50 am
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

In linux.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.

Did you actually install grub onto your MBR by either:

# grub-install --no-floppy /dev/sdb

or

# grub

grub> root (hd1,0)
grub> setup (hd1)
grub> quit

-------------------------------------------------------------------------

You didn't actually write down these steps. Are you assuming that we
know you've done that?

--
Regards,
Gregory.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Schmiedl  
View profile  
 More options Apr 14 2012, 2:30 am
Newsgroups: linux.gentoo.user
From: Stefan Schmiedl <s...@xss.de>
Date: Sat, 14 Apr 2012 08:30:01 +0200
Local: Sat, Apr 14 2012 2:30 am
Subject: Re[2]: [gentoo-user] About ready to move /usr, /var and /home to LVM.
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 14 2012, 6:40 am
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Sat, 14 Apr 2012 12:40:03 +0200
Local: Sat, Apr 14 2012 6:40 am
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

In the past, I never had to install grub to sdb.  As long as grub is
installed to one drive, I can boot a OS from any drive.  I did this when
I used to have Mandrake and Gentoo installed.  I had Mandrake installed
on sda and Gentoo on sdb.  I only had one /boot partition which was on
sda1.  It had the kernel for both Mandrake and Gentoo in it and sda1 was
used for both.

So, has something changed that if I want to boot from a second drive I
have to install grub to its MBR first?  When the BIOS finishes and loads
grub, doesn't it always load from the first drive?  If that is true,
doesn't it ignore the MBR on the second drive?  It can't load both MBRs
right?

This isn't making sense.  I have done this many times in the past with
no problems but now something is different.  I need help figuring out
what.

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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dale  
View profile  
 More options Apr 14 2012, 6:50 am
Newsgroups: linux.gentoo.user
From: Dale <rdalek1...@gmail.com>
Date: Sat, 14 Apr 2012 12:50:02 +0200
Local: Sat, Apr 14 2012 6:50 am
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.

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"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 44   Newer >
« Back to Discussions « Newer topic     Older topic »