Add More Loop Device in Linux

We need more loop devices on Linux than the default number (most commonly 8) some time, such as we are building 12 or more virtual machines on top of xen using loop device backed VBD. In this post, we want to use 32 loops.

1. If loop device is compiled directly in the kernel

Pass “max_loop=32” to grub command line.

2. If loop device is compiled as a module

Pass “max_loop=32” as argument to the modprobe command.

# modprobe loop max_loop=32

Eric Zhiqiang Ma

Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *