Installing and Managing HP-UX Virtual Partitions (includes A.04.01)

Monitor and Shell Commands
Managing: Removing a Virtual Partition
Chapter 5
124
Managing: Removing a Virtual Partition
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:
1. If the virtual partition is running, shutdown the virtual partition:
winona2# vparstatus
winona2# shutdown -h
2. 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 Monitor and
Resource Information (vparstatus)” on page 111):
winona1# vparstatus | grep winona2
winona2 Down Dyn,Auto /stand/vmunix
winona2 2/ 8 2 1 2 0/ 0 1280
3. After the virtual partition is in the down state, remove the virtual partition winona2:
winona1# vparremove -p winona2
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.
NOTE If the vparremove fails but vparstatus shows the target virtual partition as down, please 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.