This is especially important, because if you have 1 failed drive, and you
pull the wrong drive, now you have 2 failed drives.  And that could destroy
the dataset (depending on whether you have raidz-1 or raidz-2)

 

Whenever possible, always get the hotswappable hardware, that will blink a
red light for you, so there can be no mistake.  Even if the hardware doesn't
blink a light for you, you could manually cycle between activity and
non-activity on the disks, to identify the disk yourself . But if that's not
a possibility . if you have no lights on non-hotswappable disks . then . 

 

Given you're going to have to power off the system.

 

Given it's difficult to map the device name to physical wire.

 

I would suggest something like this:  While the system is still on, if the
failed drive is at least writable *a little bit* . then you can "dd
if=/dev/zero of=/dev/rdsk/FailedDiskDevice bs=1024 count=1024" . and then
after the system is off, you could plug the drives into another system
one-by-one, and read the first 1M, and see if it's all zeros.   (Or instead
of dd zero, you could echo some text onto the drive, or whatever you think
is easiest.)  

 

Obviously that's not necessarily an option.  If the drive is completely
dead, totally unwritable, then when you plug the drives one-by-one into
another system, it should be easy to identify the failed drive.

 

 

 

From: zfs-discuss-boun...@opensolaris.org
[mailto:zfs-discuss-boun...@opensolaris.org] On Behalf Of Paul Bruce
Sent: Saturday, December 12, 2009 9:18 AM
To: zfs-discuss@opensolaris.org
Subject: [zfs-discuss] ZFS - how to determine which physical drive to
replace

 

Hi, 

 

I'm just about to build a ZFS system as a home file server in raidz, but I
have one question - pre-empting the need to replace one of the drives if it
ever fails. 

 

How on earth do you determine the actual physical drive that has failed ?

 

I've got the while zpool status thing worked out, but how do I translate the
c1t0d0, c1t0d1 etc.. to a real physical driver. 





I can just see myself looking at the 6 drives, and thinking "mmmm.....
c1t0d1.... i think that's *this* one"...... einee menee minee moe





P

 

 

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to