Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-25 Thread John Garbutt
m] >>>> Sent: 23 June 2014 10:35 >>>> To: OpenStack Development Mailing List (not for usage questions) >>>> Subject: Re: [openstack-dev] [nova] Do any hyperviors allow disk >>>> reduction >>>> as part of resize ? >>>> >>

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-24 Thread Jay Pipes
: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ? On 18 June 2014 21:57, Jay Pipes wrote: On 06/17/2014 05:42 PM, Daniel P. Berrange wrote: On Tue, Jun 17, 2014 at 04:32:36PM +0100, Pádraig Brady wrote: On 06/13/2014 02:22 PM, Day, Phil wrote: I guess the question

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-24 Thread Daniel P. Berrange
-dev] [nova] Do any hyperviors allow disk reduction > > as part of resize ? > > > > On 18 June 2014 21:57, Jay Pipes wrote: > > > On 06/17/2014 05:42 PM, Daniel P. Berrange wrote: > > >> > > >> On Tue, Jun 17, 2014 at 04:32:36PM +0

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-24 Thread Day, Phil
> -Original Message- > From: John Garbutt [mailto:j...@johngarbutt.com] > Sent: 23 June 2014 10:35 > To: OpenStack Development Mailing List (not for usage questions) > Subject: Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction > as part of resize ? >

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-23 Thread John Garbutt
On 18 June 2014 21:57, Jay Pipes wrote: > On 06/17/2014 05:42 PM, Daniel P. Berrange wrote: >> >> On Tue, Jun 17, 2014 at 04:32:36PM +0100, Pádraig Brady wrote: >>> >>> On 06/13/2014 02:22 PM, Day, Phil wrote: I guess the question I’m really asking here is: “Since we know resize do

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-18 Thread Jay Pipes
On 06/17/2014 05:42 PM, Daniel P. Berrange wrote: On Tue, Jun 17, 2014 at 04:32:36PM +0100, Pádraig Brady wrote: On 06/13/2014 02:22 PM, Day, Phil wrote: I guess the question I’m really asking here is: “Since we know resize down won’t work in all cases, and the failure if it does occur will b

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-18 Thread Day, Phil
> -Original Message- > From: Richard W.M. Jones [mailto:rjo...@redhat.com] > Sent: 18 June 2014 12:32 > To: OpenStack Development Mailing List (not for usage questions) > Subject: Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction > as part of resize ? &

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-18 Thread Richard W.M. Jones
-dev] [nova] Do any hyperviors allow disk reduction > > as part of resize ? > > > > On 06/17/2014 10:43 AM, Richard W.M. Jones wrote: > > > On Fri, Jun 13, 2014 at 06:12:16AM -0400, Aryeh Friedman wrote: > > >> Theoretically impossible to reduce disk unless yo

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-18 Thread Day, Phil
> -Original Message- > From: Russell Bryant [mailto:rbry...@redhat.com] > Sent: 17 June 2014 15:57 > To: OpenStack Development Mailing List (not for usage questions) > Subject: Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction > as part of resize ? >

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-17 Thread Daniel P. Berrange
On Tue, Jun 17, 2014 at 04:32:36PM +0100, Pádraig Brady wrote: > On 06/13/2014 02:22 PM, Day, Phil wrote: > > I guess the question I’m really asking here is: “Since we know resize down > > won’t work in all cases, > > and the failure if it does occur will be hard for the user to detect, > > shoul

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-17 Thread Pádraig Brady
On 06/13/2014 02:22 PM, Day, Phil wrote: > I guess the question I’m really asking here is: “Since we know resize down > won’t work in all cases, > and the failure if it does occur will be hard for the user to detect, > should we just block it at the API layer and be consistent across all > Hyper

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-17 Thread Russell Bryant
On 06/17/2014 10:43 AM, Richard W.M. Jones wrote: > On Fri, Jun 13, 2014 at 06:12:16AM -0400, Aryeh Friedman wrote: >> Theoretically impossible to reduce disk unless you have some really nasty >> guest additions. > > True for live resizing. > > For "dead" resizing, libguestfs + virt-resize can do

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-17 Thread Richard W.M. Jones
On Tue, Jun 17, 2014 at 10:56:36AM -0400, Russell Bryant wrote: > On 06/17/2014 10:43 AM, Richard W.M. Jones wrote: > > On Fri, Jun 13, 2014 at 06:12:16AM -0400, Aryeh Friedman wrote: > >> Theoretically impossible to reduce disk unless you have some really nasty > >> guest additions. > > > > True

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-17 Thread Richard W.M. Jones
On Fri, Jun 13, 2014 at 06:12:16AM -0400, Aryeh Friedman wrote: > Theoretically impossible to reduce disk unless you have some really nasty > guest additions. True for live resizing. For "dead" resizing, libguestfs + virt-resize can do it. Although I wouldn't necessarily recommend it. In almost

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-17 Thread John Garbutt
So I am +1 deprecating resize down, mostly for consistency reasons. On 16 June 2014 10:34, Day, Phil wrote: > Beyond what is and isn’t technically possible at the file system level there > is always the problem that the user may have more data than can fit into the > reduced disk. > > I don’t wan

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-16 Thread Eric Brown
This is a fix in flight for the vmware driver. It also throws an exception on disk size reduction. https://review.openstack.org/#/c/85804/ On Jun 13, 2014, at 3:02 AM, "Day, Phil" wrote: > Hi Folks, > > I was looking at the resize code in libvirt, and it has checks which raise an > exce

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-16 Thread Day, Phil
] [nova] Do any hyperviors allow disk reduction as part of resize ? Also ZFS needs to know what is on the guest for example bhyve (the only working hv for bsd currency [vbox kind of also works]) stores the backing store (unless bare metal) as single block file. It is impossible to make that non

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Aryeh Friedman
Also ZFS needs to know what is on the guest for example bhyve (the only working hv for bsd currency [vbox kind of also works]) stores the backing store (unless bare metal) as single block file. It is impossible to make that non-opaque to the outside world unless you can run commands on the instan

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Darren J Moffat
On 06/13/14 16:37, Daniel P. Berrange wrote: The xenapi implementation only works on ext[234] filesystems. That rules >out *BSD, Windows and Linux distributions that don't use ext[234]. RHEL7 >defaults to XFS for instance. Presumably it'll have a hard time if the guest uses LVM for its image o

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Daniel P. Berrange
On Fri, Jun 13, 2014 at 08:24:04AM -0700, Johannes Erdfelt wrote: > On Fri, Jun 13, 2014, Andrew Laski wrote: > > > > On 06/13/2014 10:53 AM, Johannes Erdfelt wrote: > > >On Fri, Jun 13, 2014, Russell Bryant wrote: > > >>On 06/13/2014 09:22 AM, Day, Phil wrote: > > >>>I guess the question I’m re

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Johannes Erdfelt
On Fri, Jun 13, 2014, Andrew Laski wrote: > > On 06/13/2014 10:53 AM, Johannes Erdfelt wrote: > >On Fri, Jun 13, 2014, Russell Bryant wrote: > >>On 06/13/2014 09:22 AM, Day, Phil wrote: > >>>I guess the question I’m really asking here is: “Since we know resize > >>>down won’t work in all cases,

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Andrew Laski
On 06/13/2014 10:53 AM, Johannes Erdfelt wrote: On Fri, Jun 13, 2014, Russell Bryant wrote: On 06/13/2014 09:22 AM, Day, Phil wrote: I guess the question I’m really asking here is: “Since we know resize down won’t work in all cases, and the failure if it does occur will be hard for the user

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Gary Kotton
enStack List mailto:openstack-dev@lists.openstack.org>> Subject: Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ? I guess the question I'm really asking here is: "Since we know resize down won't work in all cases, and the failure if it does oc

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Johannes Erdfelt
On Fri, Jun 13, 2014, Russell Bryant wrote: > On 06/13/2014 09:22 AM, Day, Phil wrote: > > I guess the question I’m really asking here is: “Since we know resize > > down won’t work in all cases, and the failure if it does occur will be > > hard for the user to detect, should we just block it at t

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Russell Bryant
On 06/13/2014 09:22 AM, Day, Phil wrote: > I guess the question I’m really asking here is: “Since we know resize > down won’t work in all cases, and the failure if it does occur will be > hard for the user to detect, should we just block it at the API layer > and be consistent across all Hyperviso

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Day, Phil
ki [mailto:andrew.la...@rackspace.com] Sent: 13 June 2014 13:57 To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ? On 06/13/2014 08:03 AM, Day, Phil wrote: >Theoretically impossible to

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Andrew Laski
onsistently across drivers, it's probably going to end up being not resizing disks down. *From:*Aryeh Friedman [mailto:aryeh.fried...@gmail.com] *Sent:* 13 June 2014 11:12 *To:* OpenStack Development Mailing List (not for usage questions) *Subject:* Re: [openstack-dev] [nova] Do any hyperviors a

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Day, Phil
s just inconsistent error checking across drivers. From: Aryeh Friedman [mailto:aryeh.fried...@gmail.com] Sent: 13 June 2014 11:12 To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ? Theoret

Re: [openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Aryeh Friedman
Theoretically impossible to reduce disk unless you have some really nasty guest additions. On Fri, Jun 13, 2014 at 6:02 AM, Day, Phil wrote: > Hi Folks, > > > > I was looking at the resize code in libvirt, and it has checks which raise > an exception if the target root or ephemeral disks are s

[openstack-dev] [nova] Do any hyperviors allow disk reduction as part of resize ?

2014-06-13 Thread Day, Phil
Hi Folks, I was looking at the resize code in libvirt, and it has checks which raise an exception if the target root or ephemeral disks are smaller than the current ones - which seems fair enough I guess (you can't drop arbitary disk content on resize), except that the because the check is in