* [linux-lvm] software mirroring
@ 2002-09-06 8:51 Scott Savarese
2002-09-06 15:12 ` José Luis Domingo López
0 siblings, 1 reply; 17+ messages in thread
From: Scott Savarese @ 2002-09-06 8:51 UTC (permalink / raw)
To: linux-lvm
I am trying to set up mirroring on my system with LVM. Is there a command
to do it in LVM, or do I need the raidtools as well?
The ultimate goal is a completely mirrored harddrive so that I if my boot
drive fails (on that disk are /, swap, and /boot) I can swap the two
drives and reboot.
Or is it preferered to create LV's with LVM, and then run RAID ontop of
the LVM disks? (and then mirror /boot seperately).
Thanks,
Scott
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [linux-lvm] software mirroring
2002-09-06 8:51 [linux-lvm] software mirroring Scott Savarese
@ 2002-09-06 15:12 ` José Luis Domingo López
2002-09-07 9:35 ` Scott Savarese
0 siblings, 1 reply; 17+ messages in thread
From: José Luis Domingo López @ 2002-09-06 15:12 UTC (permalink / raw)
To: linux-lvm
On Friday, 06 September 2002, at 09:51:00 -0400,
Scott Savarese wrote:
> I am trying to set up mirroring on my system with LVM. Is there a command
> to do it in LVM, or do I need the raidtools as well?
>
The best configuration would be a LVM setup on top of some kind (RAID1
for mirroring) of software or hardware RAID. This way you get the
benefits of both RAID (redundancy) and LVM (space management and
snapshots among others).
> The ultimate goal is a completely mirrored harddrive so that I if my boot
> drive fails (on that disk are /, swap, and /boot) I can swap the two
> drives and reboot.
>
If one physical drive fails in a RAID1 configuration you shouldn't need
to reboot the box, and the failure would go mostly unnoticed to you.
> Or is it preferered to create LV's with LVM, and then run RAID ontop of
> the LVM disks? (and then mirror /boot seperately).
>
Better the other way: RAID on top of physical disks (to get protection
against a disk failure) and above RAID (be it sotf or hard) LVM (the
inner layer gives you RAID1 capabilities, and LVM works as usual).
--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Woody (Linux 2.4.19-pre6aa1)
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [linux-lvm] software mirroring
2002-09-06 15:12 ` José Luis Domingo López
@ 2002-09-07 9:35 ` Scott Savarese
2002-09-07 15:42 ` José Luis Domingo López
0 siblings, 1 reply; 17+ messages in thread
From: Scott Savarese @ 2002-09-07 9:35 UTC (permalink / raw)
To: linux-lvm; +Cc: linux-lvm
José Luis Domingo López said:
>> Or is it preferered to create LV's with LVM, and then run RAID ontop
>> of the LVM disks? (and then mirror /boot seperately).
>>
> Better the other way: RAID on top of physical disks (to get protection
> against a disk failure) and above RAID (be it sotf or hard) LVM (the
> inner layer gives you RAID1 capabilities, and LVM works as usual).
Is there any sort of procedure written on how to do this on a system with
only two disks? If I mirror the disks, then I now have 1 logical disk, in
which case I can't install LVM on top.
Thanks,
Scott
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [linux-lvm] software mirroring
2002-09-07 9:35 ` Scott Savarese
@ 2002-09-07 15:42 ` José Luis Domingo López
2002-09-10 7:10 ` Jon Bendtsen
0 siblings, 1 reply; 17+ messages in thread
From: José Luis Domingo López @ 2002-09-07 15:42 UTC (permalink / raw)
To: linux-lvm; +Cc: Scott Savarese
On Saturday, 07 September 2002, at 10:34:40 -0400,
Scott Savarese wrote:
> > Better the other way: RAID on top of physical disks (to get protection
> > against a disk failure) and above RAID (be it sotf or hard) LVM (the
> > inner layer gives you RAID1 capabilities, and LVM works as usual).
>
> Is there any sort of procedure written on how to do this on a system with
> only two disks? If I mirror the disks, then I now have 1 logical disk, in
> which case I can't install LVM on top.
>
There shouldn't be any problems at all, except for bootup: it can be
tricky (complex, prone to error or simply impossible, I don't know ;)
to get a box boot off a LV on top of a software RAID1. But technically,
it should be as simple as creating a partition on each disk, creating
the RAID1 from them, initialize /dev/md0 as a PV for use with LVM,
create a VG consisting of just this PV, and finally create as many LV as
you need (size permitting).
I have not had the chance to try it by myself, due to lack of hardware,
but should work. Maybe the hard part is to do it at install time and get
the system to boot from a LV created this way.
--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Woody (Linux 2.4.19-pre6aa1)
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [linux-lvm] software mirroring
2002-09-07 15:42 ` José Luis Domingo López
@ 2002-09-10 7:10 ` Jon Bendtsen
2002-09-10 8:40 ` Scott Savarese
0 siblings, 1 reply; 17+ messages in thread
From: Jon Bendtsen @ 2002-09-10 7:10 UTC (permalink / raw)
To: linux-lvm
José Luis Domingo López wrote:
>
> On Saturday, 07 September 2002, at 10:34:40 -0400,
> Scott Savarese wrote:
> There shouldn't be any problems at all, except for bootup: it can be
> tricky (complex, prone to error or simply impossible, I don't know ;)
> to get a box boot off a LV on top of a software RAID1. But technically,
> it should be as simple as creating a partition on each disk, creating
> the RAID1 from them, initialize /dev/md0 as a PV for use with LVM,
> create a VG consisting of just this PV, and finally create as many LV as
> you need (size permitting).
Thats the way to do it.
> I have not had the chance to try it by myself, due to lack of hardware,
> but should work. Maybe the hard part is to do it at install time and get
> the system to boot from a LV created this way.
I have tried it, and it works fine.
JonB
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [linux-lvm] software mirroring
2002-09-10 7:10 ` Jon Bendtsen
@ 2002-09-10 8:40 ` Scott Savarese
0 siblings, 0 replies; 17+ messages in thread
From: Scott Savarese @ 2002-09-10 8:40 UTC (permalink / raw)
To: linux-lvm; +Cc: jon+lvm
Jon Bendtsen said:
> I have tried it, and it works fine.
OK...I need massive help... I have 2 drives hda and hdc. hda contains 1
partition, the original installation. hdc has two partitions. One for
/boot and one for / (and all subdirectories). I then created to raid1's
with hdc as the primary drive and hda as a "failed-disk". This way I can
always boot off of hda in case it doesn't work. /dev/md0 sits on hdc1 and
contains /boot and /dev/md1 sits on hdc2.
I then pvcreated /dev/md1 and created a root LV and then copied my
installation. I modified lilo.conf and fstab and ran lilo (I'll include my
lilo.conf at the end).
My theory is that I can change my BIOS setting to boot off /dev/hdc and
then once I am sure it works, change hda entries in my raiddtab to
"raid-disk" and hot add them. Rerun lilo and then I should be able to boot
off of hda.In theory.
I can run lilo. It understands my raid disks (lilo is version 22.2, my
kernel 2.4.18 and I am using lvm 1.0.5). However once I reboot and switch
the BIOS, I now get L 80 80 80...when I try and boot of /dev/hdc. It still
works fine booting off of hda.
Can you help?
Thanks,
Scott
HERE is my lilo.conf for the raid
boot = /dev/md0
delay = 50
vga = normal
lba32
image = /boot/vmlinuz
root = /dev/rootvg/root
label = linux
initrd = /boot/initrd-lvm-2.4.18.gz
ramdisk = 8192
read-only
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [linux-lvm] software mirroring
@ 2002-09-09 8:41 Scott Savarese
2002-09-09 9:02 ` Steven Lembark
2002-09-09 10:38 ` Luca Berra
0 siblings, 2 replies; 17+ messages in thread
From: Scott Savarese @ 2002-09-09 8:41 UTC (permalink / raw)
To: linux-lvm
José Luis Domingo López said:
> There shouldn't be any problems at all, except for bootup: it can be
> tricky (complex, prone to error or simply impossible, I don't know ;)
> to get a box boot off a LV on top of a software RAID1. But
> technically, it should be as simple as creating a partition on each
> disk, creating the RAID1 from them, initialize /dev/md0 as a PV for
> use with LVM, create a VG consisting of just this PV, and finally
> create as many LV as you need (size permitting).
>
> I have not had the chance to try it by myself, due to lack of
> hardware, but should work. Maybe the hard part is to do it at install
> time and get the system to boot from a LV created this way.
Bootup is definantly the issue right now... I created two raid1 sets
/dev/md0 and /dev/md1 on my second hard drive telling it that my first
harddrive was failed (so it wouldn't use it and break it). The first
will hold my /boot and the second (for now) will hold my /. I then
installed LVM onto my /dev/md1 and copied the filesystems over to the
appropriate locations. However after I configure lilo and fstab I have
issues. Depending on my lilo.conf I get either
L 80 80 80 ...
or
LI
Is there a proper way to boot up?
Thanks,
Scott
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [linux-lvm] software mirroring
2002-09-09 8:41 Scott Savarese
@ 2002-09-09 9:02 ` Steven Lembark
2002-09-09 10:38 ` Luca Berra
1 sibling, 0 replies; 17+ messages in thread
From: Steven Lembark @ 2002-09-09 9:02 UTC (permalink / raw)
To: linux-lvm
> /dev/md0 and /dev/md1 on my second hard drive telling it that my first
> harddrive was failed (so it wouldn't use it and break it). The first
> will hold my /boot and the second (for now) will hold my /. I then
> installed LVM onto my /dev/md1 and copied the filesystems over to the
> appropriate locations. However after I configure lilo and fstab I have
> issues. Depending on my lilo.conf I get either
> L 80 80 80 ...
> or
> LI
You will save yourself a lot of trouble if you
stick with hardware raid for the boot volume (i.e.,
the bios only sees a single device) and avoid LVM
altogeter for the root volume (assuming you put
/boot on /). Main reason is that if anything does
go wrong with LVM it's a pain to fix without LVM.
Until the X86 BIOS gets brains (and pigs floss...)
just use a simple partition for the root voume and
perhaps a second partition with a stand-alone rescue
system on the other drive. If you install LVM into
the root volume (e.g., /lvm) then yuo can at least
boot single-user and fix things.
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [linux-lvm] software mirroring
2002-09-09 8:41 Scott Savarese
2002-09-09 9:02 ` Steven Lembark
@ 2002-09-09 10:38 ` Luca Berra
[not found] ` <3338.24.46.54.254.1031594005.squirrel@mail.scottsavarese.com>
1 sibling, 1 reply; 17+ messages in thread
From: Luca Berra @ 2002-09-09 10:38 UTC (permalink / raw)
To: linux-lvm
Scott Savarese wrote:
> Bootup is definantly the issue right now... I created two raid1 sets
> /dev/md0 and /dev/md1 on my second hard drive telling it that my first
> harddrive was failed (so it wouldn't use it and break it). The first
> will hold my /boot and the second (for now) will hold my /. I then
> installed LVM onto my /dev/md1 and copied the filesystems over to the
> appropriate locations. However after I configure lilo and fstab I have
> issues. Depending on my lilo.conf I get either
> L 80 80 80 ...
> or
> LI
please provide:
lilo version
lilo.conf
contents of partition tables on both drives
L.
^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <2100.24.46.54.254.1031670341.squirrel@mail.scottsavarese.com>]
end of thread, other threads:[~2002-09-13 11:46 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06 8:51 [linux-lvm] software mirroring Scott Savarese
2002-09-06 15:12 ` José Luis Domingo López
2002-09-07 9:35 ` Scott Savarese
2002-09-07 15:42 ` José Luis Domingo López
2002-09-10 7:10 ` Jon Bendtsen
2002-09-10 8:40 ` Scott Savarese
-- strict thread matches above, loose matches on Subject: below --
2002-09-09 8:41 Scott Savarese
2002-09-09 9:02 ` Steven Lembark
2002-09-09 10:38 ` Luca Berra
[not found] ` <3338.24.46.54.254.1031594005.squirrel@mail.scottsavarese.com>
2002-09-10 5:33 ` Luca Berra
[not found] ` <1412.24.46.54.254.1031663551.squirrel@mail.scottsavarese.com>
2002-09-11 1:48 ` Luca Berra
[not found] <2100.24.46.54.254.1031670341.squirrel@mail.scottsavarese.com>
[not found] ` <3D7E0CC0.D7B06D44@silicide.dk>
[not found] ` <2951.24.46.54.254.1031678903.squirrel@mail.scottsavarese.com>
2002-09-11 3:03 ` jon+lvm
2002-09-13 8:30 ` Scott Savarese
2002-09-13 8:46 ` Steven Lembark
2002-09-13 11:08 ` Scott Savarese
2002-09-13 11:16 ` Luca Berra
2002-09-13 11:46 ` Scott Savarese
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.