Follow

About this task

Provisioning of storage space for a volume within a pool is done via determining the following attributes:

  • Size -- the size of the volume.
    • For example, 10TB, 10GB.
    • The minimal size is 1GB.
    • This attribute is mandatory.
  • Name -- the name of the volume as will be seen on the InfiniBox GUI and InfiniShell.
  • This attribute is optional.
  • Flie system -- the file system that the volume will be mapped to.
    • If this argument is not used, the file system name will be created by INFINIHOST.
  • Mount - an existing directory on which to mount the file system.
    • If this argument is not used, the mount point will be selected by InfiniHost.
  • Thin -- the volume can be set to be thin provisioned.
  • Pool -- the pool that the volume belongs to.
  • System -- the InfiniBox system on which the volume is created.
    • You don’t have to specify this argument if the host is connected to a single system only.
  • No file system -- use this argument to avoid creating a file system for this volume.
  • No mount -- use this parameter to avoid mounting this parameter.
  • Yes -- specifies whether to run the command without a preview. See below.

Command syntax

infinihost volume provision 
<size> 
[--yes] 
[--name=NAME] 
[--filesystem=FS] 
[--mount=PATH] 
[--thin=THIN] 
[--pool=POOL] 
[--system=SYSTEM] 
[--no-filesystem] 
[--no-mount]

Previewing the command prior to execution

Example

infinihost volume provision 10GB --pool=REST-pool

Output

This tool is going to:
* Create a thin 10 GB volume "prod-linux1-vol-20140702-1335" of on InfiniBox 1032.
* Map this volume to this host on the next available LUN.
* Create an ext3 filesystem on this volume.
* Mount this volume to /mnt/prod-linux1-vol-20140702-1335.
* Give this volume the label prod-linux1-vol-.
If this is absolutely what you want, pass the --yes flag in the command-line.
aborting.

Notes:

  • The InfiniBox that is mentioned on the output is the only InfiniBox that is connected to the host, hence it was not mentioned on the command.
  • The filesystem and mount point were selected by InfiniHost.

Running the command with using the Yes flag

Syntax

infinihost volume provision 10GB --pool=REST-pool --y

Output

Creating the new 10 GB volume "prod-linux1-vol-20140702-1336" ... OK
Waiting for volume discovery, this might take a while ... OK
Creating filesystem ... OK
Mounting filesystem ... OK
==================================================================== 
All done.
The volume prod-linux1-vol-20140702-1336 is represented by dm-2, and it is mounted to /mnt/prod-linux1-vol-20140702-1336.

No filesystem and no mount

Syntax

infinihost volume provision 10GB --pool=REST-pool --no-filesystem --no-mount --y

Output

Creating the new 10 GB volume "prod-linux1-vol-20140702-1357" ... OK
Waiting for volume discovery, this might take a while ... OK
====================================================================
All done.
The volume prod-linux1-vol-20140702-1357 is represented by dm-4.

 

 

 

 


Comments