存储池一介绍

先看一下存储池的介绍

存储池是 Data Protection Manager (DPM) 服务器在其中存储副本、卷影副本和传输日志的一组磁盘

基本概念

  1. libvirt可以以存储池的形式对存储进行统一管理,简化操作
  2. 对于虚拟机操作来说,存储池和卷管理并不是必须的
  3. 支持对一下存储池 

 dir:filesystem directory disk

 disk:pysiscal disk sevice

 fs:Pre-Formatted block device

 gluster:gluster filesystem

 iscsi:ISCSI Target

logical:LVM Volume Group

mpath:Mutipath device Enumerator

netfs:Network Export Directory

rbd: RADOS Block Device/Ceph

scsi:SCSI Host Adapter

sheepdog: Sheepdog Filesystem

[root@kvm1 ~]# cd /etc/libvirt//storage/
[root@kvm1 storage]# ll
total 12
drwxr-xr-x 2 root root  54 Jun  5 16:30 autostart
-rw------- 1 root root 538 Jun  5 15:11 default.xml
-rw------- 1 root root 511 Jun  5 15:58 iso.xml
-rw------- 1 root root 508 Jun  5 16:30 vm.xml
[root@kvm1 storage]# cat iso.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh pool-edit iso
or other application using the libvirt API.
-->

<pool type='dir'>
  <name>iso</name>
  <uuid>9cfabb76-320f-47fe-8440-eb373a69795c</uuid>
  <capacity unit='bytes'>0</capacity>
  <allocation unit='bytes'>0</allocation>
  <available unit='bytes'>0</available>
  <source>
  </source>
  <target>
    <path>/iso</path>
  </target>
</pool>

[root@kvm1 autostart]# ll
total 0
lrwxrwxrwx 1 root root 32 Jun  5 15:11 default.xml -> /etc/libvirt/storage/default.xml
lrwxrwxrwx 1 root root 28 Jun  5 15:58 iso.xml -> /etc/libvirt/storage/iso.xml
lrwxrwxrwx 1 root root 27 Jun  5 16:30 vm.xml -> /etc/libvirt/storage/vm.xml
[root@kvm1 autostart]#

[root@kvm1 storage]# virsh  pool-edit --help
  NAME
    pool-edit - edit XML configuration for a storage pool

  SYNOPSIS
    pool-edit <pool>

  DESCRIPTION
    Edit the XML configuration for a storage pool.

  OPTIONS
    [--pool] <string>  pool name or uuid

对比二者的差异

 

posted @ 2022-06-08 20:32  Tab!=4*back  阅读(173)  评论(0)    收藏  举报