SWAP file on a RAID-10 array possible?

2007-08-15 Thread Tomas France
Hi everyone, I apologize for asking such a fundamental question on the Linux-RAID list but the answers I found elsewhere have been contradicting one another. So, is it possible to have a swap file on a RAID-10 array? Thanks! Tomas - To unsubscribe from this list: send the line

Re: SWAP file on a RAID-10 array possible?

2007-08-15 Thread David Greaves
Tomas France wrote: Hi everyone, I apologize for asking such a fundamental question on the Linux-RAID list but the answers I found elsewhere have been contradicting one another. So, is it possible to have a swap file on a RAID-10 array? yes. mkswap /dev/mdX swapon /dev/mdX Should you use

Re: SWAP file on a RAID-10 array possible?

2007-08-15 Thread Tomas France
Thanks for the answer, David! I kind of think RAID-10 is a very good choice for a swap file. For now I will need to setup the swap file on a simple RAID-1 array anyway, I just need to be prepared when it's time to add more disks and transform the whole thing into RAID-10... which will be big

Re: SWAP file on a RAID-10 array possible?

2007-08-15 Thread David Greaves
Tomas France wrote: Thanks for the answer, David! you're welome By the way, does anyone know if there is a comprehensive how-to on software RAID with mdadm available somewhere? I mean a website where I could get answers to questions like How to convert your system from no RAID to RAID-1,

RE: SWAP file on a RAID-10 array possible?

2007-08-15 Thread Daniel Korstad
I used this site to bring my existing Linux install to a RAID 1. It worked great for me. http://wiki.clug.org.za/wiki/RAID-1_in_a_hurry_with_grub_and_mdadm - Original Message - From: [EMAIL PROTECTED] on behalf of Tomas France Sent: Wed, 8/15/2007 5:28am To:

Moving RAID distro

2007-08-15 Thread Richard Grundy
Hello, I was just wonder if it's possible to move my RAID5 array to another distro, same machine just a different flavor of Linux. Would it just be a case of running: sudo mdadm --create --verbose /dev/md0 --level=5 –raid-devices=5 /dev/sdb /dev/sdc etc Or do I need to run some other command.

Re: Moving RAID distro

2007-08-15 Thread David Greaves
Richard Grundy wrote: Hello, I was just wonder if it's possible to move my RAID5 array to another distro, same machine just a different flavor of Linux. Yes. The only problem will be if it is the root filesystem (unlikely). Would it just be a case of running: sudo mdadm --create --verbose

mdadm --auto=mdp on non-standard named arrays

2007-08-15 Thread Michal Soltys
Just a tiny detail, but it looks like -auto=mdp won't create additional device nodes for raid's partitions (unless explicitely specified by number), when used with non-standard name, i.e. mdadm -C /dev/md/abc -l0 -n2 /dev/sda2 /dev/sdb2 --auto=mdp will only create /dev/md/abc node. Remaining

Re: SWAP file on a RAID-10 array possible?

2007-08-15 Thread Bill Davidsen
Tomas France wrote: Hi everyone, I apologize for asking such a fundamental question on the Linux-RAID list but the answers I found elsewhere have been contradicting one another. So, is it possible to have a swap file on a RAID-10 array? Yes, and very fast as well. Do note that if you (a)

Re: SWAP file on a RAID-10 array possible?

2007-08-15 Thread Michael Tokarev
Tomas France wrote: Thanks for the answer, David! I kind of think RAID-10 is a very good choice for a swap file. For now I will need to setup the swap file on a simple RAID-1 array anyway, I just need to be prepared when it's time to add more disks and transform the whole thing into

detecting read errors after RAID1 check operation

2007-08-15 Thread Mike Accetta
We run a check operation periodically to try and turn up problems with drives about to go bad before they become too severe. In particularly, if there were any drive read errors during the check operation I would like to be able to notice and raise an alarm for human attention so that the

Re: detecting read errors after RAID1 check operation

2007-08-15 Thread Neil Brown
On Wednesday August 15, [EMAIL PROTECTED] wrote: There are already files like /sys/block/md_d0/md/dev-sdb/errors in /sys which would be very convenient to consult but according to the kernel driver implementation the error counts reported there are apparently for corrected errors and not

[PATCH 002 of 2] md: Correctly update sysfs when a raid1 is reshaped.

2007-08-15 Thread NeilBrown
When a raid1 array is reshaped (number of drives changed), the list of devices is compacted, so that slots for missing devices are filled with working devices from later slots. This requires the rd%d symlinks in sysfs to be updated. Signed-off-by: Neil Brown [EMAIL PROTECTED] ### Diffstat

[PATCH 000 of 2] md: bug fixes for 2.6.23-rc

2007-08-15 Thread NeilBrown
Following 2 patches contain bugfixes for md. Both apply to earlier kernels, but probably aren't significant enough for -stable (no oops, no data corruption, no security hole). They should go in 2.6.23 though. Thanks, NeilBrown [PATCH 001 of 2] md: Make sure a re-add after a restart honours

[PATCH 001 of 2] md: Make sure a re-add after a restart honours bitmap when resyncing.

2007-08-15 Thread NeilBrown
Commit 1757128438d41670ded8bc3bc735325cc07dc8f9 was slightly bad. If an array has a write-intent bitmap, and you remove a drive, then readd it, only the changed parts should be resynced. However after the above commit, this only works if the array has not been shut down and restarted. This is

Re: detecting read errors after RAID1 check operation

2007-08-15 Thread Mike Accetta
Neil Brown writes: On Wednesday August 15, [EMAIL PROTECTED] wrote: There are already files like /sys/block/md_d0/md/dev-sdb/errors in /sys which would be very convenient to consult but according to the kernel driver implementation the error counts reported there are apparently for