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

Camera课程

Python教程

Java教程

Web教程

数据库教程

图形图像教程

办公软件教程

Linux教程

计算机教程

大数据教程

开发工具教程