Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-22 Thread Jim Meyering
"Richard W.M. Jones" <[EMAIL PROTECTED]> wrote: > Secondly there is an API of sorts for lvm2. I think Alasdair called it > "libcmd", but maybe I got that wrong because Google doesn't seem to turn > up anything. In any case, all it is is a wrapper around the command > line tools, so it seems doubt

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-22 Thread David Edmondson
On Thu, Mar 22, 2007 at 11:22:21AM +, Richard W.M. Jones wrote: > Secondly there is an API of sorts for lvm2. I think Alasdair called it > "libcmd", but maybe I got that wrong because Google doesn't seem to turn > up anything. In any case, all it is is a wrapper around the command > line t

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-22 Thread Richard W.M. Jones
Richard W.M. Jones wrote: Richard W.M. Jones wrote: lvcreate -L 3G -n newroot raidvg lvcreate -L 1G -n newswap raidvg I should add, in a libvirt context it's probably going to be useful to also: * list available volume groups (vgscan) * list space available in each VG (vgdisplay name-of-vg)

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-20 Thread David Edmondson
On Tue, Mar 20, 2007 at 04:00:21PM +, Daniel P. Berrange wrote: > On this subject, does ZFS come with any library API for doing all > the volume pool management tasks, or is it all just a set of command > line tools as we'd get with LVM ? There's no Committed C API for ZFS management tasks tod

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-20 Thread David Lutterkort
On Tue, 2007-03-20 at 14:32 +, Daniel P. Berrange wrote: > On Tue, Mar 20, 2007 at 12:06:39PM +, Mark McLoughlin wrote: > > > > I still haven't gone off the notion of a virtual storage pool :-) > > > > https://www.redhat.com/archives/libvir-list/2007-February/msg00057.html > > I lik

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-20 Thread Daniel P. Berrange
On Tue, Mar 20, 2007 at 02:58:16PM +, David Edmondson wrote: > On Tue, Mar 20, 2007 at 02:32:10PM +, Daniel P. Berrange wrote: > > - There are a couple of different types of storage pool > > - An LVM volume group > > - Block devices > > - A directory on a filesystem > > - E

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-20 Thread David Edmondson
On Tue, Mar 20, 2007 at 02:32:10PM +, Daniel P. Berrange wrote: > - There are a couple of different types of storage pool > - An LVM volume group > - Block devices > - A directory on a filesystem > - Each storage pool can have zero or more storage volumes allocated > - LVM

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-20 Thread Daniel P. Berrange
On Tue, Mar 20, 2007 at 12:06:39PM +, Mark McLoughlin wrote: > On Wed, 2007-03-14 at 11:29 +, Daniel P. Berrange wrote: > > On Wed, Mar 14, 2007 at 09:17:37AM +, Richard W.M. Jones wrote: > > > > Should libvirt's C API use/expose libparted structures directly? > > > (And how would this

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-20 Thread Mark McLoughlin
On Wed, 2007-03-14 at 11:29 +, Daniel P. Berrange wrote: > On Wed, Mar 14, 2007 at 09:17:37AM +, Richard W.M. Jones wrote: > > Should libvirt's C API use/expose libparted structures directly? > > (And how would this affect the remote case?) > > I'd say definitely not expose libpartd via l

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-20 Thread Mark McLoughlin
On Tue, 2007-03-13 at 17:22 +0100, Jim Meyering wrote: > How important do you guys think having LVM support will be to ET projects? I've used lvm commands from python code (for stacaccli) and it pained me to do that, especially from an error handling POV - anaconda is another example of c

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-18 Thread Jeremy Katz
On Thu, 2007-03-15 at 14:45 +0100, Jim Meyering wrote: > > Some more open question to everyone else: > > Do we need Python bindings? > > About two weeks ago, I heard that someone started working on > hand-crafted Python and C++ bindings for parted. There are several existing sets of python bindin

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-16 Thread David Lutterkort
On Thu, 2007-03-15 at 14:31 +, Richard W.M. Jones wrote: > Richard W.M. Jones wrote: > > lvcreate -L 3G -n newroot raidvg > > lvcreate -L 1G -n newswap raidvg > > I should add, in a libvirt context it's probably going to be useful to also: > > * list available volume groups (vgscan) > * list

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-15 Thread Richard W.M. Jones
Richard W.M. Jones wrote: lvcreate -L 3G -n newroot raidvg lvcreate -L 1G -n newswap raidvg I should add, in a libvirt context it's probably going to be useful to also: * list available volume groups (vgscan) * list space available in each VG (vgdisplay name-of-vg) * show how VGs relate to PGs

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-15 Thread Richard W.M. Jones
Jim Meyering wrote: "Daniel P. Berrange" <[EMAIL PROTECTED]> wrote: On Wed, Mar 14, 2007 at 09:17:37AM +, Richard W.M. Jones wrote: ... I did look at the API for libparted a few months ago (actually from the rather ancient released version on gnu.org) and it didn't look to me like there wa

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-15 Thread Jim Meyering
"Daniel P. Berrange" <[EMAIL PROTECTED]> wrote: > On Wed, Mar 14, 2007 at 09:17:37AM +, Richard W.M. Jones wrote: ... >> I did look at the API for libparted a few months ago (actually from the >> rather ancient released version on gnu.org) and it didn't look to me >> like there was any way to e

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-15 Thread Jim Meyering
"Richard W.M. Jones" <[EMAIL PROTECTED]> wrote: > Jim Meyering wrote: >> How important do you guys think having LVM support will be to ET projects? >> And when will you need it? > > For my point of view, as former sysadmin, virtualisation and LVM are > such a natural fit for each other that I can

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-14 Thread Daniel P. Berrange
On Wed, Mar 14, 2007 at 09:17:37AM +, Richard W.M. Jones wrote: > Jim Meyering wrote: > >How important do you guys think having LVM support will be to ET projects? > >And when will you need it? > > For my point of view, as former sysadmin, virtualisation and LVM are > such a natural fit for

Re: parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-14 Thread Richard W.M. Jones
Jim Meyering wrote: How important do you guys think having LVM support will be to ET projects? And when will you need it? For my point of view, as former sysadmin, virtualisation and LVM are such a natural fit for each other that I can hardly imagine _not_ provisioning new virtual servers fr

parted/LVM for ET [Re: [Libvir] Storage manager initial requirements and thoughts

2007-03-13 Thread Jim Meyering
Jim Meyering <[EMAIL PROTECTED]> wrote: > Hugh Brock <[EMAIL PROTECTED]> wrote: >> Todos: >> Investigate gparted, one of the partition management tools we already >> have (apis? remote accessibility?) (I believe Jim Meyering volunteered >> to take a look at this?) Recently, I've been spending a