# 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
阅读(1728) | 评论(0) | 转发(0) |