WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How to increase loop device

To: "Stephen Liu" <satimis@xxxxxxxxx>
Subject: Re: [Xen-users] How to increase loop device
From: "Jean-Michel Bonnefond" <pompon2@xxxxxxxxx>
Date: Thu, 25 Sep 2008 17:31:09 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 25 Sep 2008 08:31:56 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=gc1jTh64Hpbxd8U2T0mJLbW7SgIgfT4OACGxAklO5B4=; b=hwSdKuioERasg2rGJF8jeUCz4TugMV83XR8K5yY7CdQ6f3mzr73X8etqxcvtG3wBIQ WDhXnNzUEs0DUlWCXxA28ETItYvl5iyfFEsSVC7pCfT0nD2+Phkjur2QshRThcB3sGlS xWgm66lsxcHjnLuUUQA+ppz6GAqD372acokF8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=PPXu7RbFOeCi5oahzYiihbSZIDcO1w3+gfdZBkYQM3+vyrg3pvtJprFbuDLokhQGme L2rzM8a5Vm5e9N30BQ4P9mnnPrQsfoBnD71ADhqBZ6QzIf1bsJ0UuiJIM6HG8Vd272P2 ccEEet+fSNq0YM5tfRemkAA+GqodrxC4gIHps=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <820785.5403.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1222326904.7480.8.camel@aae50> <820785.5403.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

I think you could pass it as an option to your kernel at boot time, if you use grub, add
 max_loop=64
at the end of your kernel line, then reboot the server and look how much devices are declared in /dev/loop*

JM.

2008/9/25 Stephen Liu <satimis@xxxxxxxxx>

--- Dominik Vogt <dominik.vogt@xxxxxxxxxxxx> wrote:

> Am Donnerstag, den 25.09.2008, 15:05 +0800 schrieb Stephen Liu:
> > --- Dominik Vogt <dominik.vogt@xxxxxxxxxxxx> wrote:
>
> >
> > I don't have this file on /etc/modprobe.d/
>
> So you have to create it :-) you can also name the file "xen" or what
> ever. After this you just have to do
>
> rmmod loop
> modprobe loop


Performed following steps;


# vi /etc/modprobe.d/xen
adding following line;
options loop max_loop=64


# rmmod -v loop
ERROR: Module loop does not exist in /proc/modules


# modprobe loop
FATAL: Module loop not found.


# grep -i loop /boot/config-`uname -r`
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_CRYPTOLOOP=m
CONFIG_XEN_NETDEV_LOOPBACK=y


loop is not a module.  What can I do?  TIA


B.R.
Stephen L


> > >
> > > With 64 loop devices you can run up to 32 guests on your host,
> > > assuming
> > > you aren't using loop devices for any other purposes.
> > >
> > > cheers
> > >
> > > Am Donnerstag, den 25.09.2008, 14:37 +0800 schrieb Stephen Liu:
> > > > Hi folks,
> > > >
> > > >
> > > > Debian Etch - host and guest.
> > > >
> > > >
> > > > I'm only allowed running 6 domUs simulataneously.  On starting
> the
> > > 7th
> > > > domU it complains;
> > > >
> > > > $ sudo xm create /etc/xen/xen7.satimis.com.cfg
> > > > Using config file "/etc/xen/xen7.satimis.com.cfg".
> > > > Error: Device 769 (vbd) could not be connected. Failed to find
> an
> > > > unused loop device.
> > > >
> > > >
> > > > $ ls /dev/loop/*
> > > > /dev/loop/0
> > > >
> > > >
> > > > Please advise how to fix the problem.  TIA
> > > >
> > > >
> > > > B.R.
> > > > Stephen L
> > > >
> > > > Send instant messages to your online friends
> > > http://uk.messenger.yahoo.com
> > > >
> > > > _______________________________________________
> > > > Xen-users mailing list
> > > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > > http://lists.xensource.com/xen-users
> > > --
> > > Dominik Vogt
> > > Informatikbetreuer
> > > Universität Bern
> > > Institut für medizinische Lehre (IML)
> > > Abteilung für Assessment und Evaluation (AAE)
> > > Inselspital 37a
> > > CH-3010 Bern
> > >
> > > Phone: 031 632 3584
> > > Mail: dominik.vogt@xxxxxxxxxxxx
> > >
> >
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> --
> Dominik Vogt
> Informatikbetreuer
> Universität Bern
> Institut für medizinische Lehre (IML)
> Abteilung für Assessment und Evaluation (AAE)
> Inselspital 37a
> CH-3010 Bern
>
> Phone: 031 632 3584
> Mail: dominik.vogt@xxxxxxxxxxxx
>


Send instant messages to your online friends http://uk.messenger.yahoo.com

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users