Write a few (e.g. 10-100) MB from /dev/zero to the start and end of every 
partition/slice that you know existed on the disk.  I ran into the case where I 
had had a pool in a slice which I then truncated to match the other disk I was 
using for a mirror (the other disk was slightly smaller).  Even though the 
partition table had changed, "zpool status" kept finding the sliver I had 
discarded and saying the disk had a corrupted pool.  This annoyance continued 
for a year or two.  I eventually decided to investigate and fix it.  After 
reading the ZFS ondisk label description I tumbled to the issue and a quick dd 
resolved it.

A dd of the whole disk is a great performance test. for the hardware.  If you 
want to know where the errant labels are use od on the raw disk . Then use a dd 
of /dev/zero  and you'll have read and write speeds ;-)

Have Fun!
Reg


--------------------------------------------
On Sat, 4/2/16, Gabriele Bulfon <[email protected]> wrote:

 Subject: Re: [discuss] converting adpatec volume to jbod cannot replace
 To: [email protected]
 Cc: "Aldo Fornoni" <[email protected]>
 Date: Saturday, April 2, 2016, 9:41 AM
 
 Do you mean I have
 to run the dd on the whole disk without interruption?
 That's gonna be very long on 1TB disks!Isn't there any
 short way to clear both the label, start and end of the
 disk?
 


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to