=head1 NAME B - Configure the elements for a virtual environment. =head1 SYNOPSIS B B<-t> dc B<-m> manager B<-o> object [B<-c> B<-k> nfs|localfs | B<-r>] B B<-t> cl B<-m> manager B<-o> object [B<-c> B<-p> cpu type| B<-r> B<-f>] B B<-t> sd B<-m> manager B<-o> object [B<-c> | B<-g> | B<-s> | B<-a> | B<-b> | B<-r> B<-f>] B B<-t> nw B<-m> manager B<-o> object [B<-c> B<-d> data center B<-n> vlan ID | B<-a> B<-l> cluster | B<-b> | B<-r>] B B<-t> tpl B<-m> manager B<-o> object [B<-r>] =head1 DESCRIPTION The B command can be used to configure a virtual environment for 'Storage Domain', 'Network' and 'Template' objects. The mandatory parameter B<-m manager> is used to specify the address of the manager of virtual environment. xCAT needs it to access the RHEV manager. The mandatory parameter B<-t type> is used to specify the type of the target object. Basically, B command supports five types of object: B, B, B, B and B. =over 3 B - The B and B operations are supported. B - The B and B operations are supported. B - The B, B, B, B, B and B operations are supported. B - The B, B, B and B operations are supported. B - The B operation is supported. =back The mandatory parameter B<-o object> is used to specify which object to configure. =head1 OPTIONS =over 2 =item B<-a> To attach the target object. =item B<-b> To detach the target object. =item B<-c> To create the target object. For creating of B, the target storage domain will be created first, then attached to data center and activated. The parameters that used to create the storage domain are gotten from 'virtsd' table. The detail parameters in the virtsd table: =over 3 B - The name of the storage domain. B - The type of storage domain. Valid value: data, iso, export. Default value is 'data'. B - The storage type. "nfs" or "localfs". B - The location of the storage. B: Format: [nfsserver:nfspath]. The NFS export directory must be configured for read write access and must be owned by vdsm:kvm. B: "/data/images/rhev" is set by default. B - A host must be specified for a storage doamin as SPM (Storage Pool Manager) when initialize the storage domain. The role of SPM may be migrated to other host by rhev-m during the running of the datacenter (For example, when the current SPM encountered issue or going to maintenance status. B - The storage will be attached to. 'Default' data center is the default value. =back =item B<-d> I The name of data center. Specify the 'Data Center' that will be used for the object to be attached to. It is used by type. =item B<-f> It can be used with B<-r> to remove the target object by force. For removing of B, if B<-f> is specified, the storage domain will be deactivated and detached from data center before the removing. =item B<-g> To activate the target object. =item B<-h> Display usage message. =item B<-k> I To specify the type of the storage type when creating the data center. Supported type: nfs; localfs. =item B<-l> I Specify the cluster for the network to attach to. =item B<-m> I Specify the manager of the virtual environment. For RHEV, the FQDN (Fully Qualified Domain Name) of the rhev manager have to be specified. =item B<-n> I To specify the vlan number when creating a network. =item B<-o> I The name of the target object. =item B<-p> I To specify the cpu type when creating the cluster. B is default type. Supported type: B, B, B, B, B, B, B =item B<-r> To remove the target object. For removing of B, the storage space will be formatted after removing. =item B<-s> To deactivate the target object. =item B<-t> I Specify the B of the target object. Supported types: B - Data Center B - Cluster B - Storage Domain B - Network B - Template =back =head1 RETURN VALUE 0 The command completed successfully. 1 An error has occurred. =head1 EXAMPLES =over 2 =item 1. To create the Storage Domain 'sd1', enter: cfgve -t sd -m -o sd1 -c =item 2. To deactivate the Storage Domain 'sd1' from data center, enter: cfgve -t sd -m -o sd1 -s =item 3. To remove the Storage Domain 'sd1', enter: cfgve -t sd -m -o sd1 -r =item 4. To create the network 'nw1', enter: cfgve -t nw -m -o nw1 -c =item 5. To remove the template 'tpl01', enter: cfgve -t tpl -m -o tpl01 -r =back =head1 FILES /opt/xcat/bin/cfgve =head1 SEE ALSO L