[ILUG] a first pass at a virtual cd jukebox...

kevin lyda kevin at ie.suberic.net
Tue Sep 20 11:09:26 IST 2005


On Tue, Sep 20, 2005 at 11:12:37AM +0200, Tor Bendiksen wrote:
> On Tue, September 20, 2005 0:46, kevin lyda said:
> Looks nice. I will have to have a look at this.
> I have a home-made script that does that somewhere. I'll see if I can dig
> it up. It was used for a FTP mirror server that I ran a while back. Quite
> handy.

yes, i'm curious if there's a way to nfs export /jukebox, but i'm
guessing not.  all the stuff i've read discusses samba exports (ew).

> > the downside i see are that there are only 8 loop devices in the basic
> > install of ubuntu so an ls in /jukebox will generate a load of bad links.
> > so either autofs needs to cull links quicker or i need to boost the
> > number of loop devices (er, how?).  but it works for tabbing out, so i'm
> > happy with it.
> I'm not sure with Ubuntu (or any recent versions of loop), but last time I
> did this you had to spcify it when loading the module. Something like this
> was the workaround for me (back with a 2.4 kernel):
> rmmod loop && modprobe loop max_loop=250

yes, as it turns out, this worked:

    i created /etc/modprobe.d/local-loop with these contents:
    options loop max_loop=64

    then i reloaded loop (once it wasn't used anymore):
    modprobe -r loop; modprobe loop

    and then i bounced udev:
    /etc/init.d/udev restart

that gave me 32 /dev/loop* devices.  which is non-obvious really, but
i'll wait and see if a reboot changes that after my multiple module
loads and unloads.  maybe the other 32 are just shy?

> I suspect you can put this in /etc/modules or somesuch in Ubuntu.

that's another option, yes.

> I believe there is a max of 256 loops by default unless you patch the kernel.

i'll run out of disk space long before then.

kevin

-- 
Kevin Lyda        -=-=-=-=-=-         Who do you have to blow to get a
kevin at ie.suberic.net     -=-=-=-      president impeached around here?!



More information about the ILUG mailing list