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:
We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.
Making open source more inclusive
Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.
About Red Hat
We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.