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

Monitor and Shell Commands
Removing a Virtual Partition
Chapter 5126
Removing a Virtual Partition
To remove a virtual partition, use vparremove. vparremove purges the
virtual partition from the vPars partition database. Any resources
dedicated to the virtual partition are now free to allocate to a different
virtual partition.
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 “Obtaining Monitor and Hardware
Resource Information” on page 129):
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.