Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

In practice, multi-cloud data management depth | Ansible installs OpenSDS (All in One)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

With the increasing development of business data, the availability of these data decreases over time. People want to maintain the accessibility and availability of digital information of lasting value through long-term digital preservation (LTDP) to meet the challenges of outdated software and hardware, as well as accurate presentation of content.

The concept and trend of multi-cloud data management will not be discussed in detail in this article. This article focuses on technology flow. At the same time, OpenSDS came into being, an open source multi-cloud data management platform that can manage local heterogeneous storage at the same time, and is perfectly compatible with public clouds such as OpenStack, AWS, Huawei Cloud and so on. (https://docs.opensds.io/features/)

System: Ubuntu16.04

Node: All in One

Installation dependency

> apt-get update & & apt-get install-y git make curl wget libltdl7 libseccomp2 libffi-dev gawk

Install 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

Install 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

Install 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 Clone OpenSDS

Git clone https://github.com/opensds/opensds-installer.git

> cd opensds-installer/ansible

> git checkout stable/capri

Download Ansible

> chmod + x. / install_ansible.sh & &. / install_ansible.sh

> ansible-- version # Ansible version 2.4.x is required.

Configure OpenSDS Ansible variables

Modify 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

Configure OpenSDS lvm backend

> cat opensds-installer/ansible/group_vars/osdsdock.yml

>

> enabled_backends: lvm

Ansible installation begins

> ansible-playbook site.yml-I local.hosts-vvv

> # # Note: installation is slow because many docker images are abroad and can be accelerated by docker images or synchronized to China.

>

CLI operation

> sudo cp / opt/opensds-hotpot-linux-amd64/bin/osdsctl / usr/local/bin/

>

Configuring environment variables

> 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

Create a default block storage profile

Osdsctl profile create'{"name": "default", "description": "default policy", "storageType": "block"}'

Create Volume

Osdsctl volume create 1-name=test-001

Query Volume

Osdsctl volume list

Delete Volume

Osdsctl volume delete

Visit OpenSDS WEB-UI

Address: http://{your_host_ip}:8088

Default permission: admin/opensds@123

At the end of this installation section, in the next article we will talk about how OpenSDS docks multiple backends.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report