[Bug 439868] Re: UEC images could be smaller

2009-10-12 Thread Scott Moser
I consider this bug fix-released at this point. Builds at http://uec-images.ubuntu.com/karmic/ are now 2G filesystem images. Their sizes are (20091012): 182M karmic-uec-amd64.tar.gz 173M karmic-uec-i386.tar.gz That is down from a 10G filesystem with download sizes of (20091007): 602M

[Bug 439868] Re: UEC images could be smaller

2009-10-09 Thread Thierry Carrez
The official branch is at lp:uec-tools https://code.launchpad.net/~ubuntu-core-dev/uec-tools/ubuntu Can it handle the new default .img.tar.gz format ? At first look it seems it handles only .img or .img.gz... -- UEC images could be smaller https://bugs.launchpad.net/bugs/439868 You received

Re: [Bug 439868] Re: UEC images could be smaller

2009-10-09 Thread Scott Moser
On Fri, 9 Oct 2009, Thierry Carrez wrote: The official branch is at lp:uec-tools https://code.launchpad.net/~ubuntu-core-dev/uec-tools/ubuntu Can it handle the new default .img.tar.gz format ? At first look it seems it handles only .img or .img.gz... I can make it do that, but personally I

[Bug 439868] Re: UEC images could be smaller

2009-10-09 Thread Thierry Carrez
Sure, there is no point in having .img.gz support while we don't ship anything under that format anymore. About img.tar.gz support: having it inside the script would just avoid having to discover the magic -S tar option. -- UEC images could be smaller https://bugs.launchpad.net/bugs/439868 You

[Bug 439868] Re: UEC images could be smaller

2009-10-09 Thread Scott Moser
i think the use case of downloading a .tar.gz file and then resizing it to an image to upload is probably not that common. That said, i added code for it. I've also put this into a branch so it at least can be somewhat controlled. I doubt that its the best place for it, but it needs to go

[Bug 439868] Re: UEC images could be smaller

2009-10-08 Thread Thierry Carrez
Hm, I'm slightly concerned about the need for root rights in that script, as it basically forces the cloud customer that wants to bundle a UEC image to use a client system on which he has root rights (while he could use any system before). Please post your new script to the ubuntu- devel

[Bug 439868] Re: UEC images could be smaller

2009-10-08 Thread Eric Hammond
Thierry: Half joking, I'll point out that anybody can have root on an Ubuntu system for an hour for only $0.10 with EC2. More seriously: If the benefit of the rsync approach is only to increase the number of inodes, perhaps the original mke2fs could be run with the -N option to increase the

[Bug 439868] Re: UEC images could be smaller

2009-10-08 Thread Matt Zimmerman
One of the nice things about the original script was that it didn't require root (to mount filesystems etc.). Regarding the inodes consideration, I *think* that growing the number of inodes works fine, so this shouldn't be an issue if we provide a smallish image and use the script to make it

[Bug 439868] Re: UEC images could be smaller

2009-10-08 Thread Scott Moser
** Changed in: vm-builder (Ubuntu) Status: Triaged = Fix Committed -- UEC images could be smaller https://bugs.launchpad.net/bugs/439868 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

[Bug 439868] Re: UEC images could be smaller

2009-10-08 Thread Scott Moser
I just verified that resizing an image now also increases number of inodes. $ truncate my.img --size 1M $ mke2fs -F my.img /dev/null mke2fs 1.41.9 (22-Aug-2009) $ dumpe2fs my.img | grep 'Inode count' dumpe2fs 1.41.9 (22-Aug-2009) Inode count: 128 $ truncate my.img --size 100M $

[Bug 439868] Re: UEC images could be smaller

2009-10-08 Thread Scott Moser
hopefully final resize script. I know this is a bad place for revision control, so hopefully this will be the last thing put here. Then, we'll put this somewhere in bzr. Newly attached version: - works to increase or decrease size of filesystem - catches errors and gives error messages (rather

[Bug 439868] Re: UEC images could be smaller

2009-10-07 Thread Scott Moser
Oh yeah, the benefit of this script over the other is that it creates a new filesystem rather than resizing an existing one. This overcomes the one negative of a 2G image that I could think of, in that an 'mke2fs' for a 2G filesystem would possibly create fewer inodes than would reasonably be

[Bug 439868] Re: UEC images could be smaller

2009-10-07 Thread Scott Moser
adding another resize-uec-image script. This script should work for extending or shrinking an image. At this point I'm leaning towards creating 2G images for uec output, and resizing them up to 10G before bundling for ec2 with this script here. the 2G images are much more easy to work with, and

Re: [Bug 439868] Re: UEC images could be smaller

2009-10-05 Thread Scott Moser
AMIs for Amazon EC2 should be 10 GB (10240 * 1024 * 1024 bytes) The reason for the above is that in ec2 your '/' filesystem is the size of the filesystem in the image (much as that is in uec). The difference is that in ec2, the only cost to you is the upload of the larger image (compressed).

[Bug 439868] Re: UEC images could be smaller

2009-10-02 Thread Thierry Carrez
OK, so the question is more... what should be the default size ? Is the 10Gb default size inherited from some other requirement, like EC2 ? My main gripe about it is that it seems to require a slightly 10Gb disk allowance to run, so you need to pick the m1.xlarge size to run it. -- UEC images

[Bug 439868] Re: UEC images could be smaller

2009-10-02 Thread Eric Hammond
AMIs for Amazon EC2 should be 10 GB (10240 * 1024 * 1024 bytes) -- UEC images could be smaller https://bugs.launchpad.net/bugs/439868 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list