From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stone Subject: Re: Brocken Raid & LUKS Date: Thu, 21 Feb 2013 17:51:45 +0100 Message-ID: <512650A1.7070103@heisl.org> References: <5123A1CC.2000003@heisl.org> <5123BD1F.4060200@turmel.org> <5123E4E9.3020609@heisl.org> <5123EB92.5090505@turmel.org> <5123EF45.6080405@heisl.org> <5123F7C7.7000406@turmel.org> <5123FB71.3060509@heisl.org> <5124196F.6090000@turmel.org> <512516C2.3010105@heisl.org> <5125184A.6040707@turmel.org> <5125C6E9.4050802@heisl.org> <5125EBFD.3050802@heisl.org> <51262137.3040609@turmel.org> <51262CE0.3000809@heisl.org> <51263785.2010001@turmel.org> <51263D9D.1080002@heisl.org> <51263F7E.7040207@turmel.org> <5126421E.3040702@turmel.org> <51264C18.8000201@heisl.org> <51264E26.9050100@turmel.org> <51264EBF.9090000@heisl.org> <51264F7F.3020508@turmel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51264F7F.3020508@turmel.org> Sender: linux-raid-owner@vger.kernel.org To: Phil Turmel Cc: linux-raid List-Id: linux-raid.ids Am 21.02.2013 17:46, schrieb Phil Turmel: > On 02/21/2013 11:43 AM, Stone wrote: >> Am 21.02.2013 17:41, schrieb Phil Turmel: >>> So you actually have five bad spots, two or three sectors apiece. >>> >>> dd if=/dev/zero bs=1024 count=12 seek=1073006628 of=/dev/sdc1 >>> dd if=/dev/zero bs=1024 count=12 seek=1073101016 of=/dev/sdc1 >>> dd if=/dev/zero bs=1024 count=8 seek=1335739456 of=/dev/sdc1 >>> dd if=/dev/zero bs=1024 count=8 seek=1346771164 of=/dev/sdc1 >>> dd if=/dev/zero bs=1024 count=8 seek=1348581732 of=/dev/sdc1 >>> >>> One last check: Did you run "badblocks /dev/sdc" or "badblocks >>> /dev/sdc1" ? >>> >>> Phil >> "/dev/sdc1" >> history: "badblocks -v /dev/sdc1 -o /root/badblocks_sdc1.txt" > Very good. So have you learned enough to be confident when you hit the > key? :-) > > Phil ;-) the dead-key was pressed here the output: root@bender:~# dd if=/dev/zero bs=1024 count=12 seek=1073006628 of=/dev/sdc1 12+0 records in 12+0 records out 12288 bytes (12 kB) copied, 0,00019109 s, 64,3 MB/s root@bender:~# dd if=/dev/zero bs=1024 count=12 seek=1073101016 of=/dev/sdc1 12+0 records in 12+0 records out 12288 bytes (12 kB) copied, 0,00017799 s, 69,0 MB/s root@bender:~# dd if=/dev/zero bs=1024 count=8 seek=1335739456 of=/dev/sdc1 8+0 records in 8+0 records out 8192 bytes (8,2 kB) copied, 0,000159338 s, 51,4 MB/s root@bender:~# dd if=/dev/zero bs=1024 count=8 seek=1346771164 of=/dev/sdc1 8+0 records in 8+0 records out 8192 bytes (8,2 kB) copied, 0,000161977 s, 50,6 MB/s root@bender:~# dd if=/dev/zero bs=1024 count=8 seek=1348581732 of=/dev/sdc1 8+0 records in 8+0 records out 8192 bytes (8,2 kB) copied, 0,000157825 s, 51,9 MB/s now i boot my server with a live cd and recreate my raid. if this was successfully i open the LUKS and check it. here my commands for this step: mdadm --create /dev/md2 --assume-clean --verbose --level=5 --raid-devices=4 /dev/sdc1 /dev/sdd1 missing /dev/sdf1 cryptsetup luksOpen /dev/md2 md2_nas fsck -n /dev/md2