Patrick P Korsnick wrote:
i have a machine with a disk that has some sort of defect and
i've found that if i partition only half of the disk that the
machine will still work. i tried to use 'format' to scan the
disk and find the bad blocks, but it didn't work.
By "it didn't work" did you mean that it didn't find any bad blocks?
I usually see the reverse: too many bad blocks which leads me to
do a "low level format" with the disk utilities from the drive
so as i don't know where the bad blocks are but i'd still like
to use some of the rest of the disk, i thought ZFS might be
able to help. i partitioned the disk so slices 4,5,6 and 7 are
each 5GB. i thought i'd make one or multiple zpools on those
slices and then i'd be able to narrow down where the bad sections
This should work, I'm thinking something like mirror slice 0+4,
1+5, 3+6 where the slices are spread across the disk in order.
As you fill up and scrub the zpool, you might find bad areas.
so my question is can i declare a zpool that spans multiple
c0d0sXX but isn't a mirror and if i can, then will zfs be able
to detect where the problem c0d0sXX is and not use it? if not,
i'll have to make 4 different zpools and experiment with storing
stuff on each to find the approximate location of the bad blocks.
It depends on the nature of the failure. If it is a write failure,
then at this time (IIRC) ZFS will panic. If it is a read failure,
then you may lose access to some files. There is work underway to
improve ZFS RAS, so you will want to use the latest build to avoid
running into cases which were not handled as well in previous
Or, get a new disk. I can get used 40GByte disks at the swap meet
for about $10.
zfs-discuss mailing list