2008-01-08 15:20:46 +00:00
=head1 NAME
2008-08-02 16:18:07 +00:00
2011-12-09 16:09:30 +00:00
B<chvm> - Changes HMC-, IVM-, and zVM-managed partition profiles or virtual machines. For Power 775, chvm could be used to change the octant configuration values for generating LPARs; change the I/O slots assignment to LPARs within the same CEC.
2008-08-02 16:18:07 +00:00
2008-01-08 15:20:46 +00:00
=head1 SYNOPSIS
2008-08-02 16:18:07 +00:00
2011-04-01 01:37:00 +00:00
B<chvm> [B<-h>| B<--help>]
2008-01-08 15:20:46 +00:00
2011-04-01 01:37:00 +00:00
B<chvm> [B<-v>| B<--version>]
2008-01-08 15:20:46 +00:00
2011-03-18 08:20:10 +00:00
=head2 PPC (with HMC) specific:
2011-03-25 07:03:47 +00:00
2011-04-01 01:37:00 +00:00
B<chvm> [B<-V>| B<--verbose>] I<noderange> [B<-p> I<profile>]
2008-01-08 15:20:46 +00:00
2011-04-06 08:07:18 +00:00
B<chvm> [B<-V>| B<--verbose>] I<noderange> I<attr>=I<val> [I<attr>=I<val>...]
2009-04-16 10:09:49 +00:00
2011-03-18 08:20:10 +00:00
=head2 PPC (using Direct FSP Management) specific:
2011-03-25 07:03:47 +00:00
2011-04-01 01:37:00 +00:00
B<chvm> I<noderange> [B<-p> I<profile>]
2011-03-18 08:20:10 +00:00
2011-07-25 03:38:47 +00:00
B<chvm> I<noderange> [B<lparname>={B<*>|B<name>}]
2011-06-27 08:11:43 +00:00
B<chvm> I<noderange> B<-i id> [B<-m> I<memory_interleaving>] B<-r> I<partition_rule>
2011-04-06 08:07:18 +00:00
2011-05-19 18:39:50 +00:00
=head2 VMware/KVM specific:
2011-03-25 07:03:47 +00:00
2011-04-01 01:37:00 +00:00
B<chvm> I<noderange> [B<-a> I<size>] [B<-d> I<disk>] [B<-p> I<disk>] [B<--resize> B<disk>=I<size>] [B<--cpus> I<count>] [B<--mem> I<memory>]
2009-04-16 10:09:49 +00:00
2011-12-09 16:09:30 +00:00
=head2 zVM specific:
2013-02-06 00:04:19 +00:00
B<chvm> I<noderange> [B<--add3390> I<disk_pool> I<device_address> I<size> I<mode> I<read_password> I<write_password> I<multi_password>]
2011-12-09 16:09:30 +00:00
2011-12-10 20:46:27 +00:00
B<chvm> I<noderange> [B<--add3390active> I<device_address> I<mode>]
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
B<chvm> I<noderange> [B<--add9336> I<disk_pool> I<device_address> I<size> I<mode> I<read_password> I<write_password> I<multi_password>]
2011-12-09 16:09:30 +00:00
B<chvm> I<noderange> [B<--adddisk2pool> I<function> I<region> I<volume> I<group>]
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--addnic> I<device_address> I<type> I<device_count>]
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
B<chvm> I<noderange> [B<--addpagespool> I<volume_address> I<volume_label> I<volume_use> I<system_config_name> I<system_config_type> I<parm_disk_owner> I<parm_disk_number> I<parm_disk_password>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--addprocessor> I<device_address>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--addprocessoractive> I<device_address> I<type>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--addvdisk> I<device_address> I<size>]
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
B<chvm> I<noderange> [B<--addzfcp> I<pool> I<device_address> I<loaddev> I<size> I<tag> I<wwpn> I<lun>]
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--connectnic2guestlan> I<device_address> I<lan> I<owner>]
B<chvm> I<noderange> [B<--connectnic2vswitch> I<device_address> I<vswitch>]
2011-12-09 16:09:30 +00:00
2011-12-10 20:46:27 +00:00
B<chvm> I<noderange> [B<--copydisk> I<target_address> I<source_node> I<source_address>]
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
B<chvm> I<noderange> [B<--dedicatedevice> I<virtual_device> I<real_device> I<mode>]
2011-12-09 16:09:30 +00:00
B<chvm> I<noderange> [B<--deleteipl>]
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--disconnectnic> I<device_address>]
B<chvm> I<noderange> [B<--formatdisk> I<device_address> I<multi_password>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--grantvswitch> I<vswitch>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--purgerdr>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--removedisk> I<device_address>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--removenic> I<device_address>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--removeprocessor> I<device_address>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--removeloaddev> I<wwpn> I<lun>]
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--removezfcp> I<device_address> I<wwpn> I<lun>]
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
B<chvm> I<noderange> [B<--replacevs> I<directory_entry>]
2011-12-09 16:09:30 +00:00
2011-12-10 20:46:27 +00:00
B<chvm> I<noderange> [B<--setipl> I<ipl_target> I<load_parms> I<parms>]
2011-12-09 16:09:30 +00:00
B<chvm> I<noderange> [B<--setpassword> I<password>]
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--setloaddev> I<wwpn> I<lun>]
2013-02-06 00:04:19 +00:00
B<chvm> I<noderange> [B<--sharevolume> I<volume_address> I<share_enable>]
2013-02-05 18:05:43 +00:00
B<chvm> I<noderange> [B<--undedicatedevice> I<device_address>]
2008-01-08 15:20:46 +00:00
=head1 DESCRIPTION
2011-03-18 08:20:10 +00:00
=head2 PPC (with HMC) specific:
2010-06-11 01:37:19 +00:00
2009-04-16 10:09:49 +00:00
The chvm command modifies the partition profile for the partitions specified in noderange. A partitions current profile can be read using lsvm, modified, and piped into the chvm command, or changed with the -p flag.
2009-04-16 10:20:04 +00:00
2009-04-16 10:09:49 +00:00
This command also supports to change specific partition attributes by specifying one or more "attribute equals value" pairs in command line directly, without whole partition profile.
2008-01-08 15:20:46 +00:00
2011-03-18 08:20:10 +00:00
=head2 PPC (using Direct FSP Management) specific:
2011-04-06 08:07:18 +00:00
chvm could be used to change the octant configuration values for generating LPARs. chvm is designed to set the Octant configure value to split the CPU and memory for partitions, and set Octant Memory interleaving value. The chvm will only set the pending attributes value. After chvm, the CEC needs to be rebooted manually for the pending values to be enabled. Before reboot the cec, the administrator can use chvm to change the partition plan. If the the partition needs I/O slots, the administrator should use chvm to assign the I/O slots.
chvm is also designed to assign the I/O slots to the new LPAR. Both the current IO owning lpar and the new IO owning lpar must be powered off before an IO assignment. Otherwise, if the I/O slot is belonged to an Lpar and the LPAR is power on, the command will return an error when trying to assign that slot to a different lpar.
2011-03-18 08:20:10 +00:00
The administrator should use lsvm to get the profile content, and then edit the content, and add the node name with ":" manually before the I/O which will be assigned to the node. And then the profile can be piped into the chvm command, or changed with the -p flag.
2011-05-19 18:39:50 +00:00
=head2 VMware/KVM specific:
2010-06-11 01:37:19 +00:00
The chvm command modifes the vm specified in noderange. Calling with deregister or purge options at the same time as the resize option is not recommended.
2011-12-09 16:09:30 +00:00
=head2 zVM specific:
The chvm command modifes the virtual machine's configuration specified in noderange.
2008-01-08 15:20:46 +00:00
=head1 OPTIONS
2010-06-11 01:37:19 +00:00
=head2 Common:
2008-01-08 15:20:46 +00:00
2011-04-06 08:07:18 +00:00
=over 10
2011-12-12 15:26:55 +00:00
=item B<-h>
2008-01-08 15:20:46 +00:00
2011-04-01 01:37:00 +00:00
Display usage message.
2011-12-12 15:26:55 +00:00
=item B<-v>
2011-04-01 01:37:00 +00:00
Command Version.
2010-06-11 01:37:19 +00:00
2011-04-06 08:07:18 +00:00
=back
=head2 PPC (with HMC) specific:
=over 10
2010-06-11 01:37:19 +00:00
2011-12-12 15:26:55 +00:00
=item B<-p> I<profile>
2011-04-01 01:37:00 +00:00
Name of an existing partition profile.
2008-06-20 13:38:46 +00:00
2011-12-12 15:26:55 +00:00
=item I<attr>=I<val>
2009-04-16 10:09:49 +00:00
2011-04-01 01:37:00 +00:00
Specifies one or more "attribute equals value" pairs, separated by spaces.
2011-12-12 15:26:55 +00:00
=item B<-V>
2011-04-01 01:37:00 +00:00
Verbose output.
2008-01-08 15:20:46 +00:00
2011-04-06 08:07:18 +00:00
=back
=head2 PPC (using Direct FSP Management) specific:
=over 10
2011-12-12 15:26:55 +00:00
=item B<-i>
2011-04-06 08:07:18 +00:00
2011-06-23 16:22:27 +00:00
Starting numeric id of the newly created partitions. For Power 775 using Direct FSP Management, the id value only could be B<1>, B<5>, B<9>, B<13>, B<17>, B<21>, B<25> and B<29>.
2011-04-06 08:07:18 +00:00
2011-12-12 15:26:55 +00:00
=item B<-m>
2011-04-06 08:07:18 +00:00
2011-11-01 02:34:11 +00:00
memory interleaving. The setting value only could be B<1> or B<2>. B<2> means B<non-interleaved> mode (also 2MC mode), the memory cannot be shared across the processors in an octant. B<1> means B<interleaved> mode (also 8MC mode) , the memory can be shared. The default value is B<1> .
2011-04-06 08:07:18 +00:00
2011-12-12 15:26:55 +00:00
=item B<-r>
2011-04-06 08:07:18 +00:00
partition rule.
If all the octants configuration value are same in one CEC, it will be " B<-r> B<0-7>:I<value>" .
If the octants use the different configuration value in one cec, it will be "B<-r> B<0>:I<value1>,B<1>:I<value2>,...B<7>:I<value7>", or "B<-r> B<0>:I<value1>,B<1-7>:I<value2>" and so on.
The octants configuration value for one Octant could be B<1>, B<2>, B<3>, B<4>, B<5>. The meanings of the octants configuration value are as following:
1 -- 1 partition with all cpus and memory of the octant
2 -- 2 partitions with a 50/50 split of cpus and memory
3 -- 3 partitions with a 25/25/50 split of cpus and memory
4 -- 4 partitions with a 25/25/25/25 split of cpus and memory
5 -- 2 partitions with a 25/75 split of cpus and memory
2011-12-12 15:26:55 +00:00
=item B<-p> I<profile>
2011-04-06 08:07:18 +00:00
Name of I/O slots assignment profile.
2011-07-25 03:38:47 +00:00
=item B<lparname>={B<*>|B<name>}
Set LPAR name for the specified lpars. If '*' specified, it means to get names from xCAT database and then set them for the specified lpars. If a string is specified, it only supports single node and the string will be set for the specified lpar. The user can use lsvm to check the lparnames for lpars.
2011-04-06 08:07:18 +00:00
=back
2011-05-19 18:39:50 +00:00
=head2 VMware/KVM specific:
2010-06-11 01:37:19 +00:00
2011-04-06 08:07:18 +00:00
=over 10
2011-12-12 15:26:55 +00:00
=item B<-a> I<size>
2011-04-01 01:37:00 +00:00
Add a new Hard disk with size defaulting to GB. Multiple can be added with comma separated values.
2010-06-11 01:37:19 +00:00
2011-12-12 15:26:55 +00:00
=item B<--cpus> I<count>
2010-06-11 01:37:19 +00:00
2011-04-01 01:37:00 +00:00
Set the number of CPUs.
2010-06-11 01:37:19 +00:00
2011-12-12 15:26:55 +00:00
=item B<-d> I<disk>
2010-06-11 01:37:19 +00:00
2011-04-01 01:37:00 +00:00
Deregister the Hard disk but leave the backing files. Multiple can be done with comma separated values. The disks are specified by SCSI id. Size defaults to GB.
2010-06-11 01:37:19 +00:00
2011-12-12 15:26:55 +00:00
=item B<--mem> I<memory>
2011-04-01 01:37:00 +00:00
Set the memory, defaults to MB.
2011-12-12 15:26:55 +00:00
=item B<-p> I<disk>
2011-04-01 01:37:00 +00:00
Purge the Hard disk. Deregisters and deletes the files. Multiple can be done with comma separated values. The disks are specified by SCSI id. Size defaults to GB.
2011-12-12 15:26:55 +00:00
=item B<--resize> B<disk>=I<size>
2011-04-01 01:37:00 +00:00
Change the size of the Hard disk. The disk can never be set to less than it's current size. Multiple disks can be resized to I<size> by using comma separated values on the left side of B<=>. The disks are specified by SCSI id. Size defaults to GB.
2008-01-08 15:20:46 +00:00
2011-04-06 08:07:18 +00:00
=back
2011-12-09 16:09:30 +00:00
=head2 zVM specific:
2011-12-12 15:26:55 +00:00
=over 10
2013-02-06 00:04:19 +00:00
=item B<--add3390> I<disk_pool> I<device_address> I<size> I<mode> I<read_password> I<write_password> I<multi_password>
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
Adds a 3390 (ECKD) disk to a virtual machine's directory entry. The device address can be automatically assigned by specifying 'auto'. The size of the disk can be specified in GB, MB, or the number of cylinders.
2011-12-09 16:09:30 +00:00
2011-12-10 20:46:27 +00:00
=item B<--add3390active> I<device_address> I<mode>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Adds a 3390 (ECKD) disk that is defined in a virtual machine's directory entry to that virtual server's active configuration.
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
=item B<--add9336> I<disk_pool> I<device_address> I<size> I<mode> I<read_password> I<write_password> I<multi_password>
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
Adds a 9336 (FBA) disk to a virtual machine's directory entry. The device address can be automatically assigned by specifying 'auto'. The size of the disk can be specified in GB, MB, or the number of blocks.
2011-12-09 16:09:30 +00:00
=item B<--adddisk2pool> I<function> I<region> I<volume> I<group>
Add a disk to a disk pool defined in the EXTENT CONTROL. Function type can be either: (4) Define region as full volume and add to group OR (5) Add existing region to group. The disk has to already be attached to SYSTEM.
2013-02-05 18:05:43 +00:00
=item B<--addnic> I<device_address> I<type> I<device_count>
Adds a network adapter to a virtual machine's directory entry (case sensitive).
2013-02-06 00:04:19 +00:00
=item B<--addpagespool> I<volume_addr> I<volume_label> I<volume_use> I<system_config_name> I<system_config_type> I<parm_disk_owner> I<parm_disk_number> I<parm_disk_password>
2013-02-05 18:05:43 +00:00
Add a full volume page or spool disk to the virtual machine.
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
=item B<--addprocessor> I<device_address>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Adds a virtual processor to a virtual machine's directory entry.
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
=item B<--addprocessoractive> I<device_address> I<type>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Adds a virtual processor to a virtual machine's active configuration (case sensitive).
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
=item B<--addvdisk> I<device_address> I<size>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Adds a v-disk to a virtual machine's directory entry.
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
=item B<--addzfcp> I<pool> I<device_address> I<loaddev> I<size> I<tag> I<wwpn> I<lun>
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
Add a zFCP device to a device pool defined in xCAT. The device must have been
carved up in the storage controller and configured with a WWPN/LUN before it can
be added to the xCAT storage pool. z/VM does not have the ability to communicate
directly with the storage controller to carve up disks dynamically. xCAT will
find the a zFCP device in the specified pool that meets the size required, if
the WWPN and LUN are not given. The device address can be automatically assigned
by specifying 'auto'. The WWPN/LUN can be set as the LOADDEV in the directory
entry if (1) is specified as the 'loaddev'.
2013-02-05 18:05:43 +00:00
=item B<--connectnic2guestlan> I<device_address> I<lan> I<owner>
2011-12-09 16:09:30 +00:00
Connects a given network adapter to a GuestLAN.
2013-02-05 18:05:43 +00:00
=item B<--connectnic2vswitch> I<device_address> I<vswitch>
2011-12-09 16:09:30 +00:00
Connects a given network adapter to a VSwitch.
2011-12-10 20:46:27 +00:00
=item B<--copydisk> I<target_address> I<source_node> I<source_address>
2011-12-09 16:09:30 +00:00
Copy a disk attached to a given virtual server.
2013-02-06 00:04:19 +00:00
=item B<--dedicatedevice> I<virtual_device> I<real_device> I<mode>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Adds a dedicated device to a virtual machine's directory entry.
2011-12-09 16:09:30 +00:00
=item B<--deleteipl>
2013-02-05 18:05:43 +00:00
Deletes the IPL statement from the virtual machine's directory entry.
=item B<--disconnectnic> I<device_address>
Disconnects a given network adapter.
2011-12-09 16:09:30 +00:00
2011-12-10 20:46:27 +00:00
=item B<--formatdisk> I<disk_address> I<multi_password>
2011-12-09 16:09:30 +00:00
Formats a disk attached to a given virtual server (only ECKD disks supported). The disk should not be linked to any other virtual server. This command is best used after add3390().
2013-02-05 18:05:43 +00:00
=item B<--grantvswitch> I<vswitch>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Grant vSwitch access for given virtual machine.
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
=item B<--purgerdr>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Purge the reader belonging to the virtual machine
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
=item B<--removedisk> I<device_address>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Removes a minidisk from a virtual machine's directory entry.
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
=item B<--removenic> I<device_address>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Removes a network adapter from a virtual machine's directory entry.
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
=item B<--removeprocessor> I<device_address>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Removes a processor from an active virtual machine's configuration.
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
=item B<--removeloaddev> I<wwpn> I<lun>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Removes the LOADDEV statement from a virtual machines's directory entry.
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
=item B<--removezfcp> I<device_address> I<wwpn> I<lun>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Removes a given SCSI/FCP device belonging to the virtual machine.
2011-12-09 16:09:30 +00:00
2013-02-06 00:04:19 +00:00
=item B<--replacevs> I<directory_entry>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Replaces a virtual machine's directory entry. The directory entry can be echoed into stdin or a text file.
2011-12-09 16:09:30 +00:00
2011-12-10 20:46:27 +00:00
=item B<--setipl> I<ipl_target> I<load_parms> I<parms>
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
Sets the IPL statement for a given virtual machine.
2011-12-09 16:09:30 +00:00
=item B<--setpassword> I<password>
2013-02-05 18:05:43 +00:00
Sets the password for a given virtual machine.
=item B<--setloaddev> I<wwpn> I<lun>
Sets the LOADDEV statement in the virtual machine's directory entry.
=item B<--undedicatedevice> I<device_address>
Delete a dedicated device from a virtual machine's active configuration and directory entry.
2011-12-09 16:09:30 +00:00
2011-12-12 15:26:55 +00:00
=back
2008-01-08 15:20:46 +00:00
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
2011-03-18 08:20:10 +00:00
=head2 PPC (with HMC) specific:
2010-06-11 01:37:19 +00:00
2008-08-02 16:18:07 +00:00
1. To change the partition profile for lpar4 using the configuration data in the file /tmp/lparfile, enter:
2008-01-08 15:20:46 +00:00
2011-04-01 01:37:00 +00:00
cat /tmp/lparfile | chvm lpar4
2008-01-08 15:20:46 +00:00
Output is similar to:
2011-04-01 01:37:00 +00:00
lpar4: Success
2008-01-08 15:20:46 +00:00
2008-08-02 16:18:07 +00:00
2. To change the partition profile for lpar4 to the existing profile 'prof1', enter:
2008-06-20 13:38:46 +00:00
2011-04-01 01:37:00 +00:00
chvm lpar4 -p prof1
2008-06-20 13:38:46 +00:00
Output is similar to:
2011-04-01 01:37:00 +00:00
lpar4: Success
2008-06-20 13:38:46 +00:00
2009-04-16 10:09:49 +00:00
3. To change partition attributes for lpar4 by specifying attribute value pairs in command line, enter:
2009-04-16 10:20:04 +00:00
2011-04-01 01:37:00 +00:00
chvm lpar4 max_mem=4096
2009-04-16 10:09:49 +00:00
Output is similar to:
2011-04-01 01:37:00 +00:00
lpar4: Success
2008-01-08 15:20:46 +00:00
2011-03-18 08:20:10 +00:00
=head2 PPC (using Direct FSP Management) specific:
2011-06-23 16:22:27 +00:00
1. For Power 775, to create a new partition lpar1 on the first octant of the cec cec01, lpar1 will use all the cpu and memory of the octant 0, enter:
2011-04-06 08:07:18 +00:00
mkdef -t node -o lpar1 mgt=fsp groups=all parent=cec01 nodetype=lpar hcp=cec01
then:
2011-11-01 02:34:11 +00:00
chvm lpar1 -i 1 -m 1 -r 0:1
2011-04-06 08:07:18 +00:00
Output is similar to:
lpar1: Success
cec01: Please reboot the CEC cec1 firstly, and then use chvm to assign the I/O slots to the LPARs
2011-06-23 16:22:27 +00:00
2. For Power 775, to create new partitions lpar1-lpar8 on the whole cec cec01, each LPAR will use all the cpu and memory of each octant, enter:
2011-04-06 08:07:18 +00:00
mkdef -t node -o lpar1-lpar8 nodetype=lpar mgt=fsp groups=all parent=cec01 hcp=cec01
then:
2011-11-01 02:34:11 +00:00
chvm lpar1-lpar8 -i 1 -m 1 -r 0-7:1
2011-04-06 08:07:18 +00:00
Output is similar to:
lpar1: Success
lpar2: Success
lpar3: Success
lpar4: Success
lpar5: Success
lpar6: Success
lpar7: Success
lpar8: Success
cec01: Please reboot the CEC cec1 firstly, and then use chvm to assign the I/O slots to the LPARs
2011-06-23 16:22:27 +00:00
3. For Power 775 cec1, to create new partitions lpar1-lpar9, the lpar1 will use 25% CPU and 25% memory of the first octant, and lpar2 will use the left CPU and memory of the first octant. lpar3-lpar9 will use all the cpu and memory of each octant, enter:
2011-04-06 08:07:18 +00:00
mkdef -t node -o lpar1-lpar9 mgt=fsp groups=all parent=cec1 nodetype=lpar hcp=cec1
then:
2011-11-01 02:34:11 +00:00
chvm lpar1-lpar9 -i 1 -m 1 -r 0:5,1-7:1
2011-04-06 08:07:18 +00:00
Output is similar to:
lpar1: Success
lpar2: Success
lpar3: Success
lpar4: Success
lpar5: Success
lpar6: Success
lpar7: Success
lpar8: Success
lpar9: Success
cec1: Please reboot the CEC cec1 firstly, and then use chvm to assign the I/O slots to the LPARs
4.To change the I/O slot profile for lpar4 using the configuration data in the file /tmp/lparfile, the I/O slots information is similar to:
2011-03-18 08:20:10 +00:00
2011-03-28 02:30:29 +00:00
4: 514/U78A9.001.0123456-P1-C17/0x21010202/2/1
4: 513/U78A9.001.0123456-P1-C15/0x21010201/2/1
4: 512/U78A9.001.0123456-P1-C16/0x21010200/2/1
2011-03-18 08:20:10 +00:00
then run the command:
2011-03-28 02:30:29 +00:00
cat /tmp/lparfile | chvm lpar4
2011-03-18 08:20:10 +00:00
2011-04-06 08:07:18 +00:00
5. To change the I/O slot profile for lpar1-lpar8 using the configuration data in the file /tmp/lparfile. Users can use the output of lsvm.and remove the cec information, and modify the lpar id before each I/O, and run the command as following:
2011-03-18 08:20:10 +00:00
2011-03-28 02:30:29 +00:00
chvm lpar1-lpar8 -p /tmp/lparfile
2011-03-18 08:20:10 +00:00
2011-07-25 03:38:47 +00:00
6. To change the LPAR name, enter:
chvm lpar1 lparname=test_lpar01
Output is similar to:
lpar1: Success
2011-05-19 18:39:50 +00:00
=head2 VMware/KVM specific:
2010-06-11 01:37:19 +00:00
2011-04-01 01:37:00 +00:00
chvm vm1 -a 8,16 --mem 512 --cpus 2
2010-06-11 01:37:19 +00:00
Output is similar to:
2011-04-01 01:37:00 +00:00
vm1: node successfully changed
2010-06-11 01:37:19 +00:00
2011-12-09 16:09:30 +00:00
=head2 zVM specific:
2013-02-05 18:05:43 +00:00
1. To adds a 3390 (ECKD) disk to a virtual machine's directory entry:
2011-12-09 16:09:30 +00:00
2013-02-15 18:15:01 +00:00
chvm gpok3 --add3390 POOL1 0101 2G MR
2011-12-09 16:09:30 +00:00
Output is similar to:
2013-02-15 18:15:01 +00:00
gpok3: Adding disk 0101 to LNX3... Done
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
2. To add a network adapter to a virtual machine's directory entry:
2011-12-09 16:09:30 +00:00
2013-02-15 18:15:01 +00:00
chvm gpok3 --addnic 0600 QDIO 3
2011-12-09 16:09:30 +00:00
Output is similar to:
2013-02-15 18:15:01 +00:00
gpok3: Adding NIC 0900 to LNX3... Done
2011-12-09 16:09:30 +00:00
3. To connects a given network adapter to a GuestLAN:
2013-02-15 18:15:01 +00:00
chvm gpok3 --connectnic2guestlan 0600 GLAN1 LN1OWNR
2011-12-09 16:09:30 +00:00
Output is similar to:
2013-02-15 18:15:01 +00:00
gpok3: Connecting NIC 0600 to GuestLan GLAN1 on LN1OWNR... Done
2011-12-09 16:09:30 +00:00
2013-02-15 18:15:01 +00:00
4. To connects a given network adapter to a vSwitch:
2011-12-09 16:09:30 +00:00
2013-02-15 18:15:01 +00:00
chvm gpok3 --connectnic2vswitch 0600 VSW1
2011-12-09 16:09:30 +00:00
Output is similar to:
2013-02-15 18:15:01 +00:00
gpok3: Connecting NIC 0600 to vSwitch VSW1 on LNX3... Done
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
5. To removes a minidisk from a virtual machine's directory entry:
2011-12-09 16:09:30 +00:00
2013-02-15 18:15:01 +00:00
chvm gpok3 --removedisk 0101
2011-12-09 16:09:30 +00:00
Output is similar to:
2013-02-15 18:15:01 +00:00
gpok3: Removing disk 0101 on LNX3... Done
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
6. To Removes a network adapter from a virtual machine's directory entry:
2011-12-09 16:09:30 +00:00
2013-02-15 18:15:01 +00:00
chvm gpok3 --removenic 0700
2011-12-09 16:09:30 +00:00
Output is similar to:
2013-02-15 18:15:01 +00:00
gpok3: Removing NIC 0700 on LNX3... Done
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
7. To replaces a virtual machine's directory entry:
2011-12-09 16:09:30 +00:00
2013-02-05 18:05:43 +00:00
cat /tmp/dirEntry.txt | chvm gpok3 --replacevs
2011-12-09 16:09:30 +00:00
Output is similar to:
2013-02-15 18:15:01 +00:00
gpok3: Replacing user entry of LNX3... Done
2011-12-09 16:09:30 +00:00
2008-01-08 15:20:46 +00:00
=head1 FILES
2008-08-02 16:18:07 +00:00
2008-01-08 15:20:46 +00:00
/opt/xcat/bin/chvm
2008-08-02 16:18:07 +00:00
=head1 SEE ALSO
L<mkvm(1)|mkvm.1>, L<lsvm(1)|lsvm.1>, L<rmvm(1)|rmvm.1>
2008-01-08 15:20:46 +00:00
2008-02-12 12:47:19 +00:00