You can use ON-Bar and the Primary Storage Manager to back up and restore data to or from
the OpenStack SWIFT Object Storage. You are responsible for terms and any charges associated with
your use of the Object Storage.
Before you begin
Notice of Deprecation:
This feature is provided for backward compatibility and could be removed in the future or its
interface changed. It uses the OpenStack identity service (V1) .
Prerequisites:
- You must have a OpenStack Swift compliant server and account to perform cloud storage backups.
Procedure
-
You must use the onkstore utility to create a keystore of type "open-stack-v1" ( OpenStack
SWIFT Version 1) and provide the Authentication User and its Authentication Key
-
Configure Primary Storage Manager.
Create a device in PSM of type CLOUD using SWIFT as
provider.
onpsm -D add ttps://myobjectstorage.net/auth/v1.0/mycontainer/onedb \
-g DBSPOOL \
-p HIGHEST \
-t CLOUD \
--creds /home/onedb/keystores/swift.p12
In this command line:
- The name of the device is formatted using
"https://{HOST}/auth/v1.0/{CONTAINER}/{PREFIX}".
- ‘-t CLOUD’, is the device type that enable PSM to store/retrieve the data to/from
a CLOUD infrastructure.
- --creds is the full path of the keystore containing the credentials to access the
OpenStack SWIFT object storage.
-
Check the created device:
$ onpsm -D list
OneDB Primary Storage Manager Devices List
Type Prio Pool Provider Name Keystore
CLOUD HIGH DBSPOOL https://myobjectstorage.net/auth/v1.0/mycontainer/onedb /home/onedb/keystores/swift.p12
CLOUD HIGH LOGPOOL https://myobjectstorage.net/auth/v1.0/mycontainer/onedb /home/onedb/keystores/swift.p12
-
Take a Level Zero Backup:
$ onbar -b -L 0 -w
$ echo $?
0