您好,登錄后才能下訂單哦!
隨著業務的發展數據日益見增,這些數據的可用性隨著時間的推移而下降。人們希望通過長期數字保存(LTDP)來保持持久價值的數字信息的可訪問和可用性的,以應對過時的軟件和硬件,以及精確呈現內容的這些挑戰。
關于多云數據管理的概念及趨勢本文不再贅述,將在另一篇文章單獨講述,本篇文章致力于技術流,那么與此同時,OpenSDS應運而生,一個開源的多云數據管理平臺,可以同時納管本地異構存儲,也可以完美兼容OpenStack、AWS,華為云等公有云。(https://docs.opensds.io/features/)
系統:Ubuntu16.04
節點:All in One
安裝依賴
> apt-get update && apt-get install -y git make curl wget libltdl7 libseccomp2 libffi-dev gawk
安裝Docker
> wget https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_18.06.1~ce~3-0~ubuntu_amd64.deb
> dpkg -i docker-ce_18.06.1~ce~3-0~ubuntu_amd64.deb
安裝Docker-Compose
> curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
> chmod +x /usr/local/bin/docker-compose
安裝golang
> wget https://storage.googleapis.com/golang/go1.12.1.linux-amd64.tar.gz
> tar -C /usr/local -xzf go1.12.1.linux-amd64.tar.gz
> echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
> echo 'export GOPATH=$HOME/gopath' >> /etc/profile
> source /etc/profile
>?
> root@opensds:~# go version
> go version go1.12.1 linux/amd64
>?
GitHub克隆OpenSDS
> git clone https://github.com/opensds/opensds-installer.git
> cd opensds-installer/ansible
> git checkout stable/capri
下載Ansible
> chmod +x ./install_ansible.sh && ./install_ansible.sh
> ansible --version # Ansible version 2.4.x is required.
配置OpenSDS Ansible變量
修改host_ip
cat opensds-installer/ansible/group_vars/common.yml
# This field indicates local machine host ip
host_ip: 127.0.0.1
# This field indicates which project should be deploy
# 'hotpot', 'gelato' or 'all'
deploy_project: all
配置OpenSDS lvm后端
> cat opensds-installer/ansible/group_vars/osdsdock.yml
>?
> enabled_backends: lvm
Ansible開始安裝
> ansible-playbook site.yml -i local.hosts -vvv
> ##注:安裝很慢,因為很多docker鏡像在國外,可以采用docker鏡像加速或者同步到國內
>?
CLI操作
> sudo cp /opt/opensds-hotpot-linux-amd64/bin/osdsctl /usr/local/bin/
>?
> 配置環境變量
> vi opensds_source.sh
> export OPENSDS_ENDPOINT=http://{your_real_host_ip}:50040
> export OPENSDS_AUTH_STRATEGY=keystone
> export OS_AUTH_URL=http://{your_real_host_ip}/identity
> export OS_USERNAME=admin
> export OS_PASSWORD=opensds@123
> export OS_TENANT_NAME=admin
> export OS_PROJECT_NAME=admin
> export OS_USER_DOMAIN_ID=default
>?
> source opendsd_source.sh
>?
> osdsctl pool list
創建默認的塊存儲profile
osdsctl profile create '{"name": "default", "description": "default policy", "storageType": "block"}'
創建Volume
osdsctl volume create 1 --name=test-001
查詢Volume
osdsctl volume list
刪除Volume
osdsctl volume delete <your_volume_id>
訪問OpenSDS WEB-UI
地址:http://{your_host_ip}:8088
默認權限:admin/opensds@123
到此安裝部分結束下一文章我們講述OpenSDS如何對接多后端
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。