I'm creating ram block devices on a linux machine for a project we're working on. I don't want to use tmpfs.
When I use module brd to create a ramdisk I run the command
modprobe brd rd_size=1048576
This creates 16 devices -> /dev/ram[0-15] (all of size 1 GB)
But now I want to create two ramdisks of different sizes, say 1Gb and 2Gb.
I also understand I might be able to use lvm to "merge" two devices together and create a new 2GB device from two 1GB devices.
But I want the module to create ramdisks of different sizes without having to do the merging.
I've looked around for a method to do this, but it just seems that there is no way.
Does anyone know if there is a way to do this?