새 스토리지 도메인을 추가합니다.
새 StorageDomain 을 생성하려면 이름
,유형
,호스트
및 스토리지
속성이 필요합니다. id
또는 name
속성을 사용하여 호스트
특성을 확인합니다. oVirt 3.6 이상에서는 스토리지 도메인에서 기본적으로 삭제 후 초기화 옵션을 활성화할 수 있습니다. 이를 구성하려면 POST 요청에 delete_after_delete
를 지정합니다. 이 옵션은 도메인을 생성한 후 편집할 수 있지만, 이렇게 하면 이미 존재하는 디스크의 삭제 속성 이후 초기화를 변경하지 않습니다.
지정된 이름의
새 스토리지 도메인을 추가하려면 ,storage.type
,storage.address
및 storage.path
를 입력하고 idgradle인 호스트를 사용하여 다음과 같이 요청을 보냅니다.
POST /ovirt-engine/api/storagedomains
POST /ovirt-engine/api/storagedomains
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
다음과 같이 요청 본문이 있습니다.
<storage_domain>
<name>mydata</name>
<type>data</type>
<storage>
<type>nfs</type>
<address>mynfs.example.com</address>
<path>/exports/mydata</path>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
<storage_domain>
<name>mydata</name>
<type>data</type>
<storage>
<type>nfs</type>
<address>mynfs.example.com</address>
<path>/exports/mydata</path>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
새 NFS ISO 스토리지 도메인을 생성하려면 다음과 같은 요청을 보냅니다.
<storage_domain>
<name>myisos</name>
<type>iso</type>
<storage>
<type>nfs</type>
<address>mynfs.example.com</address>
<path>/export/myisos</path>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
<storage_domain>
<name>myisos</name>
<type>iso</type>
<storage>
<type>nfs</type>
<address>mynfs.example.com</address>
<path>/export/myisos</path>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
새 iSCSI 스토리지 도메인을 생성하려면 다음과 같은 요청을 보냅니다.
<storage_domain>
<name>myiscsi</name>
<type>data</type>
<storage>
<type>iscsi</type>
<logical_units>
<logical_unit id="3600144f09dbd050000004eedbd340001"/>
<logical_unit id="3600144f09dbd050000004eedbd340002"/>
</logical_units>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
<storage_domain>
<name>myiscsi</name>
<type>data</type>
<storage>
<type>iscsi</type>
<logical_units>
<logical_unit id="3600144f09dbd050000004eedbd340001"/>
<logical_unit id="3600144f09dbd050000004eedbd340002"/>
</logical_units>
</storage>
<host>
<name>myhost</name>
</host>
</storage_domain>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
Expand 표 6.584. 매개변수 요약 이름 유형 direction 요약
storage_domain
StorageDomain
in/Out
Show more