Re: Resize on dirty array?

2006-08-12 Thread Tuomas Leikola

On 8/9/06, James Peverill [EMAIL PROTECTED] wrote:


I'll try the force assemble but it sounds like I'm screwed.  It sounds
like what happened was that two of my drives developed bad sectors in
different places that weren't found until I accessed certain areas (in
the case of the first failure) and did the drive rebuild (for the second
failure).  In the future, is there a way to help prevent this?


This is a common scenario, and I feel could be helped if md could be
told to not drop the disk on first failure, but rather keep it running
in FAILING status (as opposed to FAILED), until all data from it has
been evacuated (hot spare). This way, if another disk became failing
during rebuild, due to another area of the disk, those blocks could be
rebuilt using the other failing disk. (Also, this allows for the
rebuild to mostly be a ddrescue-style copy operation, rather than
parity computation).

Do you guys feel this is feasible? Neil?
-
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: [bug?] raid1 integrity checking is broken on 2.6.18-rc4

2006-08-12 Thread Justin Piszcz



On Sat, 12 Aug 2006, Chuck Ebbert wrote:


Doing this on a raid1 array:
   echo check /sys/block/md0/md/sync_action

On 2.6.16.27:
   Activity lights on both mirrors show activity for a while,
   then the array status prints on the console.

On 2.6.18-rc4 + the below patch:
   Drive activity light blinks once on one drive, then the
   array status prints (obviously no checking takes place.)


Applied hotfix on 2.6.18-rc4:

--- .prev/drivers/md/md.c   2006-08-08 09:00:44.0 +1000
+++ ./drivers/md/md.c   2006-08-08 09:04:04.0 +1000
@@ -1597,6 +1597,19 @@ void md_update_sb(mddev_t * mddev)

repeat:
   spin_lock_irq(mddev-write_lock);
+
+   if (mddev-degraded  mddev-sb_dirty == 3)
+   /* If the array is degraded, then skipping spares is both
+* dangerous and fairly pointless.
+* Dangerous because a device that was removed from the array
+* might have a event_count that still looks up-to-date,
+* so it can be re-added without a resync.
+* Pointless because if there are any spares to skip,
+* then a recovery will happen and soon that array won't
+* be degraded any more and the spare can go back to sleep then.
+*/
+   mddev-sb_dirty = 1;
+
   sync_req = mddev-in_sync;
   mddev-utime = get_seconds();
   if (mddev-sb_dirty == 3)
--
Chuck

-
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



Is there a doc for all of the options you can echo into the sync_action? 
I'm assuming mdadm does these as well and echo is just another way to run 
work with the array?

-
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: [bug?] raid1 integrity checking is broken on 2.6.18-rc4

2006-08-12 Thread Michael Tokarev
Justin Piszcz wrote:
 Is there a doc for all of the options you can echo into the sync_action?
 I'm assuming mdadm does these as well and echo is just another way to
 run work with the array?

How about the obvious, Documentation/md.txt ?

And no, mdadm does not perform or trigger data integrity checking.

/mjt
-
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


Ajak Keluarga Nikmati Perbualan PERCUMA bersama 2000 Jemaah seluruh Negara.!

2006-08-12 Thread Pekida Prihatin

Bismillah hirrohman nirrohim...



Assalamualaikum Saudara/Saudari,



Apa khabar Saudara/Saudari sekeluarga? semoga sihat-sihat selalu,

Saya MAIZATUL BINTI RAHIM, mewakili pekida RD dan Prihatin Services mengirim 
email ini kepada Saudara/Saudari untuk menyampaikan satu berita besar.

SATU BERITA GEMBIRA UNTUK KITA IAITU PERMINTAAN KITA DENGAN DESAKAN PELBAGAI 
PIHAK AGAR TAWARAN INI DILANJUTKAN TELAH DILULUSKAN. PEKEJ POWERTOOL P38 
BESERTA SUPLEMENTARY LINE DILANJUTKAN HINGGA HUJUNG BULAN OGOS INI. P18 TELAH 
PUN DITAMATKAN. 

LANJUTAN MASA INI MEMBERIKAN KITA PELUANG KEEMASAN UNTUK MENGAJAK SERAMAI 
MUNGKIN SANAK SAUDARA DAN SAHABAT HANDAI DALAM JEMAAH KITA SENDIRI UNTUK TURUT 
SERTA DALAM PEKEJ INI. LEBIH RAMAI TURUTSERTA, LEBIH MERIAH JEMAAH KITA, LEBIH 
BANYAK KENALAN UNTUK TUJUAN PENYATUAN UMMAH DAN KEUTUHAN KELUARGA BESAR KITA.

