RAID-10 and 4 HDDs - how many HDDs can break without loosing data?

2006-08-10 Thread Tomasz Chmielewski
disks failure? -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

drive is a spare, but I want to make it active - how?

2006-08-10 Thread Tomasz Chmielewski
indicate that it's doing nothing. Why? Is it because the rebuild status is not complete? -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: way too high reconstruction speed - bug?

2006-08-11 Thread Tomasz Chmielewski
Paul Clements wrote: Tomasz Chmielewski wrote: [42949428.59] md: md11: raid array is not clean -- starting background reconstruction [42949428.62] raid10: raid set md11 active with 4 out of 4 devices [42949428.63] md: syncing RAID array md11 [42949428.63] md: minimum

Re: checking md device parity (forced resync) - is it necessary?

2006-09-05 Thread Tomasz Chmielewski
, the crontab entry is wrong: # by default, run at 01:06 on the first Sunday of each month. 6 1 1-7 * 7 root [ -x /usr/share/mdadm/checkarray ] /usr/share/mdadm/checkarray --cron --all --quiet However, it will run at 01:06, on 1st-7th day of each month, and on Sundays (Debian etch). -- Tomasz

Re: checking md device parity (forced resync) - is it necessary?

2006-09-06 Thread Tomasz Chmielewski
Mario 'BitKoenig' Holbe wrote: Tomasz Chmielewski [EMAIL PROTECTED] wrote: # by default, run at 01:06 on the first Sunday of each month. 6 1 1-7 * 7 root [ -x /usr/share/mdadm/checkarray ] You have a quite old version of mdadm. This issue has been fixed in mdadm (2.5.2-8) unstable from 27

checking state of RAID (for automated notifications)

2006-09-06 Thread Tomasz Chmielewski
(8 for this host) letters indicate that RAID is healthy? Or should I count in_sync in cat /sys/block/md*/md/rd*/state? Perhaps the two approaches are the same, though. What's the best way to determine that the RAID is running fine? -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from

Re: checking md device parity (forced resync) - is it necessary?

2006-09-06 Thread Tomasz Chmielewski
Logic ones as well... all tempting. But backups are the killer. :] There's also Thecus n5200, 800 MHz mobile Celeron, which you can supply with 5 drives... :) -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message

Re: checking state of RAID (for automated notifications)

2006-09-07 Thread Tomasz Chmielewski
plugin): #!/bin/bash # checks state of software RAID STATUS=$(ssh -l checkuser -i ~nagios/.ssh/checkuser.rsa $1 cat /tmp/raid-status.txt) if [ $STATUS == RAID status OK ] ; then echo $STATUS exit 0 else echo $STATUS exit 2 fi -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from

Re: Propose of enhancement of raid1 driver

2006-10-21 Thread Tomasz Chmielewski
the balancing in general in a non-trivial task, but would be worth spending time on. Probably what I said before isn't very correct, as RAID-1 has no idea of the filesystem that is on top of it; rather, it will see attempts to access differend areas of the array? -- Tomasz Chmielewski http

Re: resync starts over after each reboot (2.6.18.1)?

2006-10-23 Thread Tomasz Chmielewski
many raid levels, as I'm still experimenting with it). Experimentation is good!! It helps you find my bugs :-) :) -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: resync starts over after each reboot (2.6.18.1)?

2006-10-24 Thread Tomasz Chmielewski
down and powering off the machine doesn't change anything. -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: [PATCH 00/16] raid acceleration and asynchronous offload api for 2.6.22

2007-05-10 Thread Tomasz Chmielewski
engines. The device I use is Thecus n4100, it is Platform: IQ31244 (XScale), and has 600 MHz CPU. -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: [PATCH 00/16] raid acceleration and asynchronous offload api for 2.6.22

2007-05-10 Thread Tomasz Chmielewski
Tomasz Chmielewski schrieb: Ronen Shitrit wrote: The resync numbers you sent, looks very promising :) Do you have any performance numbers that you can share for these set of patches, which shows the Rd/Wr IO bandwidth. I have some simple tests made with hdparm, with the results I don't

how to synchronize two devices (RAID-1, but not really?)

2007-05-15 Thread Tomasz Chmielewski
dd tool would be fine if the data didn't change. RAID-1 would be great, as it tracks changes, but I'd have to create RAID-1 over: /dev/md10 and /dev/sdr. Wouldn't it destroy the contents of /dev/md10? Ideas how to synchronize the contents of two devices (device1 - device2)? -- Tomasz

Re: how to synchronize two devices (RAID-1, but not really?)

2007-05-15 Thread Tomasz Chmielewski
Peter Rabbitson schrieb: Tomasz Chmielewski wrote: I have a RAID-10 setup of four 400 GB HDDs. As the data grows by several GBs a day, I want to migrate it somehow to RAID-5 on separate disks in a separate machine. Which would be easy, if I didn't have to do it online, without stopping any

Re: how to synchronize two devices (RAID-1, but not really?)

2007-05-15 Thread Tomasz Chmielewski
Gordon Henderson schrieb: On Tue, 15 May 2007, Tomasz Chmielewski wrote: I have a RAID-10 setup of four 400 GB HDDs. As the data grows by several GBs a day, I want to migrate it somehow to RAID-5 on separate disks in a separate machine. Which would be easy, if I didn't have to do it online

Re: how to synchronize two devices (RAID-1, but not really?)

2007-05-15 Thread Tomasz Chmielewski
to mirror logical volumes, also needed for live data migration tools such as 'pvmove'. -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: how to synchronize two devices (RAID-1, but not really?)

