Revision 32f88ce7
b/doc/design-storagetypes.rst | ||
---|---|---|
160 | 160 |
----------- |
161 | 161 |
|
162 | 162 |
The noded RPC call that reports node storage space will be changed to |
163 |
accept a list of <disktemplate>,<key> string tuples. For each of them, it will
|
|
163 |
accept a list of <storage_type>,<key> string tuples. For each of them, it will
|
|
164 | 164 |
report the free amount of storage space found on storage <key> as known |
165 |
by the requested disk template. Depending on the disk template, the key would
|
|
166 |
be a volume group name, in case of lvm-based disk templates, a directory name
|
|
167 |
for the file and shared file storage, and a rados pool name for rados storage.
|
|
165 |
by the requested storage_type. Depending on the storage_type, the key would
|
|
166 |
be a volume group name in case of lvm, a directory name for the file-based
|
|
167 |
storage, and a rados pool name for rados storage. |
|
168 | 168 |
|
169 |
Masterd will know through the mapping of disk templates to storage types which
|
|
170 |
storage type uses which mechanism for storage calculation and invoke only the
|
|
171 |
needed ones. |
|
169 |
Masterd will know through the mapping of storage types to storage calculation
|
|
170 |
functions which storage type uses which mechanism for storage calculation
|
|
171 |
and invoke only the needed ones.
|
|
172 | 172 |
|
173 | 173 |
Note that for file and sharedfile the node knows which directories are allowed |
174 | 174 |
and won't allow any other directory to be queried for security reasons. The |
... | ... | |
269 | 269 |
``exclusive_storage`` flag, which is currently only meaningful for the |
270 | 270 |
LVM storage type. Additional flags like the ``exclusive_storage`` flag |
271 | 271 |
for lvm might be useful for other disk templates / storage types as well. |
272 |
We therefore extend the RPC call with <disktemplate>,<key> to
|
|
273 |
<disktemplate>,<key>,<params> to include any disk-template-specific
|
|
272 |
We therefore extend the RPC call with <storage_type>,<key> to
|
|
273 |
<storage_type>,<key>,[<param>] to include any disk-template-specific
|
|
274 | 274 |
(or storage-type specific) parameters in the RPC call. |
275 | 275 |
|
276 | 276 |
The reporting of free spindles, also part of Partitioned Ganeti, is not |
Also available in: Unified diff