Zitat von NeilBrown <neilb@xxxxxxx>:
On Thu, 25 Aug 2011 19:14:45 -0700 Dan Williams <dan.j.williams@xxxxxxxxx>
wrote:
mdadm -E /dev/sda --dump=foo
Creates a sparse file image of /dev/sda named foo with a copy of the
metadata instance found by -E.
When used in the opposite direction:
mdadm -E foo --dump=/dev/sda
...can restore metadata to a given block device, assuming it is
identical size to the dump file.
Suppose we did have a separate 'restore' function - what would it look like?
An option to create?
mdadm --create --restore=some-directory /dev/sda /dev/sdb
Yes, from a UI perspective having separate dump/restore options is
better. Since there is also dump(8)/restore(8) it would also keep the
nomenclature.
Otherwise I would rather name it "copy-metadata" or something as with
copying the user is or should be aware that the order or arguments
matters.
Alex.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html