Friday, August 13, 2010

Bundling errors in Linux Instances On AWS?

I have come across the following error while bundling since quiet some time now so though of posting the problem with the solution

1048576 bytes (1.0 MB) copied, 0.001952 seconds, 537 MB/s
mke2fs 1.39 (29-May-2006)
mount: could not find any free loop device
ERROR: execution failed: "mount -o loop /mnt/latin-bpo-dev-database-image2010-08-13 /mnt/img-mnt"
Copying / into the image file /mnt/latin-bpo-dev-database-image2010-08-13...

The reason this happens is cause the loopback device that is used while bundling has a maximum limit of 8 and in case the previous
onces havent been cleaninly unmounted and hence the kernel simply refuses to allow a new mount which is done during the bundling process

The Solution to the problem is as follows

[root@:~] losetup -a
[root@:~] losetup -d /dev/loop7
[root@:~] losetup -d /dev/loop6


Once done with this try Bundling the instances

No comments: