Problem
How to remove a vPar from nPar in HP-UX?
I have an HP-UX virtualization environment in which one nPar has 3 vPar as shown below:
# hpvmstatus [Virtual Machines] Virtual Machine Name VM # Type OS Type State #VCPUs #Devs #Nets Memory ==================== ===== ==== ======= ========= ====== ===== ===== ======= DBAPPWEB1 1 VP HPUX On (OS) 4 4 2 16384 MB DBAPPWEB2 2 VP HPUX On (OS) 4 4 1 16384 MB DBAPPWEB3 3 VP HPUX On (OS) 4 5 1 98304 MB
As virtual machine DBAPPWEB2 is no longer required, I have to remove this VM (vPar) from the above nPar.
Solution
To remove a Virtual Partition (vPar) from a Non-Uniform Memory Access (NUMA) Partition (nPar) using HPVM (HP Virtual Machine), you’ll need to perform a series of steps. Be cautious when doing this operation, as it can impact the virtualized environment. Make sure you have backups and follow your organization’s guidelines for system administration. Here are the steps to remove a vPar from a nPar using hpvm command which I followed:
- Connect to HPVM host (nPar): Log in to the HPVM host system as the superuser (root) or a user with administrative privileges.
- Stop the vPar: Before removing a vPar, it should be stopped. Use the
hpvmstatus
andhpvmstop
commands to check the current status of the vPar and stop it. Here I have stopped the vPar DBAPPWEB2 which I want to remove.# hpvmstop -P DBAPPWEB2 hpvmstop: Stop the virtual machine 'DBAPPWEB2'? [n/y]: y #
- Remove the vPar Configuration: To remove the vPar configuration, use the
hpvmremove
command followed by the name of the vPar you want to remove. Here vPar name is DBAPPWEB2.# hpvmremove -P DBAPPWEB2 hpvmremove: Remove the virtual machine 'DBAPPWEB2'? [n/y]: y #
- Check and Confirm: After removing the vPar, double-check that the vPar is no longer listed in the virtualized environment configuration. Use the
hpvmstatus
command to verify that it has been successfully removed. Here output shows that vPar DBAPPWEB2 has been removed successfully.# hpvmstatus [Virtual Machines] Virtual Machine Name VM # Type OS Type State #VCPUs #Devs #Nets Memory ==================== ===== ==== ======= ========= ====== ===== ===== ======= DBAPPWEB1 2 VP HPUX On (OS) 4 4 2 16384 MB DBAPPWEB3 3 VP HPUX On (OS) 4 5 1 98304 MB #
Related Posts
- How to clone an HP-UX system image using Dynamic Root Disk (DRD)
- HP-UX password with special characters
- HP-UX SSH Login Without Password
- hpvmstatus command with example in HP-UX
- How to Reboot vPar from console in HP-UX
- List of Latest Installed Bundles and Products on HP-UX
Last Updated: September 09, 2023