This document shows all of the essential software installation process on test machine.
cd gdrcopy
make
make install
Our system need enough Hugepages, before run application, first alloc hugepages.
sudo sh -c "echo 32768 > /proc/sys/vm/nr_hugepages"
cd spdk
git submodule update --init
./configure --with-shared
make
cd spdk/scrips
sudo ./setup.sh
Now we create a buildt
directory, and build all the software in the build
directory.
mkdir build
bash build.sh
It should report no error. And we will get the output binary in the build
directory.
After experiment, you need to uninstall SPDK driver
cd spdk/scrips
sudo ./setup.sh reset
Before installing the SPDK driver, please ensure that there is no data present on the SSD.
During the installation of the SPDK driver on NVMe SSDs, it is possible that some SSDs may not be able to install the SPDK driver. This is mainly due to the SSD already being mounted or having a file system on it. Therefore, it is necessary to unmount the SSD and wipe the file system before installing the SPDK driver.
To unmount and wipe the file system on the selected SSDs, use the following command:
sudo umount /dev/nvmeXn1
sudo wipefs -a /dev/nvmeXn1