This page describes the basic steps to get started on Open CAS Linux
Open CAS Linux builds upon the Open CAS Framework by implementing kernel adapters for the Linux operating system. The Open CAS Linux project is hosted in this GitHub repository.
- First clone the Open CAS Linux project
git clone https://github.com/Open-CAS/open-cas-linux
- Change current directory to project folder and update submodules
git submodule update --init
- Configure Open CAS Linux
- Compile Open CAS Linux and install it
- Verify the kernel modules were inserted by checking their versions
- CAS should now be ready to start. For example, to use block device /dev/nvme0n1 as a caching device:
casadm -S -d /dev/disk/by-id/nvme-SSD
- The output should return the cache instance number, use it to add a backend device.
For example, to use block device /dev/sda1 as a backend device to cache instance 1:
casadm -A -d /dev/disk/by-id/wwn-0x1234567890b100d-part1 -i 1
- Verify CAS instance is operational with:
The output should state status is Running.
Additionally, a command to list block devices such as
lsblk should show the exported CAS device for example /dev/cas1-1
- To stop the cache device execute a command similar to
casadm -T -i 1.
NOTE: You can also create RPM/DEB packages from downloaded sources and install them instead. Instructions are available here
For complete guide to Open CAS Linux please refer to the Admin Guide