Creating a ram disk on AIX

Sometimes using a RAM disk makes sense. I haven’t tested these commands with a recent OS, but here are the steps. Run the following commands to setup a Ram Disk, the disk will not be recreated after bootup:

mkramdisk 16384 (blocks of 512 B = 8 MB)
ls -l /dev | grep ram
mkfs -V jfs /dev/ramdiskx
mkdir /ramdiskx
mount -V jfs -o nointegrity /dev/ramdiskx /ramdiskx

To remove the RAM filesystem:

unmount /ramdiskx
rmramdisk /dev/ramdiskx

Leave a Reply

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