Linux vgimportclone命令

Linux vgimportclone命令:导入并重命名复制的卷组。

Linux vgimportclone命令 功能描述

使用vgimportclone命令可以导入并重命名复制的卷组,这有点类似硬件快照。

Linux vgimportclone命令 语法

vgimportclone [选项] [物理卷] [物理卷] [物理卷...]

命令中各选项的含义如表所示。



vgimportclone命令选项含义

Linux vgimportclone命令 示例

将物理卷/dev/sda5、/dev/sda6和/dev/sda7导入并重命名复制的卷组名称为vg1_snap

[root@rhel ~]# vgimportclone -n vg1_snap /dev/sda5 /dev/sda6 /dev/sda7
  WARNING: Activation disabled. No device-mapper interaction will be attempted.
  Physical volume ''/tmp/snap.LGvV5Xng/vgimport2'' changed
  1 physical volume changed / 0 physical volumes not changed
  WARNING: Activation disabled. No device-mapper interaction will be attempted.
  Physical volume ''/tmp/snap.LGvV5Xng/vgimport1'' changed
  1 physical volume changed / 0 physical volumes not changed
  WARNING: Activation disabled. No device-mapper interaction will be attempted.
  Physical volume ''/tmp/snap.LGvV5Xng/vgimport0'' changed
  1 physical volume changed / 0 physical volumes not changed
  WARNING: Activation disabled. No device-mapper interaction will be attempted.
  Volume group ''vg00_snap'' successfully changed
  Volume group ''vg00_snap'' successfully renamed to ''vg1_snap''
  Reading all physical volumes.  This may take a while...
  Found volume group ''vg1_snap'' using metadata type lvm2
赞(0)
未经允许不得转载:极客笔记 » Linux vgimportclone命令
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址