linux 激活vg

解决挂载旧硬盘后无法识别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博客 ” ,链接:http://blog.itpub.net/21993926/viewspace-684103/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/21993926/viewspace-684103/

你可能感兴趣的:(linux 激活vg)