同类相关文章:http://blog.csdn.net/laven54/article/details/9121661
最近发现suse11sp2的系统解决了异常死机的问题之后,又引入了另外的问题,比如这次的lv不能自动激活,问题一个接一个啊。
1、lv可以手动激活,但是不能自动激活
dcoadbpro:~ # lvdisplay
--- Logical volume ---
LV Name /dev/dcoadbpro_lv/lvol0
VG Name dcoadbpro_lv
LV UUID XejtSI-ifla-NJgl-SfkO-KKlq-jRme-eI5Ivt
LV Write Access read/write
LV Status NOT available
LV Size 990.00 GiB
Current LE 253440
Segments 1
Allocation inherit
Read ahead sectors auto
dcoadbpro:~ # vgchange -ay dcoa_lv
dcoadbpro:~ # lvdisplay
--- Logical volume ---
LV Name /dev/dcoadbpro_lv/lvol0
VG Name dcoadbpro_lv
LV UUID XejtSI-ifla-NJgl-SfkO-KKlq-jRme-eI5Ivt
LV Write Access read/write
LV Status available
LV Size 990.00 GiB
Current LE 253440
Segments 1
Allocation inherit
Read ahead sectors auto
dcoadbpro:~ #
dcoadbpro:~ #
dcoadbpro:~ # reboot
Broadcast message from root (pts/0) (Thu Aug 22 08:56:00 2013):
The system is going down for reboot NOW!
dcoadbpro:~ # login as: root
Using keyboard-interactive authentication.
Password:
Last login: Thu Aug 22 08:48:30 2013 from dengweie-2.digitalchina.com
dcoadbpro:~ #
dcoadbpro:~ #
dcoadbpro:~ #
dcoadbpro:~ # lvdisplay
--- Logical volume ---
LV Name /dev/dcoadbpro_lv/lvol0
VG Name dcoadbpro_lv
LV UUID XejtSI-ifla-NJgl-SfkO-KKlq-jRme-eI5Ivt
LV Write Access read/write
LV Status NOT available
LV Size 990.00 GiB
Current LE 253440
Segments 1
Allocation inherit
Read ahead sectors auto
2、检查boot.lvm是否开机启动
dcoadbpro:~ #
dcoadbpro:~ #
dcoadbpro:~ # chkconfig -A | grep boot.lvm
boot.lvm off
boot.lvm_monitor on
dcoadbpro:~ # chkconfig boot.lvm on
dcoadbpro:~ # chkconfig -A | grep boot.lvm
boot.lvm on
boot.lvm_monitor on
dcoadbpro:~ #reboot
dcoadbpro:~ # lvdisplay
--- Logical volume ---
LV Name /dev/dcoadbpro_lv/lvol0
VG Name dcoadbpro_lv
LV UUID XejtSI-ifla-NJgl-SfkO-KKlq-jRme-eI5Ivt
LV Write Access read/write
LV Status NOT available
LV Size 990.00 GiB
Current LE 253440
Segments 1
Allocation inherit
Read ahead sectors auto
3、在/etc/init.d/目录中新增加一个after.local脚本
具体操作如下:
1).如果/etc/init.d/after.local文件本身不存在,请执行 cp /etc/init.d/boot.local /etc/init.d/after.local 命令创建。
2).vi after.local编辑此文件,将其中所有非注释语句都删除,并且在文件中添加/etc/init.d/boot.lvm start 这样一行语句,保存退出
3).重启操作系统,再检查lv的状态,发现lv已经自动激活,到此,问题解决。
___________________________________________________________________________________
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
Author: laven54 (lurou)
Email: laven54@163.com
Blog: http://blog.csdn.net/laven54