An existing block storage domain with type set to iscsi or fcp can be imported to the engine using the REST API. The ability to import storage domains allows you to recover data in the event of a failure in the engine database, and to migrate data from one data center or environment to another.
This procedure assumes the storage domain is not attached to a data center or host in any environment. Moreover, to import and attach an existing block storage domain to a data center, the target data center must be initialized, and must have a compatibility level of 3.5 or higher.
Procedure 12.1. Importing a block storage domain
Discover the targets on your iSCSI storage server:
Copy to ClipboardCopied!Toggle word wrapToggle overflow
You have now imported the block storage domain to your host.
You may now wish to attach the storage domain to the host, and find any unregistered disks. Attach the storage domain and associated disks with the following steps:
Procedure 12.2. Attaching a block storage domain
Attach the storage domain to your data center:
POST /api/datacenters/01a45ff0-915a-45e0-8d56-5253234ac988/storagedomains
Accept: application/xml
Content-Type: application/xml
<storage_domain>
<name>scsi4</name>
</storage_domain>
POST /api/datacenters/01a45ff0-915a-45e0-8d56-5253234ac988/storagedomains
Accept: application/xml
Content-Type: application/xml
<storage_domain>
<name>scsi4</name>
</storage_domain>
Copy to ClipboardCopied!Toggle word wrapToggle overflow
Find the unregistered disks on the storage domain:
GET /api/storagedomains/6ab65b16-0f03-4b93-85a7-5bc3b8d52be0/disks;unregistered
Accept: application/xml
Content-Type: application/xml
GET /api/storagedomains/6ab65b16-0f03-4b93-85a7-5bc3b8d52be0/disks;unregistered
Accept: application/xml
Content-Type: application/xml
Copy to ClipboardCopied!Toggle word wrapToggle overflow
This will return information about any unregistered disks on the storage domain, with a response similar to:
Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.
Mehr Inklusion in Open Source
Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.
Über Red Hat
Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.