Re: [PATCH] storage rewrite lvm pvcreate -ff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The new code has this but the lvm code still needs the "-ff", "-y"
arguments.  I'm trying out some modifications.  will post once I test.
thx for the hint.

On Tue, Mar 03, 2009 at 10:19:03AM -0600, David Lehman wrote:
> Grr, lvm is such a pain in the ass sometimes. Try this patch:
> 
> diff --git a/storage/formats/lvmpv.py b/storage/formats/lvmpv.py
> index a1c2e53..b87029e 100644
> --- a/storage/formats/lvmpv.py
> +++ b/storage/formats/lvmpv.py
> @@ -87,6 +87,10 @@ class LVMPhysicalVolume(DeviceFormat):
>          """ Consider use of -Z|--zero
>              -f|--force or -y|--yes may be required
>          """
> +        # lvm has issues with persistence of metadata, so here comes
> the
> +        # hammer...
> +        DeviceFormat.destroy(self, *args, kwargs)
> +
>          lvm.pvcreate(self.device)
>          self.exists = True
>          self.notifyKernel()
> 
> 
> On Tue, 2009-03-03 at 16:53 +0100, Joel Granados wrote:
> > I've used this patch for some time and it does not seem to fully work.
> > It avoids lvm returning an error.  but it still requires interaction
> > from the user.  so I have to go to tty1 and input "y" and press return.
> > Have not been able to fix this behavior unfortunately
> > On Tue, Mar 03, 2009 at 12:40:04AM -0600, David Lehman wrote:
> > > 
> > > I hit this one today. Ack.
> > > 
> > > On Mon, 2009-03-02 at 18:21 +0100, Joel Granados wrote:
> > > > Hello list.
> > > > 
> > > > Have not seen this one in the patches sent.  If it is there, I am sorry
> > > > for resending.
> > > > 
> > > > Regads
> > > > _______________________________________________
> > > > Anaconda-devel-list mailing list
> > > > Anaconda-devel-list@xxxxxxxxxx
> > > > https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> > > 
> > > _______________________________________________
> > > Anaconda-devel-list mailing list
> > > Anaconda-devel-list@xxxxxxxxxx
> > > https://www.redhat.com/mailman/listinfo/anaconda-devel-list
> > 
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
Joel Andres Granados
Brno, Czech Republic, Red Hat.

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux