Re: lvm with raid

2004-07-03 Thread Russell Coker
On Fri, 2 Jul 2004 05:09, Christoph Moench-Tegeder [EMAIL PROTECTED] wrote:
 Seriously, as I need more disk space and CPU than disk IO, I went for
 RAID 5. If level 0 or 1 fits your application better, software RAID
 might be an option. But why burn CPU on RAID when your controller
 brings it's own CPU? And for mirroring disks, why not take the
 on-board controller?

Does software RAID-5 really burn CPU?  See the below web page for the speed of 
an old machine in doing the RAID-5 checksum calculations.  Given that data to 
be written to disk will already be in the cache it seems that there won't be 
any significant overhead for this.
http://www.uwsg.iu.edu/hypermail/linux/kernel/0110.2/0816.html

The advantage of hardware for RAID-1 is that there are bottlenecks for IO 
speed.  Doing only half the writes on the motherboard side will help things.

  The vast majority of hardware RAID devices are too slow to handle more
  than 4 disks at full speed, the way they lay the data on the disk is not
  documented (so if they mess up it will be really bad for you), and they
  really aren't that cheap (not anything that's worth using).

 If your storage messes up, it will take the filesystem with it.

Not necessarily.  Sometimes you just have the RAID devices refuse to recognise 
the storage.  If you know the block layout then writing a program to 
reconstruct a RAID-5 from the set of disks (or even the set minus one disk) 
should not be difficult.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page




Re: lvm with raid

2004-07-01 Thread Christoph Moench-Tegeder
## Russell Coker ([EMAIL PROTECTED]):

  ## Gustavo Polillo ([EMAIL PROTECTED]):
 Is it possible to make lvm with raid ?? Is there anyone here that make
   it?
  Works as expected. RAID appears as a simple SCSI drive.
 Only for hardware RAID.

Yes. Given the price of RAID controllers (ServerRAID, for example) and
the problems of software RAID, I strongly suggest getting a decent
controller and do whatever RAID level you need.

 Software RAID looks quite different to the OS and 
 there are still some minor quirks in getting it working for boot devices.  
 One of which is that for LILO you need the MBR to be provided by the 
 debian-mbr program and have the LILO block inside the RAID, as well as having 
 identical block numbers in both disks in the RAID-1 (RAID-5 and RAID-0 is not 
 supported).

That's why I don't use software RAID. Thanks for the summary.

Regards,
Christoph

-- 
Spare Space


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: lvm with raid

2004-07-01 Thread Russell Coker
On Thu, 1 Jul 2004 17:43, Christoph Moench-Tegeder [EMAIL PROTECTED] wrote:
 ## Russell Coker ([EMAIL PROTECTED]):
   ## Gustavo Polillo ([EMAIL PROTECTED]):
  Is it possible to make lvm with raid ?? Is there anyone here that
make it?
  
   Works as expected. RAID appears as a simple SCSI drive.
 
  Only for hardware RAID.

 Yes. Given the price of RAID controllers (ServerRAID, for example) and
 the problems of software RAID, I strongly suggest getting a decent
 controller and do whatever RAID level you need.

Hardware RAID is more expensive.  Some of the SCSI hardware RAID devices have 
bottlenecks on throughput (I suspect to help sell the high-end models without 
the bottleneck).  The 3ware hardware RAID devices are well known for 
saturating the PCI bus, but to get maximum performance out of them some 
people used to use two 3ware cards in two PCI buses with software RAID-0 to 
beat the PCI bottleneck (I can't remember if it was 32bit-66MHz or 
64bit-33MHz, but the end result was that performance didn't go much better 
than about 210MB/s on a single 3ware card).

