don't think you need LVM for your /boot partition (in fact, it may not even
be possible), if you want to be super safe just partition it with 100MB or
something

assuming you've created 4 partitions, and used fdisk to change its type to
Linux raid auto (0xfd)

mdadm --create /dev/md0 --level=5 --raid-devices=4 /dev/hda{9,10,11,12}

this should give you a raid 5 with partitions 9 to 12, now to format md0 to
an ext3 file system

mke2fs -j -b 4096 /dev/md0

watch the progress in /proc/mdstat, of course, you have to do all the usual
mount stuff and update fstab

LVM is a diff beast, you need to first create a LVM partition, then put it
into volume groups, then create the logical volumes

fdisk to change type to Linux LVM, then    pvcreate /dev/hda9

to group them into a group, say vdisk          vgcreate vdisk /dev/hda9
/dev/hda10

now to create a logical volume named data    lvcreate -L 512M -n data vdisk

make sure you read the man manual for all these commands, its too much the
discuss all the parameters here

never did try mixing RAID with LVM, can anyone comment on their
experience......

Cheers

----- Original Message ----- 
From: "Raphael Kraus" <[EMAIL PROTECTED]>


> G'day,
>
> We're trying to set-up a host with software RAID (mirroring) and LVM at
> work (for a backup server).
>
> Just trying to install Debian with RAID partitions is proving painful.
>
> Anyone done this before? Any recommendations, tips, suggested methods?
>
> I'm thinking I should install to one drive putting a plain boot
> partition and then a LVM on it, leaving the second alone. Once install
> is complete create the RAID with the second drive marked as failed. (I
> can remember doing this a while back, but I think RAID has changed on
> Linux now.)
>
> Sorry if I'm answering my own questions here. I've struggled with
> Debian's installer and seen my colleague spend longer on it, whilst
> being head down in programming. Consciousness seems to have clicked a
> bit more since relaxing.
>
> Look forward to seeing you all again on Friday week.
>
> Raphael
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to