30 Aug 2011 12:12
Re: [PATCH 9/9] mdadm: 'dump' support
Alexander Kühn <alexander.kuehn <at> nagilum.de>
2011-08-30 10:12:03 GMT
2011-08-30 10:12:03 GMT
Zitat von NeilBrown <neilb <at> suse.de>: > On Thu, 25 Aug 2011 19:14:45 -0700 Dan Williams <dan.j.williams <at> intel.com> > 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.(Continue reading)
RSS Feed