Reboot vPar from Console
- Login to nPar as root and check the status of the vPars by using the command vparstatus.
# vparstatus [Virtual Partition] Num Name RunState State === ========================== ============ ========= 1 daw_vpar1 UP Active 2 daw_vpar1 UP Active 3 daw_vpar1 UP Active [Virtual Partition Resource Summary] Virtual Partition CPU Num Num Total MB Floating MB Num Name Min/Max CPUs IO Memory Memory === ========================== ======= ==== ==== ========= ============ 1 daw_vpar1 1/512 2 5 16384 0 2 daw_vpar1 1/512 3 5 16384 0 3 daw_vpar1 1/512 2 6 65536 0 #
- Connect to vPar console using the command vparconsole -p <vPar Name or Num>. Here I have connected to the virtual partition (vPar) 1 which is daw_vpar1
# vparconsole -p 1 vMP MAIN MENU CO: Console CM: Command Menu CL: Console Log SL: Show Event Logs VM: Virtual Machine Menu HE: Main Help Menu X: Exit Connection
- Type command co to go to live console and log in as root by providing the password.
[dbappweb1] vMP> co (Use Ctrl-B to return to vMP main menu.) - - - - - - - - - - Prior Console Output - - - - - - - - - - . . - - - - - - - - - - - - Live Console - - - - - - - - - - - - GenericSysName [HP Release B.11.31] (see /etc/issue) Console Login: root Password: Last successful login: Mon Aug 10 10:32:04 IST 2020 /dev/console Last authentication failure: Tue Jan 28 14:30:28 IST 2020 /dev/console Please wait...checking for disk quotas (c)Copyright 1983-2006 Hewlett-Packard Development Company, L.P. (c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California . . . You have mail. Value of TERM has been set to "vt100". WARNING: YOU ARE SUPERUSER !!
- Now run the command shutdown -ry now to reboot or restart the vPar.
# shutdown -ry now SHUTDOWN PROGRAM 08/10/20 10:48:54 IST Broadcast Message from root (console) Mon Aug 10 10:48:54... SYSTEM BEING BROUGHT DOWN NOW ! ! ! /sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log) System shutdown in progress ___________________________ Stop LVM daemon ................................................. OK Stop kwdbd ...................................................... N/A Stopping HP-UX Apache-based Web Server .......................... OK Stopping HP-UX Tomcat-based Servlet Engine. ..................... N/A Stopping HP-UX Webmin-based Admin ............................... OK Stopping the HPUX Webproxy subsystem ............................ OK
- vPar machine is rebooting now, and it will take some time to come up.
Note: If vPar is already down or hung then use the vparstatus to check the status of the vPar and use commands like vparreset and vparboot to reset/startup the vPar.
# vparreset -p vPar_name [-h|-t] [-q] [-f]
# vparboot -p vPar_name
Last Updated: Aug 16, 2020