zoukankan      html  css  js  c++  java
  • LV在系统重启后不能自动激活(boot.lvm&after.loca)



    同类相关文章: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

    QQ群: 164734649  可以到群里来提问,Oracle相关的问题我都很感兴趣





  • 相关阅读:
    Springcloud学习笔记32--JeecgBoot 注解扫描范围问题(bean扫描不到的问题)
    Springcloud学习笔记31--JeecgBoot 代码生成器一键生成代码(包括:controller、service、dao、mapper、entity、vue)
    Springcloud学习笔记30--JeecgBoot xxl-job定时任务集成和Redisson分布式锁集成
    Springcloud学习笔记29--JeecgBoot 微服务性能测试Jmeter使用
    Springcloud学习笔记28--JeecgBoot 微服务熔断/限流
    Springcloud学习笔记27--JeecgBoot 微服务feign接口调用
    Springcloud学习笔记26--JeecgBoot 新建一个微服务模块,同时配置动态数据源(使用两个数据库)
    Springcloud学习笔记25--JeecgBoot 启动jeecg-demo服务(升级某个模块为微服务模块)
    Springcloud学习笔记24--JeecgBoot 以微服务的方式启动jeecg-system
    Springcloud学习笔记23--application.yml文件的各个配置项及其含义
  • 原文地址:https://www.cnblogs.com/riskyer/p/3275625.html
Copyright © 2011-2022 走看看