Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1769520
  • 博文数量: 276
  • 博客积分: 1574
  • 博客等级: 上尉
  • 技术积分: 2894
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-26 23:23
个人简介

生活的美妙在于,不知道一下秒是惊艳还是伤神,时光流转,珍惜现在的拥有的时光

文章分类

全部博文(276)

文章存档

2017年(17)

2016年(131)

2015年(63)

2013年(2)

2012年(32)

2011年(31)

分类: 服务器与存储

2015-10-29 16:25:02

# 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

阅读(1645) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~