kvm 创建 基于glusterfs的存储池

简介: # virsh pool-create-as --name primary_gluster --type netfs --source-host $(hostname) --source-path /primary --source-format glusterfs --target...
# virsh pool-create-as --name primary_gluster --type netfs --source-host $(hostname) --source-path /primary --source-format glusterfs --target /mnt/libvirt/primary_gluster

The components that the above command uses, are: 
  • primary_gluster : the name of the storage pool in libvirt
  • netfs : the type of the pool, netfs mounts the 'pool' under the given --target
  • $(hostname) : one of the Gluster servers that is part of the Trusted Storage Pool that provides the Gluster volume
  • /primary : the name of the Gluster volume
  • /mnt/libvirt/primary_gluster : directory where libvirt will mount the Gluster volume
[root@sn192-168-174-65 mnt]# repoquery -ql glusterfs-fuse
/sbin/mount.glusterfs#包含了用户空间挂载命令.
/usr/bin/fusermount-glusterfs
/usr/lib64/glusterfs/3.6.0.54/xlator/mount/fuse.so
[root@sn192-168-174-65 mnt]# yum install glusterfs-fuse -y
===================================================================================================================================
 Package                            Arch                       Version                              Repository                Size
===================================================================================================================================
Installing:
 glusterfs-fuse                     x86_64                     3.6.0.54-1.el6                       base                      81 k
Updating for dependencies:
 glusterfs                          x86_64                     3.6.0.54-1.el6                       base                     1.3 M
 glusterfs-api                      x86_64                     3.6.0.54-1.el6                       base                      62 k
 glusterfs-libs                     x86_64                     3.6.0.54-1.el6                       base                     272 k

Transaction Summary
===================================================================================================================================
Install       1 Package(s)
Upgrade       3 Package(s)


virsh # pool-define-as --name gv_KVM --type netfs --source-host 192.168.174.80 --source-path /gv_KVM --source-format glusterfs --target /mnt/gv
Pool gv_KVM defined
virsh # pool-start gv_KVM
Pool gv_KVM started

目录
相关文章
|
10月前
|
存储 KVM 文件存储
【KVM虚拟化】· 存储池、存储卷
【KVM虚拟化】· 存储池、存储卷
360 0
|
11月前
|
存储 5G KVM
KVM存储池扩容
KVM存储池扩容
112 0
|
11月前
|
存储
部署存储——配置iSCSI存储
部署存储——配置iSCSI存储
|
网络安全
基于NFS文件集群共享
全称 Network File System NFS,是由SUN公司研制的文件传输协议 NFS主要是采用远程过程调用RPC机制实现文件传输
77 0
|
存储 网络安全 KVM
基于iscsi存储的kvm动态迁移(V2V)
本篇内容记录了基于iscsi存储的kvm动态迁移的相关操作。
343 0
基于iscsi存储的kvm动态迁移(V2V)
|
弹性计算
|
存储 KVM 虚拟化
|
存储 虚拟化 网络协议