Re: swapping on raid

2000-01-02 Thread Luca Berra
On Sat, Jan 01, 2000 at 07:29:54PM +, Lyndon David wrote: > There has been much talk of problems with swapping on raid. > > As I understand it swapping on raid is fine unless the array is reconstructing. yes > Is this true ? If so then I can get around this problem with an appropriate >ope

RE: swapping on raid

2000-01-01 Thread David Cooley
Part of the problem you may be seeing is SCSI itself. You pull an active SCSI data cable on a non-hot swappable controller/drive and the controller will hang the SCSI and CPU busses the next time it accesses the controller. At 03:42 PM 1/1/2000 -0500, you wrote: >the linux kernel stripes swap

RE: swapping on raid

2000-01-01 Thread anoah
the linux kernel stripes swap writes across multiple swap partitions of the same priority. striping (effectively raid0) provides NO reliability in case of disk failure. this is what the original poster was asking about. to aswer the original question, i have twice tried to make swap on raid1, whi

RE: swapping on raid

2000-01-01 Thread Jason A. Diegmueller
: There has been much talk of problems with swapping on raid. : : As I understand it swapping on raid is fine unless the array : is reconstructing. [snip] I was under the impression that the current Linux swapping code automatically distributed (RAID-0 style) across all available swap partitio

Re: Swapping on raid (Re: raid0, raidtools 0.90 and kernel 2.2.0-pre1)

1999-01-13 Thread M.H.VanLeeuwen
Louis Mandelstam wrote: > > On Tue, 12 Jan 1999, M.H.VanLeeuwen wrote: > > > #swapoff -a > > #dd if=/dev/zero of=swapfile bs=1k count=1 > > #mkswap swapfile > > #losetup /dev/loop3 swapfile > > #swapon /dev/loop3 > > #free > > total used free sharedbuffers

Re: Swapping on raid (Re: raid0, raidtools 0.90 and kernel 2.2.0-pre1)

1999-01-13 Thread Louis Mandelstam
On Tue, 12 Jan 1999, M.H.VanLeeuwen wrote: > #swapoff -a > #dd if=/dev/zero of=swapfile bs=1k count=1 > #mkswap swapfile > #losetup /dev/loop3 swapfile > #swapon /dev/loop3 > #free > total used free sharedbuffers cached > Mem:144044 141608

Re: Swapping on raid

1999-01-13 Thread Super User
Quoth Louis Mandelstam. > >On Wed, 13 Jan 1999, Russell Brown wrote: > >> >Reasons TO USE RAID for swap - if the darn swap partition goes bad, >> >> Except that the lower level SCSI drivers* seem to croak when a disk goes >> bad and lockup the system anyway :-( >> * - aic7xxx in my case. > >I

Re: Swapping on raid

1999-01-13 Thread Louis Mandelstam
On Wed, 13 Jan 1999, Russell Brown wrote: > >Reasons TO USE RAID for swap - if the darn swap partition goes bad, > >the kernel chokes. With a raid swap partition, a bad disk will not > >bring down the system. Guess how I found out!!! > > Except that the lower level SCSI drivers* seem to croak wh

Re: Swapping on raid

1999-01-13 Thread Louis Mandelstam
On Tue, 12 Jan 1999, Michael wrote: > Reasons TO USE RAID for swap - if the darn swap partition goes bad, > the kernel chokes. With a raid swap partition, a bad disk will not > bring down the system. Guess how I found out!!! > > Am I missing something here?? The system in question had 2 swap >

Re: Swapping on raid

1999-01-13 Thread Russell Brown
Quoth Michael. > >> On Tue, 12 Jan 1999, Bohumil Chalupa wrote: >> >> > IMHO there's no reason for using raid0 (striped) partition for swap. >> > If you use two swap partitions with equal priority, the kernel does >> > the striping automatically. > >Reasons TO USE RAID for swap - if the darn

Re: Swapping on raid

1999-01-13 Thread Michael
> On Tue, 12 Jan 1999, Bohumil Chalupa wrote: > > > IMHO there's no reason for using raid0 (striped) partition for swap. > > If you use two swap partitions with equal priority, the kernel does > > the striping automatically. > > > > Another reason why NOT to use ANY RAID device for swap is that

Re: Swapping on raid (Re: raid0, raidtools 0.90 and kernel 2.2.0-pre1)

1999-01-12 Thread M.H.VanLeeuwen
here is what i've tried on 2.0.36 on a raid 5 file system to show it can be done, but I don't normally run this way because of comments about locking up if resources are unavailable #swapoff -a #dd if=/dev/zero of=swapfile bs=1k count=1 #mkswap swapfile #losetup /dev/loop3 swapfile #swapon /d

RE: Swapping on raid (Re: raid0, raidtools 0.90 and kernel 2.2.0-pre1)

1999-01-12 Thread Louis Mandelstam
On Tue, 12 Jan 1999, Bruno Prior wrote: > Haven't tried it myself, but I've had two different reports that swap on RAID-1 > works, from people who didn't realise that it _shouldn't_ work. I encouraged them to > post their experiences to the list, but I don't think either of them did. Could it be

RE: Swapping on raid (Re: raid0, raidtools 0.90 and kernel 2.2.0-pre1)

1999-01-12 Thread Bruno Prior
> In fact it's quite simple: the md device doesn't currently support swap > partitions (or swapping to files on an md device). Haven't tried it myself, but I've had two different reports that swap on RAID-1 works, from people who didn't realise that it _shouldn't_ work. I encouraged them to post

Re: Swapping on raid (Re: raid0, raidtools 0.90 and kernel 2.2.0-pre1)

1999-01-12 Thread Louis Mandelstam
On Tue, 12 Jan 1999, MOLNAR Ingo wrote: > > In fact it's quite simple: the md device doesn't currently support swap > > partitions (or swapping to files on an md device). > > it's quite simple: it should work just fine, if not then it's a bug. (i've > tested it and it works, but YMMV, bug repo

Re: Swapping on raid (Re: raid0, raidtools 0.90 and kernel 2.2.0-pre1)

1999-01-12 Thread MOLNAR Ingo
On Tue, 12 Jan 1999, Louis Mandelstam wrote: > In fact it's quite simple: the md device doesn't currently support swap > partitions (or swapping to files on an md device). it's quite simple: it should work just fine, if not then it's a bug. (i've tested it and it works, but YMMV, bug reports

Re: Swapping on raid (Re: raid0, raidtools 0.90 and kernel 2.2.0-pre1)

1999-01-12 Thread Louis Mandelstam
On Tue, 12 Jan 1999, Bohumil Chalupa wrote: > IMHO there's no reason for using raid0 (striped) partition for swap. > If you use two swap partitions with equal priority, the kernel does > the striping automatically. > > Another reason why NOT to use ANY RAID device for swap is that > it may allo