最近要用flashcache, 但是发现目前网上帖子介绍的两种安装方式不方便:
1. 通过源码编译,还得和kernel源码一起编译
2. 通过yum,必须联网
所以把安装flashcache的rpm包单独拿出来,加了个简单的脚本,只要有这个压缩包,无需联网和编译即可安装flashcache。
压缩包见附件。
使用示例:
-bash-4.1# tar xzvf install_flashcache.tar.gz install_flashcache/ install_flashcache/install_flashcache.sh install_flashcache/flashcache-utils-3.1.2-1.el6.elrepo.x86_64.rpm install_flashcache/kmod-flashcache-3.1.2-1.el6.elrepo.x86_64.rpm install_flashcache/uninstall.sh
-bash-4.1# cd install_flashcache -bash-4.1# ll total 108 -rw-r--r-- 1 root root 29140 May 18 16:48 flashcache-utils-3.1.2-1.el6.elrepo.x86_64.rpm -rwxr-xr-x 1 root root 852 May 18 17:54 install_flashcache.sh -rw-r--r-- 1 root root 68940 May 18 16:48 kmod-flashcache-3.1.2-1.el6.elrepo.x86_64.rpm -rw-r--r-- 1 root root 180 May 18 17:52 uninstall.sh
-bash-4.1# sh install_flashcache.sh Start installing flashcache-utils-3.1.2-1.el6.elrepo.x86_64.rpm ... Install flashcache-utils-3.1.2-1.el6.elrepo.x86_64.rpm sucessfully! Start installing kmod-flashcache-3.1.2-1.el6.elrepo.x86_64.rpm ... Install kmod-flashcache-3.1.2-1.el6.elrepo.x86_64.rpm sucessfully!
tips:
1. redhat rpm源下载地址: http://elrepo.org/tiki/Download
时间: 2024-12-12 14:08:47