[xen-tools-discuss] Debian Wheezy - lvcreate exits with - failed with exit code 768 -

Eric Engstrom engstrom at sift.net
Tue Jan 6 18:54:42 CET 2015


n 1/6/15 10:54 AM, Axel Beckert wrote:
> On Tue, Jan 06, 2015 at 12:14:44PM +0100, Helge Muehlmeier wrote:
>> I have a Wheezy server and want do create an ubuntu trusty server as domU.
>>
>> I found some informations that I have to backport debootstrap and
>> install a newer xen-tools4.5-1
>> manually.
> 
> Wheezy + 4.5 has a known issue:
> 
>> lvcreate: unrecognized option '--yes'
>>   Error during parsing of command line.
> 
> That one. Newer lvcreate require --yes or go interactive else, older
> don't know it. :-/

For more information, see this bug report:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754517

> Using 4.5 and reverse applying this patch should help:
> 
> https://gitorious.org/xen-tools/xen-tools/commit/58943d3b194a340f3e7a567aab88a207b907539f
> 
> I'll fix it in 4.5.1, but I have not yet an idea how to figure out
> automatically if I need --yes or not.

Since the original patch I suggesting using --yes is not backward
compatible, I also suggested using `yes | lvcreate ...`, but that still
seems risky.

Other commenter in that bug thread above suggesting using
`--wipesignatures n`, but that's not backward compatible either, since I
think that option was introduced around the same time as `--yes`.

Another option would be to pipe `yes n` to lvcreate, which for the EXACT
bug about wiping (swap) would still result in creating the lv, but
(presumably) be safer, albeit with a warning message (probably good
thing anyway).

Regardless, either `yes | lvcreate ...` or `yes n | lvcreate` would get
around the issue I discovered on jessie, but still work for wheezy.

--
Eric Engstrom


More information about the xen-tools-discuss mailing list