To remove a virtual partition, use vparremove. vparremove purges the virtual partition from
the vPars database. Any resources dedicated to the virtual partition
are now free to allocate to a different virtual partition (for A.03,
see Appendix B for exceptions).
You need to shutdown the virtual partition before
attempting removal. If the target virtual partition is running, vparremove will fail.
Example
To remove a virtual partition named winona2:
If the virtual partition
is running, shutdown the virtual partition:
winona2# vparstatus
winona2# shutdown -h |
From the running virtual
partition winona1, verify the target virtual
partition winona2 has entered the down state (for more information on virtual partition
states, see “Commands: Displaying vPars Monitor and Resource Information
(vparstatus)”):
winona1# vparstatus | grep winona2
winona2 Down Dyn,Auto /stand/vmunix
winona2 2/ 8 2 1 2 0/ 0 1280 |
After the virtual partition
is in the down state, remove the virtual
partition winona2:
winona1# vparremove -p winona2
 |
 |  |
 |
 | NOTE: If the vparremove fails but vparstatus shows the target virtual partition as down,
try the vparremove again after waiting a few seconds.
There is a small window of time after a virtual partition is downed
by the shutdown or vparreset command before you can perform the vparremove command successfully. |
 |
 |  |
 |
 |
 |  |
 |
 | TIP: When a virtual partition is removed, data residing
on the disk(s) of the target partition is not removed. If you have
removed a partition by accident, you may be able to recover the partition
by immediately re-creating the same virtual partition with the same
assigned resources. |
 |
 |  |
 |