Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2001 11:04:10 -0500
From:      David Gilbert <dgilbert@velocet.ca>
To:        freebsd-stable@freebsd.org
Cc:        Olivier Cortes <olive@deep-ocean.org>
Subject:   Re: Vinum yaks on large IDE drive.
Message-ID:  <15394.3066.177425.730238@trooper.velocet.net>
In-Reply-To: <20011220145816.A23394@neptune.deep-ocean.local>
References:  <15393.8638.345370.445869@trooper.velocet.net> <20011220145816.A23394@neptune.deep-ocean.local>

next in thread | previous in thread | raw e-mail | index | archive | help
I'm following up to the list, because several helpful people sent me
suggestions, but the solution (from Greg Lehey) was rather more
non-obvious.

In summary (hopefully with keywords that will attract the search of
the next person to have problems), I was getting the following from
vinum:

[2:40:539]root@catamaran:/dev>vinum mirror -n media /dev/ad1s1g /dev/ad2s1g
Can't create drive vinumdrive0, device /dev/ad1s1g: Invalid argument (22)

In this case, I was helping someone format drives into a vinum
mirroring configuration and they had already failed a number of
times.  It would appear that vinum doesn't respond entirely well to
garbage on the disk and "vinum dumpconfig -v" showed partial remanents
of previous configs.

The solution ended up being to dd /dev/zero onto the disk with:

dd if=/dev/zero of=/dev/ad1s1g count=10 seek=2

(and then reboot)

(aparently, the seek argument can vary, according to Greg)

If memory serves, disklabel is also sensitive to disk garbage.  It
would really be handy if we had a more "official" way of blanking the
beginning of partitions... posibly part of fdisk's task.

Dave.

-- 
============================================================================
|David Gilbert, Velocet Communications.       | Two things can only be     |
|Mail:       dgilbert@velocet.net             |  equal if and only if they |
|http://daveg.ca                              |   are precisely opposite.  |
=========================================================GLO================

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15394.3066.177425.730238>