Re: [RFD] BIO_RW_BARRIER - what it means for devices, filesystems, and dm/md.

2007-06-02 Thread Tejun Heo
Hello, Jens Axboe wrote: Would that be very different from issuing barrier and not waiting for its completion? For ATA and SCSI, we'll have to flush write back cache anyway, so I don't see how we can get performance advantage by implementing separate WRITE_ORDERED. I think zero-length

Re: [RFD] BIO_RW_BARRIER - what it means for devices, filesystems, and dm/md.

2007-06-02 Thread Jens Axboe
On Sat, Jun 02 2007, Tejun Heo wrote: Hello, Jens Axboe wrote: Would that be very different from issuing barrier and not waiting for its completion? For ATA and SCSI, we'll have to flush write back cache anyway, so I don't see how we can get performance advantage by implementing

Re: [RFD] BIO_RW_BARRIER - what it means for devices, filesystems, and dm/md.

2007-06-02 Thread Jens Axboe
On Fri, Jun 01 2007, Bill Davidsen wrote: Jens Axboe wrote: On Thu, May 31 2007, Bill Davidsen wrote: Jens Axboe wrote: On Thu, May 31 2007, David Chinner wrote: On Thu, May 31, 2007 at 08:26:45AM +0200, Jens Axboe wrote: On Thu, May 31 2007, David Chinner

Re: When does a disk get flagged as bad?

2007-06-02 Thread Alberto Alonso
So, what kind of error is: end_request: I/O error, dev sdb, sector 42644555 end_request: I/O error, dev sdb, sector 124365763 ... I am still trying to figure out why that just make one of my servers unresponsive. Is there a way to have the md code kick that drive out of the array? The

Customize the error emails of `mdadm --monitor`

2007-06-02 Thread Peter Rabbitson
Hi, Is there a way to list the _number_ in addition to the name of a problematic component? The kernel trend to move all block devices into the sdX namespace combined with the dynamic name allocation renders messages like /dev/sdc1 has problems meaningless. It would make remote server

RAID 6 grow problem

2007-06-02 Thread Iain Rauch
Hello, when I run: mdadm /dev/md1 --grow --raid-devices 16 --backup-file=/md1backup I get: mdadm: Need to backup 1792K of critical section.. mdadm: Cannot set device size/shape for /dev/md1: Invalid argument Any help? Iain - To unsubscribe from this list: send the line unsubscribe

Re: RAID 6 grow problem

2007-06-02 Thread Justin Piszcz
On Sat, 2 Jun 2007, Iain Rauch wrote: Hello, when I run: mdadm /dev/md1 --grow --raid-devices 16 --backup-file=/md1backup I get: mdadm: Need to backup 1792K of critical section.. mdadm: Cannot set device size/shape for /dev/md1: Invalid argument Any help? Iain - To unsubscribe from

multiple xor_block() functions

2007-06-02 Thread Adrian Bunk
include/linux/raid/xor.h:extern void xor_block(unsigned int count, unsigned int bytes, void **ptr); drivers/md/xor.c:xor_block(unsigned int count, unsigned int bytes, void **ptr) drivers/md/xor.c:EXPORT_SYMBOL(xor_block); and net/ieee80211/ieee80211_crypt_ccmp.c:static inline void xor_block(u8

Re: multiple xor_block() functions

2007-06-02 Thread Jouni Malinen
On Sat, Jun 02, 2007 at 08:57:46PM +0200, Adrian Bunk wrote: include/linux/raid/xor.h:extern void xor_block(unsigned int count, unsigned int bytes, void **ptr); drivers/md/xor.c:xor_block(unsigned int count, unsigned int bytes, void **ptr) drivers/md/xor.c:EXPORT_SYMBOL(xor_block); and

Re: [RFD] BIO_RW_BARRIER - what it means for devices, filesystems, and dm/md.

2007-06-02 Thread Bill Davidsen
Jens Axboe wrote: On Fri, Jun 01 2007, Bill Davidsen wrote: Jens Axboe wrote: On Thu, May 31 2007, Bill Davidsen wrote: Jens Axboe wrote: On Thu, May 31 2007, David Chinner wrote: On Thu, May 31, 2007 at 08:26:45AM +0200, Jens Axboe wrote:

Re: RAID 6 grow problem

2007-06-02 Thread Iain Rauch
For the critical section part, it may be your syntax.. When I had the problem, Neil showed me the path! :) I don't think it is incorrect, before I thought it was supposted to specify an actual file so I 'touch'ed one and it says file exists. For your issue, do you have raid5/6 GROW support

Re: RAID 6 grow problem

2007-06-02 Thread Justin Piszcz
On Sat, 2 Jun 2007, Iain Rauch wrote: For the critical section part, it may be your syntax.. When I had the problem, Neil showed me the path! :) I don't think it is incorrect, before I thought it was supposted to specify an actual file so I 'touch'ed one and it says file exists. For your

Re: RAID 6 grow problem

2007-06-02 Thread Neil Brown
On Saturday June 2, [EMAIL PROTECTED] wrote: For the critical section part, it may be your syntax.. When I had the problem, Neil showed me the path! :) I don't think it is incorrect, before I thought it was supposted to specify an actual file so I 'touch'ed one and it says file exists.

Re: RAID 6 grow problem

2007-06-02 Thread Iain Rauch
raid6 reshape wasn't added until 2.6.21. Before that only raid5 was supported. You also need to ensure that CONFIG_MD_RAID5_RESHAPE=y. I don't see that in the config. Should I add it? Then reboot? I used apt-get install mdadm to first install it, which gave me 2.5.x then I downloaded the new

Re: RAID 6 grow problem

2007-06-02 Thread Neil Brown
On Saturday June 2, [EMAIL PROTECTED] wrote: raid6 reshape wasn't added until 2.6.21. Before that only raid5 was supported. You also need to ensure that CONFIG_MD_RAID5_RESHAPE=y. I don't see that in the config. Should I add it? Then reboot? You reported that you were running a 2.6.20

RE: [RFD] BIO_RW_BARRIER - what it means for devices, filesystems, and dm/md.

2007-06-02 Thread Guy Watkins
} -Original Message- } From: [EMAIL PROTECTED] [mailto:linux-raid- } [EMAIL PROTECTED] On Behalf Of Jens Axboe } Sent: Saturday, June 02, 2007 10:35 AM } To: Tejun Heo } Cc: David Chinner; [EMAIL PROTECTED]; Phillip Susi; Neil Brown; linux- } [EMAIL PROTECTED]; [EMAIL PROTECTED]; dm- }

Re: Raid-5 long write wait while reading

2007-06-02 Thread tj
Bill Davidsen wrote: tj wrote: Thomas Jager wrote: Hi list. I run a file server on MD raid-5. If a client reads one big file and at the same time another client tries to write a file, the thread writing just sits in uninterruptible sleep until the reader has finished. Only very small