Linux vgmerge命令:合并两个卷组。
Linux vgmerge命令 功能描述
使用vgmerge命令可以合并两个现有的卷组。
Linux vgmerge命令 语法
vgmerge [选项] [目的卷组名] [源卷组名]
命令中各选项的含义如表所示。
Linux vgmerge命令 示例
将卷组vg2合并到卷组vg1中
[root@rhel ~]# vgmerge -v vg1 vg2
WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
connect() failed on local socket: 没有那个文件或目录
Internal cluster locking initialisation failed.
WARNING: Falling back to local file-based locking.
Volume Groups with the clustered attribute will be inaccessible.
Checking for volume group ''vg2''
Checking for volume group ''vg1''
Archiving volume group ''vg2'' metadata (seqno 40).
Archiving volume group ''vg1'' metadata (seqno 5).
Writing out updated volume group
Creating volume group backup ''/etc/lvm/backup/vg1'' (seqno 6).
Volume group ''vg1_snap2'' successfully merged into ''vg1''