Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 08-24-2006, 04:34 AM   #1
LQ Newbie
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0

Hi I'm "playing" with my home server and his disks...
I want to set them with LVM + RAID (mdadm).

I've got 5 disks (SCSI disk)
During the installation I set only del first disk (non in LVM cause i'd like to set him later and not during the installation)
First disk: sda1 --> /
sda2 --> swap area

Finished the installation I configure LVM + RAID.

I want 3 disks in raid5 and 2 disks in raid1.

mdadm --create /dev/md1 --level=5 --raid-devices=3 /dev/sdc /dev/sdd /dev/sde
pvcreate /dev/md1
vgcreate VGarray5 /dev/md1
lvcreate -l4339 -nLVarray5 VGarray5
mke2fs -T vfat /dev/md1
mkdir /Database
mount /dev/md1 /Database
cp /etc/mdadm/mdadm.conf /etc/mdadm/mdadm.conf.old
mdadm --brief --detail --verbose /dev/md1 >> /etc/mdadm/mdadm.conf

sfdisk -d /dev/sda | sfdisk --force /dev/sdb
mdadm --create /dev/md0 --level 1 --raid-devices=2 missing /dev/sdb1
pvcreate /dev/md0
vgcreate VGboot /dev/md0
lvcreate -l2108 -nLVboot VGboot
mkfs.ext3 /dev/md0
mount /dev/md0 /mnt
cp -dpRx / /mnt
mdadm --brief --detail --verbose /dev/md0 >> /etc/mdadm/mdadm.conf

Then I modify /mnt/etc/fstab (remove /dev/sda1 /, add /dev/md0 /, add /dev/md1 /Database)
I've modified /mnt/etc/lilo.conf (boot=/dev/md0;root=/dev/VGboot/LVboot;raid-extra-boot="/dev/sda, /dev/sdb")
I've launched : lilo -v

I've copied /mnt/etc/fstab and /mnt/etc/lilo.conf on /etc/fstab and /etc/lilo.conf

1 - If i launch vgdisplay and lvdiplay and I don't see any vg and lv. Why???
2 - When I restart the server, it do the boot only from sda1 and not from sdb1. If I remove sda1 the server don't start. Why?
Old 08-24-2006, 11:45 PM   #2
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
1) Because you formatted the raid, not the logical volume.

2) Because you didnít make additional grub entries to boot using sdb.

Raid HowTo:

LVM HowTo:
Old 08-25-2006, 03:17 AM   #3
LQ Newbie
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
OK really thanks for info.
A quickly question: I use lilo (and not grub). I didn't understand what i have to do to make possible booting from sdb1.

I've configured the lilo.conf file in this manner:
raid-extra-boot="/dev/sda, /dev/sdb"

And I've launched the command : lilo -v

But what other operations I need to do?
Thanks a lot


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to change non-LVM to LVM? darthfoolish Linux - Software 2 08-01-2008 03:47 AM
RAID through mdadm rosey Linux - Server 5 04-08-2007 11:57 AM
mdadm and booting Boss Hoss Linux - Software 2 07-11-2006 09:17 PM
multipathing - mdadm da_kidd_er Linux - General 0 05-19-2005 07:28 PM
do you know mdadm? Coldburn Linux - Newbie 1 08-31-2004 02:22 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration