The maximum number of loopback devices in Red Hat Enterprise Linux 6 is set by the
kernel option. For example, to set the maximum number of loopback devices to
, edit the
file, and add
at the end of the kernel line. The line in
would then look something like this:
kernel /vmlinuz-2.6.32-131.0.15.el6.x86_64 ro root=/dev/mapper/root rhgb quiet max_loop=64
Reboot the system for the changes to take affect.
By default, eight
) are automatically generated, but others can be created as desired. For example, to set up a ninth loop device named
, issue the following command as
mknod /dev/loop8 b 7 8
Thus, an administrator on a system with a Red Hat Enterprise Linux 6 kernel can create the desired number of loopback devices manually, with an init script, or with a
max_loop has been set before the system booted,
max_loop becomes a hard limit on the number of loopback devices, and the number of loopback devices cannot be dynamically grown beyond the limit.