Revision e19f7095 man/ganeti-extstorage-interface.rst

b/man/ganeti-extstorage-interface.rst
66 66
EXECUTABLE SCRIPTS
67 67
------------------
68 68

  
69

  
70 69
create
71 70
~~~~~~
72 71

  
......
198 197
TEXT FILES
199 198
----------
200 199

  
201

  
202 200
parameters.list
203 201
~~~~~~~~~~~~~~~
204 202

  
......
213 211

  
214 212
    # gnt-instance add --disk=0:fromsnap="file_name",nas_ip="1.2.3.4" ...
215 213

  
214
EXAMPLES
215
--------
216

  
217
In the following examples we assume that you have already installed
218
successfully two ExtStorage providers: ``pvdr1`` and ``pvdr2``
219

  
220
Add a new instance with a 10G first disk provided by ``pvdr1`` and a 20G
221
second disk provided by ``pvdr2``::
222

  
223
    # gnt-instance add -t ext --disk=0:size=10G,provider=pvdr1
224
                              --disk=1:size=20G,provider=pvdr2
225

  
226
Add a new instance with a 5G first disk provided by provider ``pvdr1``
227
and also pass the ``prm1``, ``prm2`` parameters to the provider, with
228
the corresponding values ``val1``, ``val2``::
229

  
230
   # gnt-instance add -t ext
231
                      --disk=0:size=5G,provider=pvdr1,prm1=val1,prm2=val2
232

  
233
Modify an existing instance of disk type ``ext`` by adding a new 30G
234
disk provided by provider ``pvdr2``::
235

  
236
   # gnt-instance modify --disk 1:add,size=30G,provider=pvdr2 <instance>
237

  
238
Modify an existing instance of disk type ``ext`` by adding 2 new disks,
239
of different providers, passing one parameter for the first one::
240

  
241
   # gnt-instance modify --disk 2:add,size=3G,provider=pvdr1,prm1=val1
242
                         --disk 3:add,size=5G,provider=pvdr2
243
                         <instance>
244

  
216 245
NOTES
217 246
-----
218 247

  

Also available in: Unified diff