WALAU BAGAIMANAPUN, SYARAT KELULUSAN TELAH DIPERKETATKAN OLEH PIHAK CELCOM... 
JADI SILA PERHATIKAN SYARAT-SYARAT YANG DITETAPKAN DI BAWAH INI.




Saudara/Saudari ...

Jika dulu kita teragak-agak dan takut-takut untuk menghubungi IBU BAPA, 
KELUARGA, rakan taulan, pelanggan dan jemaah sendiri kerana khuatir bil telefon 
jadi tinggi, kini tidak perlu lagiĀ… dengan Kemudahan PANGGILAN PERCUMA celcom 
POWERTOOLS Pekida Prihatin, kita bukan saja dapat bercakap PERCUMA secara 
individu, malah kita dapat BERSIDANG (CONFERENCE) dengan jemaah kita sekerap 
mungkin dengan PERCUMA.

Kami, Prihatin Services daripada unit RD, Latihan dan Perhubungan Awam PEKIDA 
MALAYSIA ingin menawarkan pekej ini untuk dimanfaatkan oleh ahli keluarga, 
syarikat dan organisasi Saudara/Saudari.

Ini adalah satu Pekej Keluarga yang luar biasa, tidak pernah di tawarkan oleh 
mana mana syarikat Telefon sebelumnya. Dirangka dan diditawarkan khusus untuk 
memupuk sifat keperihatinan melalui perhubungan kemanusiaan untuk dinikmati 
oleh semua ahli dan sukarelawan PRIHATIN UNIT RD PEKIDA MALAYSIA.

Misi kami ialah untuk bekerjasama dengan celcom, menggalakkan perhubungan yang 
rapat di kalangan individu untuk merapatkan persahabatan, kekerabatan dan 
semangat kekeluargaan di kalangan kita. Saudara/Saudari juga boleh manfaatkan 
pekej ini untuk memperbaiki perhubungan perniagaan sesama pekerja dan pelanggan 
Saudara/Saudari tanpa batasan kos dan masa. Berhubunglah semahunya dengan 
PERCUMA.

Saudara/Saudari juga boleh menawarkan pekej EMAS ini kepada Organisasi NGO, 
rakan niaga, rakan politik dan pengundi yang suka berhubung dan siapa saja. Apa 
yang perlu Saudara/Saudari lakukan ialah mendaftar sebagai sukarelawan Prihatin 
UNIT RD PEKIDA MALAYSIA dan Saudara/Saudari layak untuk mendaftar dan 
mendapatkan satu talian Celcom di bawah Pekej EMAS ini dengan PERCUMA, tanpa 
DEPOSIT, tanpa PENJAMIN. 


Dengan Pekej ini, Saudara/Saudari dan kumpulan Saudara/Saudari akan menikmati 
tarif khas yang sangat menarik seperti berikut.

a)  Panggilan PERCUMA sesama kumpulan 
b)  Caj panggilan dan sms MURAH (diskaun melebihi 50%) untuk panggilan 
kepada bukan ahli dalam kumpulan.
c)  KADAR SAMA RATA untuk panggilan yang dibuat dari dan ke mana saja 
seluruh negara, termasuk Sabah dan Serawak.
d)  Caj minima (5 sen untuk panggilan dan 2 sen untuk sms) untuk 8 NOMBOR 
CELCOM YANG DIPILIH.
e)  Maksima 3 TALIAN ANAK percuma dengan bayaran rm 13 sebulan dan boleh 
bercakap percuma sesama ahli dalam kumpulan kecil (1+3=4 talian)
f)  Pendaftaran PERCUMA, tanpa cagaran, tanpa penjamin.
g)  Setiap penama BOLEH MENDAFTAR SEHINGGA 3 TALIAN UTAMA dan setiap talian 
utama boleh memohon 3 talian anak (supplementary).
h)  PERCUMA KAD SIM 128K baru yang dilengkapi dengan memori tinggi dan 
kemudahan 3g. 
i)  Voice activated Service (V.A.S.) percuma, mel suara, panggilan 
menunggu, panggilan persidangan (Conference), clip dan sebagainya.
 
Untuk makluman dan tindakan Saudara/Saudari, tawaran ini akan berakhir sebelum 
hujung bulan Ogos'06. Jadi, janganlah berlengah lagi. Ahli Baiah Pekida adalah 
di kira sebagai layak menyertai skim ini walaupun belum menerima kad ahli 
Pekida... apa yang perlu dilakukan ialah mendaftar sebagai Sukarelawan Khas 
Unit RD Pekida Malaysia secara rasmi (kelulusan serta merta) ...

