ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux 激活vg

linux 激活vg

原创 Linux操作系统 作者:ad007520 时间:2011-01-18 15:01:04 0 删除 编辑

解决挂载旧硬盘后无法识别lvm
vgscan    找到VolGroup00
vgchange -a y VolGroup00 激活

ex:
[root@rac1 dev]# vgscan
  Reading all physical volumes.  This may take a while...
  /dev/cdrom: open failed: Read-only file system
  Attempt to close device '/dev/cdrom' which is not open.
  Found volume group "omsvg" using metadata type lvm2
[root@rac1 dev]# vgchange -a y omsvg
  1 logical volume(s) in volume group "omsvg" now active

 vgchange - change attributes of a volume group
 -a, --available [e|l]{y|n}

 vgscan - scan all disks for volume groups and rebuild caches

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21993926/viewspace-684103/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: xxx
请登录后发表评论 登录
全部评论

注册时间:2009-06-28

  • 博文量
    137
  • 访问量
    287970