Problem adding second mirror to zpool
Paul Kraus
paul at kraus-haus.org
Fri Dec 5 17:25:57 UTC 2014
On 12/5/14 6:19, David J. Weller-Fahy wrote:
> * David J. Weller-Fahy <dave+lists.freebsd-questions at caterva.org>
> [2014-12-04 21:03 -0500]:
>> #v+
>> root at nastie:~ # zpool attach pool \
>> /dev/gptid/c6ede2a4-78a6-11e4-8646-0014222d98da \
>> /dev/gptid/fadbb43d-7aa2-11e4-8452-0014222d98da
>> cannot attach /dev/gptid/fadbb43d-7aa2-11e4-8452-0014222d98da to \
>> /dev/gptid/c6ede2a4-78a6-11e4-8646-0014222d98da: no such device in
>> pool
>> #v-
>>
>> Can anyone tell me how to add the last drive (ada1) without losing the
>> data on the drive?
>
> Apologies: I just re-read this, and it doesn't say what I thought it
> said. To rephrase: Can anyone tell me how to add ada1p1 to the pool
> without losing the data that is on ada3p1 (which is already in the
> pool)? I don't care about the data on ada1p1, because I just formatted
> the darn thing.
The error is about the first device not being in the zpool, so I would
first make sure that I shell completed the device name (path) instead of
cut and paste or typing. A hidden character (backspace maybe) could make
this fail.
If that fails I would try exporting the importing the zpool.
I saw your comment about size, but error is not related to size of the
new device, but that the zpool command cannot find the existing device
in the zpool to attach the new one to. You _may_ still have a space
issue, but that is not this error.
--
--
Paul Kraus paul at kraus-haus.org
Co-Chair Albacon 2014.5 http://www.albacon.org/2014/
More information about the freebsd-questions
mailing list