All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] raid1+lvm
@ 2002-09-23  9:41 galt
  2002-09-23 10:07 ` Andreas Baier
  2002-09-23 13:31 ` Luca Berra
  0 siblings, 2 replies; 9+ messages in thread
From: galt @ 2002-09-23  9:41 UTC (permalink / raw)
  To: linux-lvm

perhaps I'm missing something.

Luca,
So it is or is not possible to boot a root filesystem thats inside an lvm
without a separate /boot that is either raid1 or normal? From what you
said I'd like to interpret it as you need a initrd inside the root lv...is
that the case?  If so, could I see the root= and boot= lines from your
lilo.conf? (Assuming you have this configuration)

William Blunn,
my reasoning behind wanting root in lvm is not to expand it.  I want the
raid1 for data integrity, and I would like to avoid having more than one
raid1 set on the same disks...I figure theres more overhead and there
would be more io contention than necessary (assuming that what I'm asking
for is possible). So, in a perfect world, I would have my two disks
mirrored with raid1 and then my root,swap, and whatever else I want as lv's
inside that raid1. I mean, yes it is possible to have a bunch of raid1's
on the same disks, and yes the io contention probably isnt an issue, but
what I'm trying to do seems like the most elegant solution to me at this time.

galt

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [linux-lvm] raid1+lvm
@ 2002-09-24  4:25 galt
  0 siblings, 0 replies; 9+ messages in thread
From: galt @ 2002-09-24  4:25 UTC (permalink / raw)
  To: linux-lvm

I got it working, thanks to all, especially to Luca. After verifying
that my lilo configuration was sane, I tried making the initrd on another
host. I was able to boot just fine.  I was trying to do everything from
the slackware 8.1 install cd, but the lvmcreate_initrd script doesnt want
to work properly in that environment.

Heres the setup:

# lilo -V
LILO version 22.2

# cat /etc/lilo.conf
lba32
boot = /dev/sda
delay = 50
vga = ext

image = /boot/vmlinuz
root = /dev/rootvg/root
initrd = /boot/initrd-lvm-2.4.18-heh3.gz
label = linux1
read-only

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/rootvg/root       2097084    719204   1377880  35% /
/dev/rootvg/var        6254396     40824   6213572   1% /var

# swapon -s
Filename                        Type            Size    Used    Priority
/dev/rootvg/swap                partition       524280  0       -1

# cat /proc/lvm/global
LVM driver LVM version 1.0.1-rc4(ish)(03/10/2001)

# fdisk -l

Disk /dev/sda: 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1      1106   8883913+  fd  Linux raid autodetect

Disk /dev/sdb: 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1             1      1106   8883913+  fd  Linux raid autodetect

# cat /etc/raidtab
raiddev /dev/md0
        raid-level 1
        nr-raid-disks 2
        nr-spare-disks 0
        device /dev/sda1
        raid-disk 0
        device /dev/sdb1
        raid-disk 1
#

LVM rules.

galt

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-09-24  6:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-23  9:41 [linux-lvm] raid1+lvm galt
2002-09-23 10:07 ` Andreas Baier
2002-09-23 10:18   ` Patrick Caulfield
2002-09-23 10:28     ` Theo Van Dinter
2002-09-24  0:28       ` Gerwin Lienert
2002-09-24  6:25         ` Wolfgang Weisselberg
2002-09-24  6:55           ` Andreas Baier
2002-09-23 13:31 ` Luca Berra
  -- strict thread matches above, loose matches on Subject: below --
2002-09-24  4:25 galt

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.