2007-05-15 Thread Tomasz Chmielewski
a degraded, 4 disk RAID-5 array with just 3 drives? I would add the 4th drive once migration from RAID-10 is done. (I'm aware of the risks - that my degraded RAID-10 will be vulnerable during the migration). -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line

Re: how to synchronize two devices (RAID-1, but not really?)

2007-05-15 Thread Tomasz Chmielewski
=/root/mybitmap \ --write-behind --raid-disks=2 /dev/localdevice --write-mostly /dev/remotedevice One more question - is there a way to estimate the size of the bitmap file? Does it depend on the size of the array? What bitmap file size can I expect for a 600 GB array? -- Tomasz

Re: how to synchronize two devices (RAID-1, but not really?)

2007-05-15 Thread Tomasz Chmielewski
really need to, but that should add up to less than one second. Good, I was wondering if ~200 MB left I have on a filesystem would be enough :) -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL

Re: unreadable drives can be synchronized?

2007-05-18 Thread Tomasz Chmielewski
have a broken drive, which has lots of badblocks - but SMART happily claims it's fine (short/long tests are completed without errors). -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More

adding drives / growing RAID-10?

2007-07-12 Thread Tomasz Chmielewski
(where N is the current number of drives in the array) just to add one drive to RAID-10 is the worst-case scenario. -- Tomasz Chmielewski - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: Linux RAID migration

2007-08-07 Thread Tomasz Chmielewski
. Would the RAID-10 - RAID-5 migration be as easy as in RAID-1 - RAID-5 case? -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: recovery starts from 0 after reboot - normal?

2007-08-24 Thread Tomasz Chmielewski
Justin Piszcz schrieb: On Fri, 24 Aug 2007, Tomasz Chmielewski wrote: I built RAID-5 on a Debian Etch machine running 2.6.22.5 with this command: mdadm --create /dev/md0 --chunk=64 --level=raid5 --raid-devices=5 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 After some time

Re: recovery starts from 0 after reboot - normal?

2007-08-24 Thread Tomasz Chmielewski
Tomasz Chmielewski schrieb: (...) Perhaps, the bitmap is needed then? I guess by default, no internal bitmap is added? # mdadm -X /dev/md0 Filename : /dev/md0 Magic : mdadm: invalid bitmap magic 0x0, the bitmap file appears to be corrupted Version : 0

Re: recovery starts from 0 after reboot - normal?

2007-08-24 Thread Tomasz Chmielewski
more hours. -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: recovery starts from 0 after reboot - normal?

2007-08-27 Thread Tomasz Chmielewski
Tomasz Chmielewski schrieb: Justin Piszcz schrieb: According to the fine manual, BITMAP CHANGES belong to the grow mode. So, let's try to do what the manual says - try to add a bitmap to the active array: # mdadm --grow /dev/md0 --bitmap=internal mdadm: failed to set internal bitmap

why a bitmap file never changes?

2007-08-29 Thread Tomasz Chmielewski
sdd[1](W) dm-47[0] 658800640 blocks super non-persistent [2/2] [UU] [==..] resync = 91.8% (605314368/658800640) finish=65.6min speed=13584K/sec bitmap: 315/315 pages [1260KB], 1024KB chunk, file: /root/backup-bitmap -- Tomasz Chmielewski http://wpkg.org

Re: why a bitmap file never changes?

2007-08-29 Thread Tomasz Chmielewski
Tomasz Chmielewski schrieb: The date of the file is the date of creation of this array, and as I look inside, it's basically almost empty. When looking in a hex editor, zeroes (+bitm etc.)at the beginning, and than FF to the end. Is it normal? Here is some more info about the bitmap

Re: why a bitmap file never changes?

2007-08-31 Thread Tomasz Chmielewski
Tomasz Chmielewski schrieb: Tomasz Chmielewski schrieb: The date of the file is the date of creation of this array, and as I look inside, it's basically almost empty. When looking in a hex editor, zeroes (+bitm etc.)at the beginning, and than FF to the end. Is it normal? Here is some

Re: [linux-lvm] Q: Online resizing ext3 FS

2007-09-12 Thread Tomasz Chmielewski
as of 2.6.22 (before 2.6.22 snapshots needed a lot of RAM; before 2.6.18 there were problems with snapshots removing etc.). Would be good to add some of that info to LVM HOWTO. -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body

Re: [linux-lvm] Q: Online resizing ext3 FS

2007-09-13 Thread Tomasz Chmielewski
Goswin von Brederlow schrieb: Tomasz Chmielewski [EMAIL PROTECTED] writes: (...) Yes, I tried to online resize a similar filesystem (600 MB to 1.2 TB) and it didn't work. At some point, resize2fs would just exit with errors. I tried to do it several times before I figured out what's missing

Re: How do i limit the bandwidth-usage while resyncing on RAID 1?

2007-10-10 Thread Tomasz Chmielewski
-n 19 dm-mirror ;) Look into sync_speed_min and sync_speed_max in /sys/block/mdX/md. -- Tomasz Chmielewski http://blog.wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: One Large md or Many Smaller md for Better Peformance?

2008-01-22 Thread Tomasz Chmielewski
on filesystems placed on md/dm, it's a bit of a pain. -- Tomasz Chmielewski http://wpkg.org - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: identifying failed disk/s in an array.

2008-01-22 Thread Tomasz Chmielewski
be any of the 5 disks in the PC. Is there anyway to make it easier to identify which disk is which?. If the drives have any LEDs, the most reliable way would be: dd if=/dev/drive of=/dev/null Then look which LED is the one which blinks the most. -- Tomasz Chmielewski http://wpkg.org