The vast majority of hardware RAID devices are too slow to handle more than 4 
disks at full speed, the way they lay the data on the disk is not documented 
(so if they mess up it will be really bad for you), and they really aren't 
that cheap (not anything that's worth using).

If you want just two disks for reliability then software RAID-1 is the easiest 
and most reliable.  You can mount a RAID-1 file system as a non-RAID device 
if you wish.  One big advantage of Linux software RAID is that you know 
what's going on.  With every hardware RAID system I've ever seen or heard of 
(including the biggest ones that Sun sells) there have been situations where 
the administrator finds themselves without a way of discovering what's 
happening with their data.  The cheapest RAID often doesn't support telling 
Linux about the status, or has so many bugs in the driver software that you 
can't rely on it.  The more expensive RAID hardware has a computer in it 
which can have protocol errors when talking to the host or simply crash.

  Software RAID looks quite different to the OS and
  there are still some minor quirks in getting it working for boot devices.
  One of which is that for LILO you need the MBR to be provided by the
  debian-mbr program and have the LILO block inside the RAID, as well as
  having identical block numbers in both disks in the RAID-1 (RAID-5 and
  RAID-0 is not supported).

 That's why I don't use software RAID. Thanks for the summary.

The summary was not for your benefit.  It was for the benefit of people who 
actually want to get work done.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: lvm with raid

2004-07-01 Thread Jogi Hofmüller
Hi!

* Gustavo Polillo [EMAIL PROTECTED] [2004-06-30 17:22]:
 
   Is it possible to make lvm with raid ?? Is there anyone here that make it?
 thanks.

We just recently started tests with adaptecs zcr cards (2010S) and
aic-7902 controlors. Our solution is to have one disk to hold the OS and
three more that form a raid5. On top of the raid5 (which looks like one
HD to the OS) we use LVM. The raid then holds userdata like /home or the
root of the webserver or whatever.

Cheers
-- 
Jogi Hofmueller - mur.at
ICQ:  284632332
Tel.: +43 316 821451 55 |#| http://info.astrian.net/jargon/terms/h/hacker.html


pgpU3VxJIqoSW.pgp
Description: PGP signature


Re: lvm with raid

2004-07-01 Thread Niccolo Rigacci
   Is it possible to make lvm with raid ?? Is there anyone here that make it?
 thanks.

I use LVM over software RAID 1 (mirroring). I use Debian stable
and I decided that boot partition over LVM was not worth,
specially because of trouble in case of disaster recovery.

So my RAID is as follow:

 md0 : active raid1 hdc1[1] hda1[0] Boot
 md1 : active raid1 hdc2[1] hda2[0] Swap
 md2 : active raid1 hdc3[1] hda3[0] LVM

Then I made a logical volume group vg0 and I put only /dev/md2
into. Finally I created two logical volumes for /var and /home.

So my mount schema is:

  Filesystem Mounted on
  /dev/md0   /
  /dev/vg0/var   /var
  /dev/vg0/home  /home

Very simple. I also avoided initrd with a self-made kernel, just
added into /etc/lilo.conf:

  boot=/dev/md0
  root=/dev/md0 
  raid-extra-boot = /dev/hda,/dev/hdc
  ...

I just have a problem with files larger than 2Gb. I can create
those files (.tar.gz in my case), but I cannot read them back
with cp, scp, cat or wahtever. The very strange thing is that if
I do strace cp or whatever, it works!

Don't know if this problem is related to LVM, I use Debian Woody,
lvm10 1.0.4-4, raidtools2 0.90.20010914-15. Other boxes with raid
and no lvm works properly.

-- 
Niccolo Rigacci
Firenze - Italy

War against Iraq? Not in my name!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: lvm with raid

2004-07-01 Thread Russell Coker
On Thu, 1 Jul 2004 20:37, Jogi Hofmüller [EMAIL PROTECTED] wrote:
 * Gustavo Polillo [EMAIL PROTECTED] [2004-06-30 17:22]:
Is it possible to make lvm with raid ?? Is there anyone here that make
  it? thanks.

 We just recently started tests with adaptecs zcr cards (2010S) and
 aic-7902 controlors. Our solution is to have one disk to hold the OS and
 three more that form a raid5. On top of the raid5 (which looks like one

Why not just use a four disk RAID-5 for everything?

If you have a decent amount of RAM then the OS partition(s) will usually have 
almost no access apart from writes to /var/log, and if you use the - option 
in the syslog configuration that shouldn't be a significant load either.  
Generally the more disks in a RAID-5 the better the performance that you can 
get, so having a four-disk RAID-5 is likely to give better performance for no 
cost (run iostat -x 10 to verify this).

Having the OS on one disk means that a single disk failure will kill the 
machine.  While you may have good backups it's always more convenient if you 
can leave the machine running with a dead disk instead of having to do an 
emergency hardware replacement job.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page



Re: lvm with raid

2004-07-01 Thread Jogi Hofmüller
* Russell Coker [EMAIL PROTECTED] [2004-07-01 14:52]:
 
 If you have a decent amount of RAM then the OS partition(s) will usually have 
 almost no access apart from writes to /var/log, and if you use the - option 
 in the syslog configuration that shouldn't be a significant load either.  
 Generally the more disks in a RAID-5 the better the performance that you can 
 get, so having a four-disk RAID-5 is likely to give better performance for no 
 cost (run iostat -x 10 to verify this).

Since we are at the testing stage at the moment I will try this out as
soon as I find time to do it. The logging thing wouldn't bother me since
we do logging remotely via syslog. What I havent't tried out so far is
setting up a machine from scratch using raid and lvm though ... I built
my own set of boot-disks to get the hardware supported initially, so
this might also be resolveable ...

Thx for the advice. 
-- 
Jogi Hofmueller - mur.at
ICQ:  284632332
Tel.: +43 316 821451 55 |#| http://info.astrian.net/jargon/terms/h/hacker.html


pgpydox2ZfRJE.pgp
Description: PGP signature


Re: lvm with raid

2004-07-01 Thread Christoph Moench-Tegeder
## Russell Coker ([EMAIL PROTECTED]):

  Yes. Given the price of RAID controllers (ServerRAID, for example) and
  the problems of software RAID, I strongly suggest getting a decent
  controller and do whatever RAID level you need.
 Hardware RAID is more expensive.

Yes. It's not a cheap solution.

 Some of the SCSI hardware RAID devices have 
 bottlenecks on throughput (I suspect to help sell the high-end models without 
 the bottleneck).  The 3ware hardware RAID devices are well known for 
 saturating the PCI bus, but to get maximum performance out of them some 
 people used to use two 3ware cards in two PCI buses with software RAID-0 to 
 beat the PCI bottleneck (I can't remember if it was 32bit-66MHz or 
 64bit-33MHz, but the end result was that performance didn't go much better 
 than about 210MB/s on a single 3ware card).

PCI-X rulez :)
Seriously, as I need more disk space and CPU than disk IO, I went for
RAID 5. If level 0 or 1 fits your application better, software RAID
might be an option. But why burn CPU on RAID when your controller
brings it's own CPU? And for mirroring disks, why not take the
on-board controller?

 The vast majority of hardware RAID devices are too slow to handle more than 4 
 disks at full speed, the way they lay the data on the disk is not documented 
 (so if they mess up it will be really bad for you), and they really aren't 
 that cheap (not anything that's worth using).

If your storage messes up, it will take the filesystem with it.
And given the speed of TSM in our installation, you really
do not want to think about desaster recovery. I want a new
tape library...

 If you want just two disks for reliability then software RAID-1 is the
 easiest and most reliable.

Agreed.

   The cheapest RAID often doesn't support telling 
 Linux about the status, or has so many bugs in the driver software that you 
 can't rely on it.

Without well chosen and tested hardware, you are lost anyway.
So it boils down to: use software for level 0 (and 1, if it has
to be cheap), spend big money, if you want level 5.

Regards,
Christoph

-- 
Spare Space


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: lvm with raid

2004-07-01 Thread Russell Coker
On Thu, 1 Jul 2004 03:33, Christoph Moench-Tegeder [EMAIL PROTECTED] wrote:
 ## Gustavo Polillo ([EMAIL PROTECTED]):
Is it possible to make lvm with raid ?? Is there anyone here that make
  it?

 Works as expected. RAID appears as a simple SCSI drive.

Only for hardware RAID.  Software RAID looks quite different to the OS and 
there are still some minor quirks in getting it working for boot devices.  
One of which is that for LILO you need the MBR to be provided by the 
debian-mbr program and have the LILO block inside the RAID, as well as having 
identical block numbers in both disks in the RAID-1 (RAID-5 and RAID-0 is not 
supported).

LVM should work with LILO, whether it's a good idea is an entirely separate 
issue.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page




Re: lvm with raid

2004-07-01 Thread Christoph Moench-Tegeder
## Russell Coker ([EMAIL PROTECTED]):

  ## Gustavo Polillo ([EMAIL PROTECTED]):
 Is it possible to make lvm with raid ?? Is there anyone here that make
   it?
  Works as expected. RAID appears as a simple SCSI drive.
 Only for hardware RAID.

Yes. Given the price of RAID controllers (ServerRAID, for example) and
the problems of software RAID, I strongly suggest getting a decent
controller and do whatever RAID level you need.

 Software RAID looks quite different to the OS and 
 there are still some minor quirks in getting it working for boot devices.  
 One of which is that for LILO you need the MBR to be provided by the 
 debian-mbr program and have the LILO block inside the RAID, as well as having 
 identical block numbers in both disks in the RAID-1 (RAID-5 and RAID-0 is not 
 supported).

That's why I don't use software RAID. Thanks for the summary.

Regards,
Christoph

-- 
Spare Space




Re: lvm with raid

2004-07-01 Thread Russell Coker
On Thu, 1 Jul 2004 17:43, Christoph Moench-Tegeder [EMAIL PROTECTED] wrote:
 ## Russell Coker ([EMAIL PROTECTED]):
   ## Gustavo Polillo ([EMAIL PROTECTED]):
  Is it possible to make lvm with raid ?? Is there anyone here that
make it?
  
   Works as expected. RAID appears as a simple SCSI drive.
 
  Only for hardware RAID.

 Yes. Given the price of RAID controllers (ServerRAID, for example) and
 the problems of software RAID, I strongly suggest getting a decent
 controller and do whatever RAID level you need.

Hardware RAID is more expensive.  Some of the SCSI hardware RAID devices have 
bottlenecks on throughput (I suspect to help sell the high-end models without 
the bottleneck).  The 3ware hardware RAID devices are well known for 
saturating the PCI bus, but to get maximum performance out of them some 
people used to use two 3ware cards in two PCI buses with software RAID-0 to 
beat the PCI bottleneck (I can't remember if it was 32bit-66MHz or 
64bit-33MHz, but the end result was that performance didn't go much better 
than about 210MB/s on a single 3ware card).

The vast majority of hardware RAID devices are too slow to handle more than 4 
disks at full speed, the way they lay the data on the disk is not documented 
(so if they mess up it will be really bad for you), and they really aren't 
that cheap (not anything that's worth using).

If you want just two disks for reliability then software RAID-1 is the easiest 
and most reliable.  You can mount a RAID-1 file system as a non-RAID device 
if you wish.  One big advantage of Linux software RAID is that you know 
what's going on.  With every hardware RAID system I've ever seen or heard of 
(including the biggest ones that Sun sells) there have been situations where 
the administrator finds themselves without a way of discovering what's 
happening with their data.  The cheapest RAID often doesn't support telling 
Linux about the status, or has so many bugs in the driver software that you 
can't rely on it.  The more expensive RAID hardware has a computer in it 
which can have protocol errors when talking to the host or simply crash.

  Software RAID looks quite different to the OS and
  there are still some minor quirks in getting it working for boot devices.
  One of which is that for LILO you need the MBR to be provided by the
  debian-mbr program and have the LILO block inside the RAID, as well as
  having identical block numbers in both disks in the RAID-1 (RAID-5 and
  RAID-0 is not supported).

 That's why I don't use software RAID. Thanks for the summary.

The summary was not for your benefit.  It was for the benefit of people who 
actually want to get work done.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page




Re: lvm with raid

2004-07-01 Thread Jogi Hofmüller
Hi!

* Gustavo Polillo [EMAIL PROTECTED] [2004-06-30 17:22]:
 
   Is it possible to make lvm with raid ?? Is there anyone here that make it?
 thanks.

We just recently started tests with adaptecs zcr cards (2010S) and
aic-7902 controlors. Our solution is to have one disk to hold the OS and
three more that form a raid5. On top of the raid5 (which looks like one
HD to the OS) we use LVM. The raid then holds userdata like /home or the
root of the webserver or whatever.

Cheers
-- 
Jogi Hofmueller - mur.at
ICQ:  284632332
Tel.: +43 316 821451 55 |#| http://info.astrian.net/jargon/terms/h/hacker.html


pgp6B83FYaLTg.pgp
Description: PGP signature


Re: lvm with raid

2004-07-01 Thread Russell Coker
On Thu, 1 Jul 2004 20:37, Jogi Hofmüller [EMAIL PROTECTED] wrote:
 * Gustavo Polillo [EMAIL PROTECTED] [2004-06-30 17:22]:
Is it possible to make lvm with raid ?? Is there anyone here that make
  it? thanks.

 We just recently started tests with adaptecs zcr cards (2010S) and
 aic-7902 controlors. Our solution is to have one disk to hold the OS and
 three more that form a raid5. On top of the raid5 (which looks like one

Why not just use a four disk RAID-5 for everything?

If you have a decent amount of RAM then the OS partition(s) will usually have 
almost no access apart from writes to /var/log, and if you use the - option 
in the syslog configuration that shouldn't be a significant load either.  
Generally the more disks in a RAID-5 the better the performance that you can 
get, so having a four-disk RAID-5 is likely to give better performance for no 
cost (run iostat -x 10 to verify this).

Having the OS on one disk means that a single disk failure will kill the 
machine.  While you may have good backups it's always more convenient if you 
can leave the machine running with a dead disk instead of having to do an 
emergency hardware replacement job.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page




Re: lvm with raid

2004-07-01 Thread Jogi Hofmüller
* Russell Coker [EMAIL PROTECTED] [2004-07-01 14:52]:
 
 If you have a decent amount of RAM then the OS partition(s) will usually have 
 almost no access apart from writes to /var/log, and if you use the - option 
 in the syslog configuration that shouldn't be a significant load either.  
 Generally the more disks in a RAID-5 the better the performance that you can 
 get, so having a four-disk RAID-5 is likely to give better performance for no 
 cost (run iostat -x 10 to verify this).

Since we are at the testing stage at the moment I will try this out as
soon as I find time to do it. The logging thing wouldn't bother me since
we do logging remotely via syslog. What I havent't tried out so far is
setting up a machine from scratch using raid and lvm though ... I built
my own set of boot-disks to get the hardware supported initially, so
this might also be resolveable ...

Thx for the advice. 
-- 
Jogi Hofmueller - mur.at
ICQ:  284632332
Tel.: +43 316 821451 55 |#| http://info.astrian.net/jargon/terms/h/hacker.html


pgpEqGnhkbZSj.pgp
Description: PGP signature


Re: lvm with raid

2004-07-01 Thread Christoph Moench-Tegeder
## Russell Coker ([EMAIL PROTECTED]):

  Yes. Given the price of RAID controllers (ServerRAID, for example) and
  the problems of software RAID, I strongly suggest getting a decent
  controller and do whatever RAID level you need.
 Hardware RAID is more expensive.

Yes. It's not a cheap solution.

 Some of the SCSI hardware RAID devices have 
 bottlenecks on throughput (I suspect to help sell the high-end models without 
 the bottleneck).  The 3ware hardware RAID devices are well known for 
 saturating the PCI bus, but to get maximum performance out of them some 
 people used to use two 3ware cards in two PCI buses with software RAID-0 to 
 beat the PCI bottleneck (I can't remember if it was 32bit-66MHz or 
 64bit-33MHz, but the end result was that performance didn't go much better 
 than about 210MB/s on a single 3ware card).

PCI-X rulez :)
Seriously, as I need more disk space and CPU than disk IO, I went for
RAID 5. If level 0 or 1 fits your application better, software RAID
might be an option. But why burn CPU on RAID when your controller
brings it's own CPU? And for mirroring disks, why not take the
on-board controller?

 The vast majority of hardware RAID devices are too slow to handle more than 4 
 disks at full speed, the way they lay the data on the disk is not documented 
 (so if they mess up it will be really bad for you), and they really aren't 
 that cheap (not anything that's worth using).

If your storage messes up, it will take the filesystem with it.
And given the speed of TSM in our installation, you really
do not want to think about desaster recovery. I want a new
tape library...

 If you want just two disks for reliability then software RAID-1 is the
 easiest and most reliable.

Agreed.

   The cheapest RAID often doesn't support telling 
 Linux about the status, or has so many bugs in the driver software that you 
 can't rely on it.

Without well chosen and tested hardware, you are lost anyway.
So it boils down to: use software for level 0 (and 1, if it has
to be cheap), spend big money, if you want level 5.

Regards,
Christoph

-- 
Spare Space




Re: lvm with raid

2004-06-30 Thread Brett Parker
On Wed, Jun 30, 2004 at 12:10:31PM -0300, Gustavo Polillo wrote:
 
 
   Is it possible to make lvm with raid ?? Is there anyone here that make it?
 thanks.

I'm currently using LVM over a software RAID 5 on one of our servers,
/boot is a software RAID 1 array with an initrd to mount the LVM root
partition.

Just create the LVM volume on the RAID device, and that should be it,
keeping /boot out of the LVM is a requirement fwict, otherwise the
bootloader can't get access to the initrd or kernel image.

http://www.midhgard.it/docs/lvm/html/ -- this is a good starting point

and if you throw the words LVM on RAID at google, you'll find lots of
information on it.

Thanks,
-- 
Brett Parker


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: lvm with raid

2004-06-30 Thread Russell Coker
On Thu, 1 Jul 2004 01:49, Brett Parker [EMAIL PROTECTED] wrote:
 Just create the LVM volume on the RAID device, and that should be it,
 keeping /boot out of the LVM is a requirement fwict, otherwise the
 bootloader can't get access to the initrd or kernel image.

LILO is supposed to work on LVM devices as long as LVM doesn't move the blocks 
around under it (any such movement of /boot requires running lilo again).

I hope that LILO would work on LVM on software RAID, but both LVM and software 
RAID are complex and the interaction may make it fail to work.

If LILO does not work on LVM then please open a bug report about it, it is 
supposed to work.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: lvm with raid

2004-06-30 Thread Christoph Moench-Tegeder
## Gustavo Polillo ([EMAIL PROTECTED]):

   Is it possible to make lvm with raid ?? Is there anyone here that make it?

Works as expected. RAID appears as a simple SCSI drive.

Regards,
Christoph

-- 
Spare Space


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: lvm with raid

2004-06-30 Thread Russell Coker
On Thu, 1 Jul 2004 03:33, Christoph Moench-Tegeder [EMAIL PROTECTED] wrote:
 ## Gustavo Polillo ([EMAIL PROTECTED]):
Is it possible to make lvm with raid ?? Is there anyone here that make
  it?

 Works as expected. RAID appears as a simple SCSI drive.

Only for hardware RAID.  Software RAID looks quite different to the OS and 
there are still some minor quirks in getting it working for boot devices.  
One of which is that for LILO you need the MBR to be provided by the 
debian-mbr program and have the LILO block inside the RAID, as well as having 
identical block numbers in both disks in the RAID-1 (RAID-5 and RAID-0 is not 
supported).

LVM should work with LILO, whether it's a good idea is an entirely separate 
issue.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: lvm with raid

2004-06-30 Thread Brett Parker
On Wed, Jun 30, 2004 at 12:10:31PM -0300, Gustavo Polillo wrote:
 
 
   Is it possible to make lvm with raid ?? Is there anyone here that make it?
 thanks.

I'm currently using LVM over a software RAID 5 on one of our servers,
/boot is a software RAID 1 array with an initrd to mount the LVM root
partition.

Just create the LVM volume on the RAID device, and that should be it,
keeping /boot out of the LVM is a requirement fwict, otherwise the
bootloader can't get access to the initrd or kernel image.

http://www.midhgard.it/docs/lvm/html/ -- this is a good starting point

and if you throw the words LVM on RAID at google, you'll find lots of
information on it.

Thanks,
-- 
Brett Parker




Re: lvm with raid

2004-06-30 Thread Russell Coker
On Thu, 1 Jul 2004 01:49, Brett Parker [EMAIL PROTECTED] wrote:
 Just create the LVM volume on the RAID device, and that should be it,
 keeping /boot out of the LVM is a requirement fwict, otherwise the
 bootloader can't get access to the initrd or kernel image.

LILO is supposed to work on LVM devices as long as LVM doesn't move the blocks 
around under it (any such movement of /boot requires running lilo again).

I hope that LILO would work on LVM on software RAID, but both LVM and software 
RAID are complex and the interaction may make it fail to work.

If LILO does not work on LVM then please open a bug report about it, it is 
supposed to work.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page




Re: lvm with raid

2004-06-30 Thread Christoph Moench-Tegeder
## Gustavo Polillo ([EMAIL PROTECTED]):

   Is it possible to make lvm with raid ?? Is there anyone here that make it?

Works as expected. RAID appears as a simple SCSI drive.

Regards,
Christoph

-- 
Spare Space