Tag Archives: ssd

linux find nvme model

yum install nvme-cli
nvme list

Node SN Model Namespace Usage Format FW Rev
—————- ——————– —————————————- ——— ————————– —————- ——–
/dev/nvme0n1 18IB50NWKT7S KXG50ZNV512G TOSHIBA 1 512.11 GB / 512.11 GB 512 B + 0 B AAGA4102
/dev/nvme1n1 18IB50L6KT7S KXG50ZNV512G TOSHIBA 1 512.11 GB / 512.11 GB 512 B + 0 B AAGA4102

btier cache

Btier is not a cache but tiered storage that automatically moves frequently accessible data to fast(er) device.

wget http://sourceforge.net/projects/tier/files/STABLE_PRODUCTION/btier-1.3.11.tar.gz
tar -xvf btier-1.3.11.tar.gz -C /usr/src

dkms add -m btier/1.3.11
dkms build -m btier/1.3.11
dkms install -m btier/1.3.11
modprobe btier

#dkms remove -m btier/1.3.11 –all # You can remove if build was not successful

dkms status
btier, 1.3.11, 2.6.XXX, x86_64: installed

btier_setup -f /dev/sdaX:/dev/sdbX -cVz 4096
echo 0 >/sys/block/sdtiera/tier/sequential_landing
fsck -y /dev/sdtiera
mount -o discard,noatime,nodiratime /dev/sdtiera /some_dir/path

Works with Centos OS.

If you have error “Error! Could not locate dkms.conf file”

vi dkms.conf
PACKAGE_VERSION=”1.3.11″
PACKAGE_NAME=”btier”
AUTOINSTALL=”yes”
BUILT_MODULE_NAME[0]=”btier”
BUILT_MODULE_LOCATION[0]=”kernel/btier”
DEST_MODULE_LOCATION[0]=”/kernel/drivers/block”
REMAKE_INITRD=”no”
MAKE[0]=”make -Wall -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/kernel/btier modules”