PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > max loop devices problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

max loop devices problem

Réponse
 
LinkBack Outils de la discussion
Vieux 03/12/2006, 12h50   #1
sardu mohamadu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut max loop devices problem

Hello,

Before all, I'm new, so excuse my possible mailinglisting errors.

I'm trying to mount more than 8 loop file systems, and I can't. I have
followed a thread in this mailinglist telling how to do that, but It
has not work to me.

First, information of my system:
---------------------------------------------------------
# cat /etc/debian_version
testing/unstable

# uname -a
Linux xxxxx 2.6.16-2-686 #1 Sat Jul 15 21:59:21 UTC 2006 i686 GNU/Linux

# lsmod |grep loop
loop 14472 16

# cat /proc/cmdline
root=/dev/hda1 ro max_loop=64
---------------------------------------------------------

Here I post what I'm doing:
---------------------------------------------------------
# ls /dev/loop*
/dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5
/dev/loop6 /dev/loop7

/dev/loop:
.. .. 0

# for i in $(seq 8 63) ; do mknod /dev/loop$i b 7 $i ; done
# ls /dev/loop*
/dev/loop0 /dev/loop14 /dev/loop2 /dev/loop25 /dev/loop30
/dev/loop36 /dev/loop41 /dev/loop47 /dev/loop52 /dev/loop58
/dev/loop63
/dev/loop1 /dev/loop15 /dev/loop20 /dev/loop26 /dev/loop31
/dev/loop37 /dev/loop42 /dev/loop48 /dev/loop53 /dev/loop59
/dev/loop7
/dev/loop10 /dev/loop16 /dev/loop21 /dev/loop27 /dev/loop32
/dev/loop38 /dev/loop43 /dev/loop49 /dev/loop54 /dev/loop6
/dev/loop8
/dev/loop11 /dev/loop17 /dev/loop22 /dev/loop28 /dev/loop33
/dev/loop39 /dev/loop44 /dev/loop5 /dev/loop55 /dev/loop60
/dev/loop9
/dev/loop12 /dev/loop18 /dev/loop23 /dev/loop29 /dev/loop34
/dev/loop4 /dev/loop45 /dev/loop50 /dev/loop56 /dev/loop61
/dev/loop13 /dev/loop19 /dev/loop24 /dev/loop3 /dev/loop35
/dev/loop40 /dev/loop46 /dev/loop51 /dev/loop57 /dev/loop62

/dev/loop:
.. .. 0

# chown root.disk /dev/loop*
# chmod 660 /dev/loop*

# ls -l /dev/loop29
brw-rw---- 1 root disk 7, 29 2006-12-03 14:25 /dev/loop29

# ls -l /dev/loop2
brw-rw---- 1 root disk 7, 2 2006-12-03 13:34 /dev/loop2

# mount |grep loop
/home/disk-img/prova1.com-web on /home/vdomains/prova1.com/web type
ext3 (rw,loop=/dev/loop0,usrquota,grpquota)
/home/disk-img/prova1.com-mail on /home/vdomains/prova1.com/vusers
type ext3 (rw,loop=/dev/loop1,usrquota,grpquota)
/home/disk-img/prova2.com-web on /home/vdomains/prova2.com/web type
ext3 (rw,loop=/dev/loop2)
/home/disk-img/prova2.com-mail on /home/vdomains/prova2.com/vusers
type ext3 (rw,loop=/dev/loop3)
/home/disk-img/prova3.com-web on /home/vdomains/prova3.com/web type
ext3 (rw,loop=/dev/loop4)
/home/disk-img/prova3.com-mail on /home/vdomains/prova3.com/vusers
type ext3 (rw,loop=/dev/loop5)
/home/disk-img/prova4.com-web on /home/vdomains/prova4.com/web type
ext3 (rw,loop=/dev/loop6)
/home/disk-img/prova4.com-mail on /home/vdomains/prova4.com/vusers
type ext3 (rw,loop=/dev/loop7)
---------------------------------------------------------

Here the problems:
---------------------------------------------------------
# mount -o loop /home/disk-img/prova5.com-web /home/vdomains/prova5.com/web/
mount: could not find any free loop device

# mount -o loop=/dev/loop29 /home/disk-img/prova5.com-web
/home/vdomains/prova5.com/web/
/dev/loop29: No existe tal dispositivo o dirección

(error message in English could be: "Device not found")

# ls -l /dev/loop29
brw-rw---- 1 root disk 7, 29 2006-12-03 14:25 /dev/loop29

# losetup -f
losetup: could not find any free loop device

# losetup /dev/loop29
loop: can't open device /dev/loop29: No existe tal dispositivo o dirección

# losetup /dev/loop2
/dev/loop2: [0309]:16290 (/home/disk-img/prova2.com-web)

---------------------------------------------------------

I don't know what I'm doing wrong.
Maybe I have to do something in the /dev/loop/ directory? (now is
there only a device called "0" (number zero)):

# ls -l /dev/loop/0
brw------- 1 root root 7, 0 2006-12-03 13:34 /dev/loop/0

# losetup /dev/loop/0
/dev/loop/0: [0309]:16295 (/home/disk-img/prova1.com-web)

I have viewed that if I restart the computer, all the created devices
(from 8 to 63) has disappeared and I have to creat them again...

I will be very pleasured to you If somebody could explain me what I'm
doing wrong.
Thanks.

Pere Manils
  Réponse avec citation
Vieux 08/12/2006, 17h30   #2
Max Vozeler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: max loop devices problem

Hello sardu mohamadu,

On Sun, Dec 03, 2006 at 01:41:18PM +0100, sardu mohamadu wrote:
> Before all, I'm new, so excuse my possible mailinglisting errors.
>
> I'm trying to mount more than 8 loop file systems, and I can't. I have
> followed a thread in this mailinglist telling how to do that, but It
> has not work to me.
>
> First, information of my system:
> ---------------------------------------------------------
> # cat /etc/debian_version
> testing/unstable
>
> # uname -a
> Linux xxxxx 2.6.16-2-686 #1 Sat Jul 15 21:59:21 UTC 2006 i686 GNU/Linux
>
> # lsmod |grep loop
> loop 14472 16
>
> # cat /proc/cmdline
> root=/dev/hda1 ro max_loop=64


I seem to remember that one has to write the name of the module
before the option, like "loop.max_loop=64", if loop is a module
and not compiled into the kernel. I'm not too sure, but this is
something you could try ;-)

If it doesn't work, an alternative may be to create a file
/etc/modprobe.d/loop (for 2.6 kernels, it's different for 2.4 iand
earlier) and put into it "options loop max_loop=64".

cheers,
Max


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h26.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12713 seconds with 10 queries