Install OCZ RevoDrive3X2 on Ubuntu 12.04 x64 with kernel 3.2.0-23-generic
Ubuntu 12.04 64-bit | 3.7.6.3912 | 3.2.0-23-generic | Dec 19, 2012 | No |
![]() |
uname -a
如果不是 3.2.0-23-generic, 那么看一下/boot中有没有这个内核版本.
cd /boot
ls -la
root@digoal-PowerEdge-R610:~# apt-cache search linux-image|grep generic
linux-image-3.2.0-23-generic - Linux kernel image for version 3.2.0 on 64 bit x86 SMP
apt-get install linux-image-3.2.0-23-generic
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; thenset have_grubenv=trueload_env
fi
set default="2>2"
menuentry 'Ubuntu, with Linux 3.5.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {recordfailgfxmode $linux_gfx_modeinsmod gzioinsmod part_msdosinsmod ext2set root='(hd0,msdos1)'search --no-floppy --fs-uuid --set=root 8c78d733-7f2c-49b5-81c8-2ebf2af45979linux /boot/vmlinuz-3.5.0-26-generic root=UUID=8c78d733-7f2c-49b5-81c8-2ebf2af45979 ro quiet splash $vt_handoffinitrd /boot/initrd.img-3.5.0-26-generic
}
menuentry 'Ubuntu, with Linux 3.5.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {recordfailinsmod gzioinsmod part_msdosinsmod ext2set root='(hd0,msdos1)'search --no-floppy --fs-uuid --set=root 8c78d733-7f2c-49b5-81c8-2ebf2af45979echo 'Loading Linux 3.5.0-26-generic ...'linux /boot/vmlinuz-3.5.0-26-generic root=UUID=8c78d733-7f2c-49b5-81c8-2ebf2af45979 ro recovery nomodeset echo 'Loading initial ramdisk ...'initrd /boot/initrd.img-3.5.0-26-generic
}
# 第一级=2的如下
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.5.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {recordfailgfxmode $linux_gfx_modeinsmod gzioinsmod part_msdosinsmod ext2set root='(hd0,msdos1)'search --no-floppy --fs-uuid --set=root 8c78d733-7f2c-49b5-81c8-2ebf2af45979linux /boot/vmlinuz-3.5.0-23-generic root=UUID=8c78d733-7f2c-49b5-81c8-2ebf2af45979 ro quiet splash $vt_handoffinitrd /boot/initrd.img-3.5.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.5.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {recordfailinsmod gzioinsmod part_msdosinsmod ext2set root='(hd0,msdos1)'search --no-floppy --fs-uuid --set=root 8c78d733-7f2c-49b5-81c8-2ebf2af45979echo 'Loading Linux 3.5.0-23-generic ...'linux /boot/vmlinuz-3.5.0-23-generic root=UUID=8c78d733-7f2c-49b5-81c8-2ebf2af45979 ro recovery nomodeset echo 'Loading initial ramdisk ...'initrd /boot/initrd.img-3.5.0-23-generic
}
# 第二级=2的如下 :
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {recordfailgfxmode $linux_gfx_modeinsmod gzioinsmod part_msdosinsmod ext2set root='(hd0,msdos1)'search --no-floppy --fs-uuid --set=root 8c78d733-7f2c-49b5-81c8-2ebf2af45979linux /boot/vmlinuz-3.2.0-23-generic root=UUID=8c78d733-7f2c-49b5-81c8-2ebf2af45979 ro quiet splash $vt_handoffinitrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {recordfailinsmod gzioinsmod part_msdosinsmod ext2set root='(hd0,msdos1)'search --no-floppy --fs-uuid --set=root 8c78d733-7f2c-49b5-81c8-2ebf2af45979echo 'Loading Linux 3.2.0-23-generic ...'linux /boot/vmlinuz-3.2.0-23-generic root=UUID=8c78d733-7f2c-49b5-81c8-2ebf2af45979 ro recovery nomodeset echo 'Loading initial ramdisk ...'initrd /boot/initrd.img-3.2.0-23-generic
}
}
root@digoal-PowerEdge-R610:/boot# uname -a
Linux digoal-PowerEdge-R610 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
接下来就可以下载对应的驱动了 :
wget http://ocz.com/enterprise/download/drivers/OCZ_Ubuntu_12.04_64-bit_3.7.6.3912.tar.gz
解压并将其拷贝到对应的目录.
tar -zxvf OCZ_Ubuntu_12.04_64-bit_3.7.6.3912.tar.gz
cp ocz10xx.ko /mnt/lib/modules/3.2.0-23-generic/kernel/drivers/scsi/mvsas/
在确保没有其他盘用到mvsas驱动的前提下, 移除当前mvsas驱动. (使用lspci -k -vvvv|less 查看这个驱动是不是只有OCZ PCI-E在使用)
rmmod -f mvsas
将mvsas加入黑名单
vi /etc/modprobe.d/blacklist.conf
blacklist mvsas
建立模块依赖列表
depmod -a
查看
root@digoal-PowerEdge-R610:/boot# grep ocz /lib/modules/3.2.0-23-generic/modules.dep
kernel/drivers/scsi/mvsas/ocz10xx.ko:
插入ocz10xx模块
modprobe ocz10xx
将ocz10xx加入initramfs
vi /etc/initramfs-tools/modules
确保/etc/initramfs-tools/modules文件中有如下行
ocz10xx
重建initramfs, 更新所有内核版本
update-initramfs -u -k all -v > /tmp/output.txt
root@digoal-PowerEdge-R610:/boot# lspci -k -vvvv|grep ocz10xxKernel driver in use: ocz10xxKernel modules: ocz10xx, mvsasKernel driver in use: ocz10xxKernel modules: ocz10xx, mvsas
[其他]
root@digoal-PowerEdge-R610:/boot# pvsCouldn't find device with uuid nnedB0-oBoS-PZZ2-ZyVK-yyE5-T9dN-xcEz8C.Couldn't find device with uuid Od1c6B-i2Ow-HFM1-i7Wf-HtzK-9R22-2VHArf.PV VG Fmt Attr PSize PFree/dev/sdb vgdata01 lvm2 a- 185.75g 0 /dev/sdc vgdata01 lvm2 a- 476.37g 0 /dev/sdd vgdata01 lvm2 a- 111.79g 0 /dev/sde vgdata01 lvm2 a- 111.79g 0 unknown device vgdata01 lvm2 a- 111.79g 0 unknown device vgdata01 lvm2 a- 111.79g 0
root@digoal-PowerEdge-R610:/boot# rm /etc/lvm/cache/.cache
rm: remove regular file `/etc/lvm/cache/.cache'? y
移除丢失的pv
root@digoal-PowerEdge-R610:/boot# vgreduce --removemissing vgdata01Couldn't find device with uuid nnedB0-oBoS-PZZ2-ZyVK-yyE5-T9dN-xcEz8C.Couldn't find device with uuid Od1c6B-i2Ow-HFM1-i7Wf-HtzK-9R22-2VHArf.Wrote out consistent volume group vgdata01
root@digoal-PowerEdge-R610:/boot# vgscanReading all physical volumes. This may take a while...Found volume group "vgdata01" using metadata type lvm2
root@digoal-PowerEdge-R610:/boot# pvscanPV /dev/sdb VG vgdata01 lvm2 [185.75 GiB / 185.75 GiB free]PV /dev/sdc VG vgdata01 lvm2 [476.37 GiB / 476.37 GiB free]PV /dev/sdd VG vgdata01 lvm2 [111.79 GiB / 111.79 GiB free]PV /dev/sde VG vgdata01 lvm2 [111.79 GiB / 111.79 GiB free]Total: 4 [885.70 GiB] / in use: 4 [885.70 GiB] / in no VG: 0 [0 ]
重建vg
root@digoal-PowerEdge-R610:/boot# vgremove vgdata01Volume group "vgdata01" successfully removed
root@digoal-PowerEdge-R610:/boot# pvremove /dev/sddLabels on physical volume "/dev/sdd" successfully wiped
root@digoal-PowerEdge-R610:/boot# pvremove /dev/sdeLabels on physical volume "/dev/sde" successfully wiped
root@digoal-PowerEdge-R610:/boot# pvremove /dev/sdbLabels on physical volume "/dev/sdb" successfully wiped
root@digoal-PowerEdge-R610:/boot# pvremove /dev/sdcLabels on physical volume "/dev/sdc" successfully wiped
2. http://www.serversaustralia.com.au/blog/revodrive3-x2-on-ubuntu-oh-yeah/
Install OCZ RevoDrive3X2 on Ubuntu 12.04 x64 with kernel 3.2.0-23-generic相关推荐
- Ubuntu 12.04 x64 下安装 GStreamer+FFmpeg+Opencv
Ubuntu 12.04 x64 下安装 GStreamer+FFmpeg+Opencv 近期,因为安装这三个开发软件,搞编译环境,上网找方法,足足耗费了我一个多星期的时间,现在将经验记录一下,在虚拟 ...
- Lenovo Y480 Ubuntu 12.04 x64 安装NVIDIA GT 650M 驱动
因为虚拟机跑得太卡,这两天在装NVIDIA驱动,先是关掉X-server直接装了官网驱动,然后屏幕分辨率就变成640*480再也搞不回去了...然后才知道双显卡不能这样装驱动. ...
- install yael on the ubuntu 12.04
1. bits/predefs.h no such file or directory ??? sudo apt-get install gcc-multilib 2. sudo gedit /et ...
- 在ubuntu 12.04 x64下编译hadoop2.4
自己编译hadoop:x64 1.安装依赖包 sudo apt-get install g++ autoconf automake libtool cmake zlib1g-dev pkg-confi ...
- Ubuntu 12.04 下编译Android 4.0.3
在Ubuntu 12.04 下编译了Android 4.0.3发现了一大堆错误,网上找了一堆的更改源码啊,Android.mk的解决方法,虽然可以编译成功,但都有点坑爹的成分,为了不误人子弟就分享出来 ...
- Ubuntu 12.04下spark1.0.0 集群搭建(原创)
spark1.0.0新版本的于2014-05-30正式发布啦,新的spark版本带来了很多新的特性,提供了更好的API支持,spark1.0.0增加了Spark SQL组件,增强了标准库(ML.str ...
- adobe reader linux rpm,Ubuntu 12.04安装Adobe Reader
原本从Adobe 官方网站下载了 Adobe Reader, 是个rpm包,先用agt-get 装了rpm(sudo apt-get install rpm), 一安装(rpm -ivh AdobeR ...
- ubuntu 12.04 NDK + android 4.0.3_r1 编译libffmpeg.so
环境:ubuntu 12.04 .android-ndk-r8d . android 4.0.3_r1 编译libffmpeg.so .找了很多开源项目,,终于有一个可以编译通过了,RockPlaye ...
- Ubuntu 12.04 OCZ RevoDrive3 PCI-E performance so bad when cache on
前段时间将服务器装成了Ubuntu 12.04.2 desktop x64. 内核升级到了 3.5.0-26 root@digoal-PowerEdge-R610:~# uname -a Linux ...
最新文章
- 用PHP计算个税,PHP计算个人所得税示例【不使用速算扣除数】
- 无刷新读取数据库 (ajax)
- 混合APP开发框架资料汇总
- DB2快速入门的捷径pdf
- python列表和字典_python使用for遍历字典、列表和字符串的几种方法
- Linux内核无法放到Ubuntu中,无法通过Linux内核模块(Ubuntu)在内核内存中写入
- java get resttemplate 请求传递数组_Java面试中遇到的坑【4】
- 幅度和幅值有区别吗_你知道避雷器与浪涌保护器二者的区别吗?
- 181004有道扇贝每日一句
- OpenDDS项目练习指南
- vue3.0开发环境搭建及vue2.x和vue3.x的区别
- 事件修饰符(2) .prevent 阻止默认事件
- 教育行业数据防泄密解决方案
- jit和jitx区别_JIT,JIS间的区别是什么?
- ros 双wan配置_5G智慧路灯杆网关的双WAN口应用介绍
- 18.鸡尾酒疗法C语言
- 单款地图下载器如何授权
- 设置计算机屏幕保护程序可以使系统节省资源,[判断题] 设置计算机的屏幕保护程序可以使系统节省资源。...
- 08-LTE EMM - LTE EMM and ECM States
- linux 安装sshfs_如何在Linux和Windows上安装SSHFS?
热门文章
- Linux fork之后,到底是子进程先运行还是父进程先运行
- 关于 RAID 5 与热备份(Hot Spare)
- Sql语句中between与in的用法详解
- 如何用小度语音助手,去控制智汀家庭云里不同品牌设备?
- JAVA 老鸟求兼职
- H3C Switch S1848G端口限速
- Go语言笔记:base64/sha1的使用
- SSI–DDI: substructure–substructure interactions for drug–drug interaction prediction
- 设计模式系列【24】:装饰器模式(装饰设计模式)详解
- Linux基础指令(有图有真相,附实例)