Skip to content

Instantly share code, notes, and snippets.

@ajeetraina
Last active December 5, 2016 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajeetraina/abd382857b966fe865139ea51eef32b7 to your computer and use it in GitHub Desktop.
Save ajeetraina/abd382857b966fe865139ea51eef32b7 to your computer and use it in GitHub Desktop.
Setting up RexRay with ScaleIO for Docker 1.13
Setup:
======
ScaleIO:
3 node cluster
Gateway: 10.94.214.180 (Master MDM)
SDC: 10.94..214.181 (Slave MDM)
TB: 10.94.214.179 ( Tie Breaker)
Machine: Gateway(10.94.214.180)
[root@localhost ~]# rpm -qa | grep EMC
EMC-ScaleIO-sds-2.0-7536.0.el7.x86_64
EMC-ScaleIO-gateway-2.0-7536.0.x86_64
EMC-ScaleIO-mdm-2.0-7536.0.el7.x86_64
EMC-ScaleIO-lia-2.0-7536.0.el7.x86_64
EMC-ScaleIO-sdc-2.0-7536.0.el7.x86_64
EMC-ScaleIO-gui-2.0-7536.0.noarch
Check /opt/emc/scaleio/gateway/webapps/ROOT/WEB-INF/classes/gatewayUser.properties for the below entry:
mdm.ip.addresses=10.94.214.180;10.94.214.179
Starting the Gateway:
[root@localhost ~]# service scaleio-gateway status
The EMC ScaleIO Gateway is running. PID=2164.
service scaleio-gateway restart
The EMC ScaleIO Gateway is not running.
The EMC ScaleIO Gateway is running. PID=21098.
Machine: 10.94.214.181
======================
rpm -qa | grep -i EMC
EMC-ScaleIO-sdc-2.0-7536.0.el7.x86_64
EMC-ScaleIO-mdm-2.0-7536.0.el7.x86_64
EMC-ScaleIO-lia-2.0-7536.0.el7.x86_64
EMC-ScaleIO-sds-2.0-7536.0.el7.x86_64
REX-Ray
-------
Binary: /usr/bin/rexray
SemVer: 0.6.0
OsArch: Linux-x86_64
Branch: v0.6.0
Commit: 429cfdf7272cebc5911b2865128ad37a6da5a203
Formed: Thu, 20 Oct 2016 22:06:45 EDT
libStorage
----------
SemVer: 0.3.1
OsArch: Linux-x86_64
Branch: v0.6.0
Commit: a3a561a1b94bb8b7efb4ae998540c457deb39692
Formed: Thu, 20 Oct 2016 22:05:09 EDT
[root@localhost ~]#
======================
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 18G 2.5G 15G 15% /
devtmpfs 991M 0 991M 0% /dev
tmpfs 1001M 40K 1001M 1% /dev/shm
tmpfs 1001M 8.6M 993M 1% /run
tmpfs 1001M 0 1001M 0% /sys/fs/cgroup
/dev/sda1 497M 110M 388M 22% /boot
tmpfs 201M 0 201M 0% /run/user/0
/dev/scinia1 24G 45M 23G 1% /mnt/dev1
Pre-Requirements:
REX-Ray must reside on a host that has the SDC client installed. You should be able to run /opt/emc/scaleio/sdc/bin/drv_cfg --query_guid and it should return the local SDC GUID
#/opt/emc/scaleio/sdc/bin/drv_cfg --query_guid
447DB343-B774-4706-B581-B1DC7B44352D
Verified SDC installed on Gateway:
rpm -qa EMC-ScaleIO-sdc
EMC-ScaleIO-sdc-2.0-7536.0.el7.x86_64
Verified SDC installed on Secondary:
rpm -qa EMC-ScaleIO-sdc
EMC-ScaleIO-sdc-2.0-7536.0.el7.x86_64
Verify that the following command returns the local SDC GUID /opt/emc/scaleio/sdc/bin/drv_cfg --query_guid
/opt/emc/scaleio/sdc/bin/drv_cfg --query_guid
447DB343-B774-4706-B581-B1DC7B44352D
Ensure that you have the correct authentication credentials for the gateway. This can be done with a curl login. You should receive an authentication token in return
curl --insecure --user admin:<passwd https://10.94.214.180:443/api/login
"YWRtaW46MTQ4MDc5NzkwMjcwNDo2NWMyYzQxMzNkYTFjN2Q3YWQ4NTEwMjk3ZjRiZjFhMQ"
libstorage:
service: scaleio
scaleio:
insecure: true
thinOrThick: ThinProvisioned
endpoint: https://10.94.214.180/api
userName: admin
password: Oracle9ias12#
systemName: 10.94.214.181
protectionDomainName: default
storagePoolName: default
[root@localhost ~]# rexray start
● rexray.service - rexray
Loaded: loaded (/etc/systemd/system/rexray.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2016-12-03 08:04:34 EST; 7ms ago
Main PID: 9231 (systemd)
Memory: 0B
CGroup: /system.slice/rexray.service
└─9231 /usr/lib/systemd/systemd --switched-root --system --deserialize 21
Dec 03 08:04:34 localhost.localdomain systemd[1]: Started rexray.
Dec 03 08:04:34 localhost.localdomain systemd[1]: Starting rexray...
[root@localhost ~]#
[root@localhost ~]# cat /etc/rexray/config.yml
libstorage:
service: scaleio
scaleio:
insecure: true
thinOrThick: ThinProvisioned
endpoint: https://10.94.214.180/api
userName: admin
password: Oracle9ias12#
systemID: 30c697df65277ea9
systemName: 10.94.214.181
protectionDomainName: default
storagePoolName: default
[root@localhost ~]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment