On Wednesday 30 November 2011, Mattieu Baptiste wrote:
> Hi all,
>
> I'm trying to reassemble a softraid(4) volume, created with the 'force'
> flag. When I'm trying:
> # bioctl -C force -c C -l /dev/sd1a softraid0
> softraid0: chunk sd1a already in use
> bioctl: ioctl: Invalid argument
>
> According to the manpage, '-c' flag only seems to create the volume,
> and not simply assemble it. I don't see anything else to reassemble a
> volume. What's the correct way, if any ? Is it supported ?
The -c flag creates a volume - if these are chunks have no metadata then it
will create new metadata, otherwise it will reassemble the volume from the
existing metadata.
DO NOT use -C force unless you want to completely reinitialise the metadata
for the volume - in the case of a crypto volume you will generate new
metadata with new disk keys, rendering your existing data unreadable.
The error message you are getting is telling you that sd1a is already in use -
bioctl softraid0 will probably tell you where it is being used (your volume
is either already assembled, or it is part of another volume).
--
"Reason is not automatic. Those who deny it cannot be conquered by it.
Do not count on them. Leave them alone." -- Ayn Rand