zoukankan      html  css  js  c++  java
  • How to mark volume groups as active or inactive

    Here we are going to findout how to mark volume groups as active or inactive in Linux using lvchange command in Linux Use lvscan command to get list of volumes

    #/usr/sbin/lvscan

    the output will be

    ACTIVE            ‘/dev/Linux_volume/LogVol00′ [33.78 GB] inherit
    ACTIVE            ‘/dev/Linux_volume/LogVol02′ [10.00 GB] inherit
    ACTIVE            ‘/dev/VolGroup00/LogVol00′ [35.25 GB] inherit
    ACTIVE            ‘/dev/VolGroup00/LogVol01′ [1.94 GB] inherit

    Then for testing, mark this Linux_volume as inactive by following procedure. Umount the partitions before proceeding.Then use the following command to mark volume group inactive.

    #/usr/sbin/lvchange -a n /dev/Linux_volume

    Verify it with lvscan.The current lvscan output will be,

    inactive          ‘/dev/Linux_volume/LogVol00′ [33.78 GB] inherit
    inactive          ‘/dev/Linux_volume/LogVol02′ [10.00 GB] inherit
    ACTIVE            ‘/dev/VolGroup00/LogVol00′ [35.25 GB] inherit
    ACTIVE            ‘/dev/VolGroup00/LogVol01′ [1.94 GB] inherit

    We can change it back to active with following command

    # /usr/sbin/lvchange -a y /dev/Linux_volume

    Note:
     You must Umount the partitions before proceeding to mark volume group inactive
    And mount the logical volumes after marking active


    Read more: http://www.lynuxstuff.com/2011/06/how-to-mark-volume-groups-as-active-or-inactive/#ixzz23ftkCdmG

  • 相关阅读:
    Jmeter之Bean shell使用(一)
    CSS知识点 2
    0523 CSS知识点
    0522 HTML表单 CSS基础
    0521 HTML基础
    0515线程
    0514 队列 管道 进程池 回调函数
    0510进程 multiprocess模块
    0509操作系统发展史 进程
    0507黏包
  • 原文地址:https://www.cnblogs.com/feisky/p/2641961.html
Copyright © 2011-2022 走看看