074、如何安装和配置Rex-Ray?(2019-04-19 周五)

 
Rax-Ray 是一个优秀的Docker volume driver ,本节将学习其安装和配置方法。
 
Rex-Ray 以 standalone 进程的方式运行在 Docker 主机上,安装方法很简单,在需要使用Rex-Ray driver 的主机 docker1 和  docker2 上运行如下命令
 
root@docker1:~# curl -sSL https://rexray.io/install | sh -
Selecting previously unselected package rexray.
(Reading database ... 60121 files and directories currently installed.)
Preparing to unpack rexray_0.11.4-1_amd64.deb ...
Unpacking rexray (0.11.4-1) ...
Setting up rexray (0.11.4-1) ...
 
rexray has been installed to /usr/bin/rexray
 
REX-Ray
-------
Binary: /usr/bin/rexray
Flavor: client+agent+controller
SemVer: 0.11.4
OsArch: Linux-x86_64
Commit: e7414eaa971b27977d2283f2882825393493179d
Formed: Wed, 16 Jan 2019 00:03:57 CST
 
root@docker2:~# curl -sSL https://rexray.io/install | sh -
Selecting previously unselected package rexray.
(Reading database ... 60121 files and directories currently installed.)
Preparing to unpack rexray_0.11.4-1_amd64.deb ...
Unpacking rexray (0.11.4-1) ...
Setting up rexray (0.11.4-1) ...
 
rexray has been installed to /usr/bin/rexray
 
REX-Ray
-------
Binary: /usr/bin/rexray
Flavor: client+agent+controller
SemVer: 0.11.4
OsArch: Linux-x86_64
Commit: e7414eaa971b27977d2283f2882825393493179d
Formed: Wed, 16 Jan 2019 00:03:57 CST
 
 
root@docker1:~# cat /etc/rexray/config.yml
libstorage:
  service: virtualbox
virtualbox:
  endpoint: http://10.12.28.120:18083
  volumePtah: C:\share
  controllerName: SATA
 
#    libstorage-service        1 使用Virtualbox的Virtual media作为backend,提供data volue,生产环境中使用 ceph RBD 等
#    virtualbox-endpoint       1 实验环境中提供backend 的地址
#    virtualbox-volumePtah:    1 实验环境中提供backed的目录
#    virtualbox-controllerName:1 controller 的名字
 
 
 

猜你喜欢

转载自www.cnblogs.com/www1707/p/10743697.html