On 04/02/2016 04:48 PM, Gabriele Bulfon wrote: > I don't have labelclear on illumos, not my version at least...
Sorry, I wasn't aware that labelclear didn't made it into Illumos yet. > But I read that " > zpool create -f tank $disk & zpool destroy tank" may do the trick? > https://www.illumos.org/issues/1789 Yes, neat idea. This overwrites the labels on the vdev, so a subsequent zpool replace -f should work. Another way would be to seek near the end of <device> # dd if=/dev/zero of=<device> -bs=1M count=1 # dd if=/dev/zero of=<device> -bs=1G seek=999 (you get the idea) > I'll check the zpool.cache too : is it safe to be removed anytime? No, this is meant as a last resort. It will break at least zdb. In case you deleted it, # zpool set cachefile=/etc/zfs/zpool.cache <pool> recreates the cache file. HTH Attila > ---------------------------------------------------------------------------------------- > Sonicle S.r.l. > : > http://www.sonicle.com > Music: > http://www.gabrielebulfon.com > Quantum Mechanics : > http://www.cdbaby.com/cd/gabrielebulfon > ---------------------------------------------------------------------------------- > Da: Attila Fülöp > A: [email protected] > Data: 1 aprile 2016 22.48.57 CEST > Oggetto: Re: [discuss] converting adpatec volume to jbod cannot replace > On 04/01/2016 06:44 PM, Gabriele Bulfon wrote: > The proptotype machine is safe, I can play with it as much as I like, until I > find a good solution for the target machine. > I did the "dd if=/dev/zero of=/dev/....", did the fdisk remove/create > partition...no way :( > Only if I change the disk phisically in between the volume2jbod, the it will > work. > How can this be? Any other way to let it think it's another disk and forget > about the replacing one? > ZFS labels are quite "sticky". IRC each vdev has 4 labels, two at the > start and two at the end. The easiest way to clear them is: > # zpool labelclear > Be sure to clear the labels on the unused device only. > And maybe a > # rm /etc/zfs/zpool.cache > would also help. > Attila > ------------------------------------------- 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
