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

目录
相关文章
|
7月前
|
存储 测试技术 API
OpenStack的文件系统存储(Manila)
【8月更文挑战第24天】
174 2
|
5月前
|
存储 监控 数据安全/隐私保护
GlusterFS存储卷创建
GlusterFS存储卷创建
101 7
|
6月前
|
存储 关系型数据库
ceph的存储池管理
本文介绍了Ceph存储池的管理,包括存储池的类型、PG数量的计算方法、创建和查看存储池、修改存储池信息以及删除存储池的操作步骤和注意事项。
225 2
|
存储 KVM 文件存储
【KVM虚拟化】· 存储池、存储卷
【KVM虚拟化】· 存储池、存储卷
712 0
|
存储 5G KVM
KVM存储池扩容
KVM存储池扩容
191 0
|
存储
部署存储——配置iSCSI存储
部署存储——配置iSCSI存储
157 0
|
存储 网络安全 KVM
基于iscsi存储的kvm动态迁移(V2V)
本篇内容记录了基于iscsi存储的kvm动态迁移的相关操作。
467 0
基于iscsi存储的kvm动态迁移(V2V)
|
存储 KVM 虚拟化