Linux LVM users
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] raid1+lvm
Date: Mon Sep 23 13:31:53 2002	[thread overview]
Message-ID: <3D8F5DB3.9080806@comedia.it> (raw)
In-Reply-To: 20020923102557.B74653-100000@true.fiberpimp.net

galt wrote:
> 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)

This config is far from perfect, was done in a hurry and since i was not 
able to batter lilo into perfection i had to use boot=/dev/sda and do a
dd if=/dev/sda of=/dev/sdb bs=512 count=1
after running lilo

This config was tested and i was able to boot it removing the first drive.

# lilo -V
LILO version 22.3.2

# cat /etc/lilo.conf
boot=/dev/sda
map=/boot/map
vga=normal
default=linux
keytable=/boot/us.klt
lba32
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
ignore-table
password="XXXXXXX"

image=/boot/vmlinuz
         restricted
         label=linux
         root=/dev/vg00/lvol3
         initrd=/boot/initrd.img
         append="devfs=mount console=ttyS1,9600 console=tty0"
         read-only

# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vg00/lvol3        3096336   1070072   1868980  37% /
/dev/vg00/lvol1         126931      8277    112101   7% /boot
/dev/vg00/lvol4        4128448   2632024   1286712  68% /home
/dev/vg00/lvol5        2064208    240884   1718468  13% /var

# swapon -s
Filename                        Type            Size    Used    Priority
/dev/vg00/lvol2                 partition       1048568 26640   -1

# cat /proc/lvm/global
LVM module LVM version 1.0.3(19/02/2002)

# fdisk -l

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 255 heads, 63 sectors, 2213 
cylinders
Units = cylinders of 16065 * 512 bytes

                                  Device Boot    Start       End 
Blocks   Id  System
/dev/scsi/host0/bus0/target0/lun0/part1   *         1         7 
56196    6  FAT16
/dev/scsi/host0/bus0/target0/lun0/part2             8      2213 
17719695   fd  Linux raid autodetect

Disk /dev/scsi/host0/bus0/target1/lun0/disc: 255 heads, 63 sectors, 2213 
cylinders
Units = cylinders of 16065 * 512 bytes

                                  Device Boot    Start       End 
Blocks   Id  System
/dev/scsi/host0/bus0/target1/lun0/part1   *         1         7 
56196    6  FAT16
/dev/scsi/host0/bus0/target1/lun0/part2             8      2213 
17719695   fd  Linux raid autodetect

# cat /etc/raidtab
raiddev /dev/md0
   raid-level 1
   nr-raid-disks 2
   nr-spare-disks 0
   device /dev/scsi/host0/bus0/target0/lun0/part2
   raid-disk 0
   device /dev/scsi/host0/bus0/target1/lun0/part2
   raid-disk 1


I was not able to boot from an LVM 2 since lilo does not grok 
device-mapper devices, btw lilo seems to need HDIO_GETGEO
syscall that is (was?) not available with device-mapper.

L.

P.S. in case yoo wonder sd?1 is the server diagnostic partition

-- 
Luca Berra -- bluca@comedia.it
	Service Delivery Manager
	Communication Media & Services S.r.l.
	Via A. Modigliani 1 - MILANO

  parent reply	other threads:[~2002-09-23 13:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-24  4:25 galt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D8F5DB3.9080806@comedia.it \
    --to=bluca@comedia.it \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox