Centos7 increases the number of loop devices

Centos7 removed the MAKEDEV command. Unable to use MAKEDEV -V to add loop device

At the same time, Centos7 does not have the /etc/modprobe.conf file, but at the same time adds the modprobe.d folder. The original settings in the conf file only need to create a new conf file with any name under the modprobe.d folder, and write the parameters.

To increase the number of loop devices, just add the options loop max_loop=20 parameter to the conf file

echo "options loop max_loop=20">> /etc/modprobe.d/loopdev.conf

Then execute modprobe -r loop; modprobe loop 

Then ls /dev/loop* can be viewed

{{o.name}}
{{m.name}}

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=324063631&siteId=291194637