Olaf Krause
2009-Apr-08 10:22 UTC
[Xen-users] Guest says: no space left on device; but thats not true
Hello, running a Gentoo host and several guests (Xen 3.3.0, Gentoo linux-2.6.18-xen-r12) there are some disk space spooks. The guest config files are looking like this: ----- kernel = "/mnt/xen/kernel-2.6.18-xen-r12" memory = 512 name = "plone" disk = [''file:/mnt/xen/plone.img,sda1,w''] root = "/dev/sda1 ro" cpu = 1 extra = "xencons=tty" vif = [ ''vifname=veth4'' ] ----- The vif parameter incremets from one guest to the next in the config files and each guest have its own disk image. All guests use the same domU-kernel, also a linux-2.6.18-xen-r12, build as guest kernel. Every guest has its own image file to run from. Some guests are very happy with this. Other guests seem not to have access to all their disk space: ----- plone ~ # df . -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 4.0G 2.0G 1.9G 52% / plone ~ # touch test touch: cannot touch `test'': No space left on device ----- The space is formatted in ext3 and if i mount the filesystem loopback in the dom0 (after shutting down the guest), the whole space is usable. For instance, a guest on the same host: ----- adappro install # df . -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 4.0G 3.7G 51M 99% / adappro install # touch test adappro install # ll test -rw-r--r-- 1 root root 0 Apr 8 12:54 test ----- The config file for the fine running host: ----- kernel = "/mnt/xen/kernel-2.6.18-xen-r12" memory = 512 name = "adappro" disk = [''file:/mnt/xen/adappro.img,sda1,w''] root = "/dev/sda1 ro" cpu = 2 extra = "xencons=tty" vif = [ ''vifname=veth2'' ] ----- The images are replicated via filecopy from a working guest filesystem. For sure the guest has been shutdown before replicating the file. fsck.ext3 -f runs without issues on the images. Any idea what i''am missing? Best regards Olaf _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Apr-08 12:35 UTC
Re: [Xen-users] Guest says: no space left on device; but thats not true
On Wed, Apr 8, 2009 at 5:22 PM, Olaf Krause <krause@okit.de> wrote:> Hello, > > running a Gentoo host and several guests (Xen 3.3.0, Gentoo > linux-2.6.18-xen-r12) there are some disk space spooks. >> Other guests seem not to have access to all their disk space: > ----- > plone ~ # df . -h > Filesystem Size Used Avail Use% Mounted on > /dev/sda1 4.0G 2.0G 1.9G 52% / > plone ~ # touch test > touch: cannot touch `test'': No space left on device > ----- > > The space is formatted in ext3 and if i mount the filesystem loopback in the > dom0 (after shutting down the guest), the whole space is usable.Are you SURE that if you mount that particular filesystem in dom0 the space is usable? At first look it seems you might be out of inodes. Try a "df -i". Regards. Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jeff Lane
2009-Apr-08 13:32 UTC
Re: [Xen-users] Guest says: no space left on device; but thats not true
On Wed, Apr 8, 2009 at 6:22 AM, Olaf Krause <krause@okit.de> wrote:> Hello, > > running a Gentoo host and several guests (Xen 3.3.0, Gentoo > linux-2.6.18-xen-r12) there are some disk space spooks.Another thought... How many DomUs do you have on your host filesystem? What are their sizes? And more importantly, are you using sparse files for all the DomU images?? If you have, say 20GB of storage for DomUs and you have 5 domUs using sparse file images of 5GB each, you will run out of space, even though the guest thinks it still has plenty left... I''ve run into issues like this before on test systems when over-committing disk space with sparse files. Also, what does the full disk image look like for each guest? Do those numbers take into account swap partitions created by the DomU installation? That can be another problem... Anyway, just a couple other thoughts on the problem... Cheers Jeff _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Olaf Krause
2009-Apr-08 13:46 UTC
Re: [Xen-users] Guest says: no space left on device; but thats not true
Thank you! Shame on me! I did the test with some few big files. The inodes went so low, the booting Linux acquired the the rest. Now i made a backup and created a new image with more inodes. 256k (262144) seems to be the default value. Now I use by hand: mkfs.ext3 -N 1048567 -b 1024 $NEW_IMAGE ...and the guest runs fine. Best regards Olaf Fajar A. Nugraha schrieb:> On Wed, Apr 8, 2009 at 5:22 PM, Olaf Krause <krause@okit.de> wrote: >> Hello, >> >> running a Gentoo host and several guests (Xen 3.3.0, Gentoo >> linux-2.6.18-xen-r12) there are some disk space spooks. >> > >> Other guests seem not to have access to all their disk space: >> ----- >> plone ~ # df . -h >> Filesystem Size Used Avail Use% Mounted on >> /dev/sda1 4.0G 2.0G 1.9G 52% / >> plone ~ # touch test >> touch: cannot touch `test'': No space left on device >> ----- >> >> The space is formatted in ext3 and if i mount the filesystem loopback in the >> dom0 (after shutting down the guest), the whole space is usable. > > Are you SURE that if you mount that particular filesystem in dom0 the > space is usable? > At first look it seems you might be out of inodes. Try a "df -i". > > Regards. > > Fajar_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
<marimuthu.balasubramanian@wipro.com>
2009-Apr-08 15:04 UTC
[Xen-users] Ubuntu guest os unable to login
Hi , I am able to create ubuntu guest using xen-create-image. The guest OS is working on SUSE 11. I am able to successfully login into guest. But if I create guest os on Oracle VM. I am unable to login. Dom u on running condition. It gives login incorrect error inspite of giving right password. Please help us to resolve the issue. Regards Marimuthu Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users