Re: Replacing a failed disk in raidz2 zfs (and gpt)

From: Philip M. Gollucci <pgollucci_at_p6m7g8.com>
Date: Thu, 3 Feb 2011 19:41:23 +0000
On 02/03/11 10:38, Stefan Bethke wrote:
> Am 03.02.2011 um 07:11 schrieb Philip M. Gollucci:
> 
>> All filesystems are formatted with the current version.
>>
>> $ hd -v /dev/mfid3p1 | head
>> hd: /dev/mfid3p1: Input/output error
>>
>> $ hd -v /dev/gpt/disk3 | head
>> hd: /dev/gpt/disk3: Input/output error
> 
> Did you install a partition table on the disk (or otherwise opened it for writing) after you swapped it in?
> 
> I can't think of many reasons why you would get an I/O error if the controller is happy with the disk (as the later messages indicate), so I'm speculating that the provider feels it's device has gone; opening mfid3 for writing might trigger a proper GEOM retaste (dd if=/dev/null of=/dev/mfid3).

I kind of figured as such, but alas, I can't manage to do that either.

$ for d in mfid3 mfid3p1 mfid3p2 mfid3p3 gpt/disk3; do
 echo "$d:";
 sudo dd if=/dev/null of=/dev/$d;
done

mfid3:
dd: /dev/mfid3: Operation not permitted
mfid3p1:
0+0 records in
0+0 records out
0 bytes transferred in 0.000027 secs (0 bytes/sec)
mfid3p2:
dd: /dev/mfid3p2: Operation not permitted
mfid3p3:
0+0 records in
0+0 records out
0 bytes transferred in 0.000023 secs (0 bytes/sec)
gpt/disk3:
0+0 records in
0+0 records out
0 bytes transferred in 0.000024 secs (0 bytes/sec)


-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci_at_p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.


Received on Thu Feb 03 2011 - 18:41:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:11 UTC