[heketi-devel] Should 'heketi-cli device add ...' wipe devices?

Niels de Vos ndevos at redhat.com
Tue May 15 10:14:31 UTC 2018


On Wed, May 09, 2018 at 01:44:06PM -0500, Jose A. Rivera wrote:
> I would very much prefer not making it the default and requiring a
> --force flag. But I would want the feature in general, since I already
> effectively have such a flag in openshift-ansible.

Thanks Jose!

It seems that there is an agreement that a --force option would be
useful. When passing this option, the data on the device will be
destroyed with 'wipefs --all'.

Most likely the option will be called --destroy-existing-data so that
users are warned about the potential danger of using it.

I'll have a look at implementing this.

Niels

> 
> --Jose
> 
> On Wed, May 9, 2018 at 8:30 AM, Niels de Vos <ndevos at redhat.com> wrote:
> > Hi,
> >
> > In https://bugzilla.redhat.com/1433614 there is the suggestion that upon
> > tolopogy load the devices of the nodes should get wiped and not abort if
> > 'pvcreate' detects existing data. I am wondering if this is a good idea
> > to be the default.
> >
> > My preference would be to add a --force flag to the 'device add ...'
> > command, and a matching key/value in the topology.json when 'topology
> > load' is run.
> >
> > Any suggestions or preferences from others? Comments in the bug or a
> > reply to this email are most welcome.
> >
> > Thanks,
> > Niels
> > _______________________________________________
> > heketi-devel mailing list
> > heketi-devel at gluster.org
> > http://lists.gluster.org/mailman/listinfo/heketi-devel


More information about the heketi-devel mailing list