HP Integrity Superdome 2 8/16 HP Superdome 2 Partitioning Administrator Guide - Page 75

vparcreate, vparmodify, CPUs to the virtual partition

Page 75 highlights

num specifies the number of CPUs NOTE: • -d cpu::num syntax (deletion by total), or • -d cpu:hw_path syntax (deletion by resource path) A virtual partition has to be down to add or delete CPUs. Deletion by total (cpu::num) is required when cores that were assigned by total are to be deleted. Deletion by path is required when cores added by path are to be deleted. Total increases or decreases by num when using the -a or -d options and is set to num when using the -m option. vparcreate With the vparcreate command, you would use the -a option and specify as num the number of CPUs to allocate to the virtual partition. If no cpu syntax is given on the vparcreate command line, the default value for total cpu is 0. Example • To create a virtual partition with 3 CPUs, set num to 3: vparcreate -N nParID -p vParID -a cpu::3 or vparcreate -p nparID:vParID -a cpu::3 vparmodify With the vparmodify command, you can use the: • -a option to add num CPUs to the virtual partition, • -d option to delete num CPUs from the virtual partition, • -m option to modify (set) to num the number of CPUs assigned to the partition. Examples • If an existing partition has 2 CPUs and you would like to set the number of CPUs to 3, you can modify the number of CPUs assigned to the partition by using the -m option and setting num to 3: vparmodify -N nPar0001 -p vPar0001 -m cpu::3 To set the number of CPUs back to two, use the -m option and set num to 2: vparmodify -N nPar0001 -p vPar0001 -m cpu::2 • If you would like to add 1 CPU-core to an existing partition, regardless of its current CPU-core count, you can add 1 CPU-core by using the -a option and setting num to 1: vparmodify -N nPar0001 -p vPar0001 -a cpu::1 To remove the added CPU-core from the partition, use the -d option and set num to 1: vparmodify -N nPar0001 -p vPar0001 -d cpu::1 Planning Your Virtual Partitions 75

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106

num
specifies the number of CPUs
NOTE:
-d
cpu::
num
syntax (deletion by total), or
—d
cpu:
hw_path
syntax (deletion by resource path)
A virtual partition has to be down to add or delete CPUs.
Deletion by total (
cpu::
num
) is required when cores that were assigned by total are to be deleted.
Deletion by path is required when cores added by path are to be deleted.
Total increases or decreases by
num
when using the
-a
or
-d
options and is set to
num
when
using the
-m
option.
vparcreate
With the
vparcreate
command, you would use the
-a
option and specify as
num
the number
of CPUs to allocate to the virtual partition.
If no
cpu
syntax is given on the
vparcreate
command line, the default value for total cpu is
0.
Example
To create a virtual partition with 3 CPUs, set
num
to 3:
vparcreate -N nParID -p vParID -a cpu::3
or
vparcreate -p nparID:vParID -a cpu::3
vparmodify
With the
vparmodify
command, you can use the:
-a
option to add
num
CPUs to the virtual partition,
-d
option to delete
num
CPUs from the virtual partition,
-m
option to modify (set) to
num
the number of CPUs assigned to the partition.
Examples
If an existing partition has 2 CPUs and you would like to set the number of CPUs to 3, you
can modify the number of CPUs assigned to the partition by using the
-m
option and setting
num
to 3:
vparmodify -N nPar0001 -p vPar0001 -m cpu::3
To set the number of CPUs back to two, use the
-m
option and set
num
to 2:
vparmodify -N nPar0001 -p vPar0001 -m cpu::2
If you would like to add 1 CPU—core to an existing partition, regardless of its current
CPU—core count, you can add 1 CPU—core by using the
-a
option and setting
num
to 1:
vparmodify -N nPar0001 -p vPar0001 -a cpu::1
To remove the added CPU—core from the partition, use the
-d
option and set
num
to 1:
vparmodify -N nPar0001 -p vPar0001 -d cpu::1
Planning Your Virtual Partitions
75