Import a volume into an application (application or singleton class volume) or import a global volume.
vol import name image file [prop=val]* [--overwrite[--force]] [ -n]
vol import name local_ip=local remote_ip=remote
migrating_class=class encr_key=encr_key
[ <prop>=<val> ]* [ --overwrite [ --force]] [ -n ]
vol import name --abort
Name of the volume to import. The format of name is the following:
application:[class.]volume - application user volume or application singleton class volume _GLOBAL:volume - global volume _GLOBAL_RO:volume - global read-only volume
Name of the volume image residing within the root directory of the /vol/_impex folder or a URL in the following format: http://path.
Compressed image files must have a .gz extension. If the image file does not have a .gz extension, then it is assumed that the image is not compressed.
Volume parameters. The following parameters may be set:
size - volume size (recommended when importing a compressed volume from a URL). Units may be specified (e.g., 128M[B], 2G[B]). If units are not specified, it is assumed that the value is in MB. This parameter must be specified when importing a volume using a migrating class.
fs - Filesystem type. This parameter must be specified when importing a volume using a migrating class.
fs_options - Additional filesystem options used to format the volume (See notes below for specifics).
comment - (optional) volume comment
user - (optional) user name to use for authentication when importing the volume from a URL. If not specified, then it is assumed that there is no authentication.
pwd=- - (Optional) Prompt for password to use for authentication purposes when importing the volume from a URL. If the standard input is not a terminal device, it will not print a prompt and expect only one copy of the password on 'stdin' (this can be used for batch operations, to set the password from a file).
IP information to be used for the migrator application on the local grid. The value has the following format:
[_vlan.][<vlan id>.]<ip address> | _net.<network name>.<ip_address>
IP information to be used for communicating with the the migrator application on the remote grid. The value has the following format:
[_vlan.][<vlan id>.]<ip address> | _net.<network name>.<ip_address>
Specifies the assembly to use in building the local migrator application. This class may be from a catalog or application. If class is "default" or migrating_class not specified then "Filer_Linux_ADMI" will be used to do a file system levelcopy.
Specifies the volume containing fixed encryption keys to be supplied to the migrating application. This argument is required only when migration is between two grids.
Abort a volume import operation. This option is only valid when importing a volume using a migrating class.
Overwrite existing volume.
Do not prompt for confirmation of volume overwrite
Skip verification that a volume reference is in the class descriptor if importing an application singleton class volume.
vol import myapp:myvol myvol.img.gz size=1G
import an application user volume stored from the impex volume and specify a size so that the image does not have to be downloaded and uncompressed twice (see note below).
vol import myapp:myclass.cdrom os.iso size-2G
import an operating system ISO image to an application singleton class volume.
vol import _GLOBAL:my-iso http://mysrv.com/os.iso size=2G
import an ISO image into a global volume from an HTTP server that does not require authentication..
Notes:
<any option> - Any option understood by mkfs.<filesystem>. The options will be passed directly to the mkfs tool for the chosen filesystem.
vol_group_name - String specifying the name of the LVM volume group to create on the volume. If not specified, a volume group name is randomly generated.
data_percentage - Percentage of the volume that is used to store data. The remaining portion of the volume is for snapshots. If not specified, 80% of the volume is used for data.
<any option> - Any option understood by mkfs.ext3. The options will be passed directly to the mkfs tool and will be used for the data volume.
|
Copyright © 2013 CA.
All rights reserved.
|
|