Kalau bukan Ahli Pekida, Saudara/Saudari wajib mendaftar sebagai sukarelawan 
Prihatin Unit RD Pekida Malaysia sebagai syarat layak. Borang ada kami 
pastekan di www.prihatin/celcom.

Celcom mengenakan syarat yang agak ketat sekarang, hanya yang berdaftar sebagai 
ahli Pekida atau Sukarelawan Prihatin saja diluluskan untuk menggunakan talian 
ini.

Prihatin ditubuhkan oleh unit RD untuk mendekatkan masyarakat dgn Pekida 
melalui kerja kemanusiaan dan kemsyarakatan. Kebanyakkan ahli prihatin akhirnya 
menjadi ahli Pekida yang Prihatin.

Untuk mempercepatkan masa kerana tawaran hingga ke hujung bulan ini saja, maka 
ada baiknya samada Saudara/Saudari datang ke kajang atau email/faxkan  

1. salinan ic depan belakang.

2. beri nama ibu.

3. beri alamat pos untuk penghantaran bil dan simkad.

4. 

Incative RAID5 (it should be active)

2006-08-12 Thread Jacob Madsen

Hey

I only have 4 sata slots in my computer and i have a raid5 array of 
partitions on those 4 disks.


Today i needed a free sata slots, so i unplugged one of the disks and 
booted with knoppix. I then did some work, turned of the computer and 
plugged in the disk again.


I should say that i didnt use the array while using knoppix, so 
everything should be intact.


I then expected to be able to hotadd the missing partition and use the 
array as usual. But its inactive:


# mdadm --detail /dev/md8
mdadm: md device /dev/md8 does not appear to be active.

# cat /proc/mdstat
md8 : inactive sda10[1] sdd10[4] sdc10[3] sdb10[2]
 545791744 blocks

I then stopped the array:
# mdadm -S /dev/md8
mdadm: stopped /dev/md8

And tryed to assemble it:
# mdadm --verbose --assemble /dev/md8 /dev/sda10 /dev/sdb10 /dev/sdc10 
/dev/sdd10

mdadm: looking for devices for /dev/md8
mdadm: /dev/sda10 is identified as a member of /dev/md8, slot 1.
mdadm: /dev/sdb10 is identified as a member of /dev/md8, slot 2.
mdadm: /dev/sdc10 is identified as a member of /dev/md8, slot 3.
mdadm: /dev/sdd10 is identified as a member of /dev/md8, slot 4.
mdadm: no uptodate device for slot 0 of /dev/md8
mdadm: added /dev/sdb10 to /dev/md8 as 2
mdadm: added /dev/sdc10 to /dev/md8 as 3
mdadm: added /dev/sdd10 to /dev/md8 as 4
mdadm: added /dev/sda10 to /dev/md8 as 1
mdadm: /dev/md8 assembled from 2 drives and 1 spare - not enough to 
start the array.


The last line indicate something is wrong, but i have no idea what to 
do. (i still expect all the data to be intact)


Any good ideas will be appreciated alot!

/Jacob
-
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


[bug?] raid1 integrity checking is broken on 2.6.18-rc4

2006-08-12 Thread Chuck Ebbert
Doing this on a raid1 array:
echo check /sys/block/md0/md/sync_action

On 2.6.16.27:
Activity lights on both mirrors show activity for a while,
then the array status prints on the console.

On 2.6.18-rc4 + the below patch:
Drive activity light blinks once on one drive, then the
array status prints (obviously no checking takes place.)


Applied hotfix on 2.6.18-rc4:

--- .prev/drivers/md/md.c   2006-08-08 09:00:44.0 +1000
+++ ./drivers/md/md.c   2006-08-08 09:04:04.0 +1000
@@ -1597,6 +1597,19 @@ void md_update_sb(mddev_t * mddev)
 
 repeat:
spin_lock_irq(mddev-write_lock);
+
+   if (mddev-degraded  mddev-sb_dirty == 3)
+   /* If the array is degraded, then skipping spares is both
+* dangerous and fairly pointless.
+* Dangerous because a device that was removed from the array
+* might have a event_count that still looks up-to-date,
+* so it can be re-added without a resync.
+* Pointless because if there are any spares to skip,
+* then a recovery will happen and soon that array won't
+* be degraded any more and the spare can go back to sleep then.
+*/
+   mddev-sb_dirty = 1;
+
sync_req = mddev-in_sync;
mddev-utime = get_seconds();
if (mddev-sb_dirty == 3)
-- 
Chuck

-
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