Okay, so, with all of the individual parts going through review, what exactly is needed to enable growing the root partition on F18 (or upcoming F19)?
On Thu, Mar 7, 2013 at 4:52 PM, Matthew Miller mattdm@fedoraproject.org wrote:
Okay, so, with all of the individual parts going through review, what exactly is needed to enable growing the root partition on F18 (or upcoming F19)?
For F18 you need: - cloud-utils for the growpart script - dracut-modules-growroot to do the root-partition-resizing-in-the-initramfs magic - cloud-init to resize the root filesystem
cloud-init itself supports growroot as of a few days ago (http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/revision/790) but that requires a 3.8 kernel (and probably some userspace tools as well) that can reload a partition table of a device that's in use. In this case, dracut-modules-growroot is not required anymore, i.e., both the partition and filesystem resizing will be done *after* the initramfs stage.
...Juerg
-- Matthew Miller ☁☁☁ Fedora Cloud Architect ☁☁☁ mattdm@fedoraproject.org _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
On Fri, Mar 08, 2013 at 10:59:55AM +0100, Juerg Haefliger wrote:
For F18 you need:
- cloud-utils for the growpart script
I notice that this pulls in quite a few other things. For the current cloud image, it adds
ceph-libs cryptopp euca2ools gdisk libaio libicu libseccomp m2crypto python-crypto python-paramiko qemu-img
Could we subpackage the growroot script? (It's kind of random that it's in _this_ package instead of cloud-init itself, isn't it? Maybe upstream would consider moving it?)
- dracut-modules-growroot to do the
root-partition-resizing-in-the-initramfs magic
- cloud-init to resize the root filesystem
cloud-init itself supports growroot as of a few days ago (http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/revision/790) but that requires a 3.8 kernel (and probably some userspace tools as well) that can reload a partition table of a device that's in use. In this case, dracut-modules-growroot is not required anymore, i.e., both the partition and filesystem resizing will be done *after* the initramfs stage.
Hmmmm. We actually _have_ the 3.8 kernel in F18 now. Are the userspace tools required different from above?
On Fri, Mar 8, 2013 at 1:59 PM, Matthew Miller mattdm@fedoraproject.org wrote:
On Fri, Mar 08, 2013 at 10:59:55AM +0100, Juerg Haefliger wrote:
For F18 you need:
- cloud-utils for the growpart script
I notice that this pulls in quite a few other things. For the current cloud image, it adds
ceph-libs cryptopp euca2ools gdisk libaio libicu libseccomp m2crypto python-crypto python-paramiko qemu-img
Could we subpackage the growroot script? (It's kind of random that it's in _this_ package instead of cloud-init itself, isn't it? Maybe upstream would consider moving it?)
I asked that too a while ago and upstream wasn't totally against it. The latest cloud-init that supports growroot also supports the use of 'parted' instead of the growpart script. Haven't tried it but that would make all my cloud-utils packaging efforts a waste of time and we don't want that, do we? ;-)
...Juerg
- dracut-modules-growroot to do the
root-partition-resizing-in-the-initramfs magic
- cloud-init to resize the root filesystem
cloud-init itself supports growroot as of a few days ago (http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/revision/790) but that requires a 3.8 kernel (and probably some userspace tools as well) that can reload a partition table of a device that's in use. In this case, dracut-modules-growroot is not required anymore, i.e., both the partition and filesystem resizing will be done *after* the initramfs stage.
Hmmmm. We actually _have_ the 3.8 kernel in F18 now. Are the userspace tools required different from above?
-- Matthew Miller ☁☁☁ Fedora Cloud Architect ☁☁☁ mattdm@fedoraproject.org _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
On Fri, Mar 08, 2013 at 08:13:49PM +0100, Juerg Haefliger wrote:
Could we subpackage the growroot script? (It's kind of random that it's in _this_ package instead of cloud-init itself, isn't it? Maybe upstream would consider moving it?)
I asked that too a while ago and upstream wasn't totally against it. The latest cloud-init that supports growroot also supports the use of 'parted' instead of the growpart script. Haven't tried it but that would make all my cloud-utils packaging efforts a waste of time and we don't want that, do we? ;-)
Well, the cloud-init native way does sound better. I didn't realize actual support for that in F18 was so near to actually possible. Maybe it's better to chalk it up to being a learning experience and move on? :)
On Fri, Mar 8, 2013 at 9:45 PM, Matthew Miller mattdm@fedoraproject.org wrote:
On Fri, Mar 08, 2013 at 08:13:49PM +0100, Juerg Haefliger wrote:
Could we subpackage the growroot script? (It's kind of random that it's in _this_ package instead of cloud-init itself, isn't it? Maybe upstream would consider moving it?)
I asked that too a while ago and upstream wasn't totally against it. The latest cloud-init that supports growroot also supports the use of 'parted' instead of the growpart script. Haven't tried it but that would make all my cloud-utils packaging efforts a waste of time and we don't want that, do we? ;-)
Well, the cloud-init native way does sound better. I didn't realize actual support for that in F18 was so near to actually possible. Maybe it's better to chalk it up to being a learning experience and move on? :)
No reason to throw anything away, though. It's always good to have options. Also, kernel 3.8 will probably never land in RHEL 6 so it's good to have an initramfs option in EPEL, too.
On Fri, Mar 08, 2013 at 10:59:55AM +0100, Juerg Haefliger wrote:
On Thu, Mar 7, 2013 at 4:52 PM, Matthew Miller mattdm@fedoraproject.org wrote: For F18 you need:
- cloud-utils for the growpart script
- dracut-modules-growroot to do the
root-partition-resizing-in-the-initramfs magic
- cloud-init to resize the root filesystem
Sooooo, I installed all of these (including your dracut-modules-growroot scratch build in %post), and it's not magically happening. Any other configuration needed?
On Fri, Mar 8, 2013 at 2:58 PM, Matthew Miller mattdm@fedoraproject.org wrote:
On Fri, Mar 08, 2013 at 10:59:55AM +0100, Juerg Haefliger wrote:
On Thu, Mar 7, 2013 at 4:52 PM, Matthew Miller mattdm@fedoraproject.org wrote: For F18 you need:
- cloud-utils for the growpart script
- dracut-modules-growroot to do the
root-partition-resizing-in-the-initramfs magic
- cloud-init to resize the root filesystem
Sooooo, I installed all of these (including your dracut-modules-growroot scratch build in %post), and it's not magically happening. Any other configuration needed?
Did the initramfs get rebuild after installing the packages?
-- Matthew Miller ☁☁☁ Fedora Cloud Architect ☁☁☁ mattdm@fedoraproject.org _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
On Fri, Mar 08, 2013 at 04:16:02PM +0100, Juerg Haefliger wrote:
- cloud-utils for the growpart script
- dracut-modules-growroot to do the
root-partition-resizing-in-the-initramfs magic
- cloud-init to resize the root filesystem
Sooooo, I installed all of these (including your dracut-modules-growroot scratch build in %post), and it's not magically happening. Any other configuration needed?
Did the initramfs get rebuild after installing the packages?
Yeah, I'm running dracut -f too. Sorry, should have mentioned that. Does it need any special flags or anything?
On Fri, Mar 8, 2013 at 6:16 PM, Matthew Miller mattdm@fedoraproject.org wrote:
On Fri, Mar 08, 2013 at 04:16:02PM +0100, Juerg Haefliger wrote:
- cloud-utils for the growpart script
- dracut-modules-growroot to do the
root-partition-resizing-in-the-initramfs magic
- cloud-init to resize the root filesystem
Sooooo, I installed all of these (including your dracut-modules-growroot scratch build in %post), and it's not magically happening. Any other configuration needed?
Did the initramfs get rebuild after installing the packages?
Yeah, I'm running dracut -f too. Sorry, should have mentioned that. Does it need any special flags or anything?
No special flags required. Does lsinitrd show the growroot module and growpart script? The growroot module also writes info about what its doing to the console, can you see any of those?
...Juerg
-- Matthew Miller ☁☁☁ Fedora Cloud Architect ☁☁☁ mattdm@fedoraproject.org _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud
On Fri, Mar 8, 2013 at 7:03 PM, Juerg Haefliger juergh@gmail.com wrote:
On Fri, Mar 8, 2013 at 6:16 PM, Matthew Miller mattdm@fedoraproject.org wrote:
On Fri, Mar 08, 2013 at 04:16:02PM +0100, Juerg Haefliger wrote:
- cloud-utils for the growpart script
- dracut-modules-growroot to do the
root-partition-resizing-in-the-initramfs magic
- cloud-init to resize the root filesystem
Sooooo, I installed all of these (including your dracut-modules-growroot scratch build in %post), and it's not magically happening. Any other configuration needed?
Did the initramfs get rebuild after installing the packages?
Yeah, I'm running dracut -f too. Sorry, should have mentioned that. Does it need any special flags or anything?
Do you have an image available online to look at?