Showing posts with label Root Password reset in HP UNIX. Show all posts
Showing posts with label Root Password reset in HP UNIX. Show all posts

Wednesday, September 29, 2021

Introduction to HA and HP Unix Service guard cluster

What is HP UX cluster?

A Serviceguard cluster is a networked grouping of HP 9000 or HP Integrity servers (or both), known as nodes, having sufficient redundancy of software and hardware that a single point of failure will not significantly disrupt service. A package groups application services (individual HP-UX processes) together.  Serviceguard has existed since 1990, which HP claims to have been the first high availability solution for UNIX. HP Serviceguard, formerly known as MC/ServiceGuard, is a high-availability cluster software produced by HP that runs on HP-UX and Linux.

High availability (HA) is a component of a technology system that eliminates single points of failure to ensure continuous operations or uptime for an extended period. High availability clusters are groups of servers that support business-critical applications that require minimal downtime and continuous availability.

Here we are going to tell how to check the status of two node cluster and its package-

Suppose we have two node cluster and 3 packages on each node. And our server rebooted accidently, so here few commands are listed for how can check and run cluster services -

To check cluster status -

#cmviewcl

To run cluster service -

#cmruncl

If above command is showing errors, so you need to check cluster status again -

#cmviewcl

If any nodes or packages still in down state then we need to start them manually -

#cmrunnode nodename

If all packages are in halt state, so we need to login individual nodes to run their packages

#cmrunpkg pkgname

To make enable package up automatically after rebooting -

#cmmodepkg pkgname

In case, we need to set our one node on maintenance and we need to run all service with single node.

Then we need to run all packages in one node and need to halt another node. After that we can put another node in maintenance -


To halt  and shift packages to one node -

#cmhaltpkg pkgname

#cmrunpkg pkgname nodename

To halt node

cmhaltnode nodename

After that we can check all packages will be moved and in up state in one node, while another node will be in haltstate-

#cmviewcl


Congratulations, Now you have run the cluster in single node. 

you can also check our page for 

Import/Export volume group map in HP UNIX cluster

https://lalganjrbl.blogspot.com/search/label/Import%2FExport%20volume%20group%20map%20in%20HP%20UNIX%20cluster

 

Saturday, May 23, 2020

Root Password reset in HP UNIX



Root Password reset in HP UNIX




Root Password reset in HP-UNIX


If you forget your root account password or password expired then you can reset your password by using below simple steps but before process starting take approval for downtime.


1.First of all reboot your server and login through MP and take console.

2. After that while prompt for interrupt autoboot then press escape. 

Press Any Key to interrupt Autoboot
\EFI\HPUX\AUTO ==> boot vmunix
Seconds left till autoboot -   9

HPUX>


3.Then initialize single user mode by using below command: -

HPUX> boot -is

> System Memory = 8170 MB
loading section 0
........................................................................... (complete)
loading section 1
................. (complete)
loading symbol table
loading System Directory (boot.sys) to MFS
.....
loading MFSFILES directory (bootfs) to MFS
......................................

================================================================================
WARNING: Multiple console output devices are configured. If this message
remains on the screen for more than a few minutes, then this is not the
device in use by HP-UX as the console output device. If you would like this
device to be the one used by HP-UX as the console output device, reboot and
use the EFI boot manager or the EFI 'conconfig' command to select this device
and deconfigure the others.
================================================================================

Launching /stand/vmunix
SIZE: Text:37982K + Data:8501K + BSS:27226K = Total:73710K
Console is on Serial Device - via PCDP
Booting kernel...

Loaded ACPI revision 2.0 tables.
Using /stand/ext_ioconfig

Memory Class Setup
-------------------------------------------------------------------------
Class     Physmem              Lockmem              Swapmem
-------------------------------------------------------------------------
System :  7769 MB              7769 MB              7769 MB
Kernel :  7769 MB              7769 MB              7769 MB
User   :  7028 MB              6231 MB              6255 MB
-------------------------------------------------------------------------

ktracer is off until requested.
spinlock ALAT switching supported on this system
Installing Socket Protocol families AF_INET and AF_INET6
Kernel EVM initialized
sec_init(): kernel RPC authentication/security initialization.
secgss_init():  kernel RPCSEC_GSS security initialization.
rpc_init(): kernel RPC initialization.
rpcmod_install(): kernel RPC STREAMS module "rpcmod" installation. ...(driver_install)
NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
NOTICE: cachefsc_install: cachefs File system was registered at index 13.
CISS: RAID SA P400 controller on hardware path 0/3/0/0/0/0 is now online.
Boot device's HP-UX HW path is: 0/3/0/0/0/0.0x0.0x4000000000000000

    System Console is on the Built-In Serial Interface
igelan0: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0/1/2/0
iether2: INITIALIZING HP AD337-60001 PCIe 1000Base-T Dual-port Adapter at hardware path 0/5/0/0/0/0
iether3: INITIALIZING HP AD337-60001 PCIe 1000Base-T Dual-port Adapter at hardware path 0/5/0/0/0/1
igelan1: INITIALIZING HP PCI-X 1000Base-T Dual-port Built-in at hardware path 0/1/2/1
AF_INET socket/streams output daemon running, pid 51
afinet_prelink: module installed
Starting the STREAMS daemons-phase 1
LVM: Root VG activated
    Swap device table:  (start & size given in 512-byte blocks)
        entry 0 - major is 64, minor is 0x2; start = 0, size = 16777216
Checking root file system.
file system is clean - log replay is not required
Root check done.
Create STCP device files
Starting the STREAMS daemons-phase 2
     $Revision: vmunix:    B.11.31_LR FLAVOR=perf
Memory Information:
    physical page size = 4096 bytes, logical page size = 4096 bytes
    Physical: 8366068 Kbytes, lockable: 5935488 Kbytes, available: 6752348 Kbytes

/sbin/ioinitrc:
/dev/vg00/lvol1:file system is clean - log replay is not required
/sbin/krs_sysinit:
       * The module 'gvid_info' has been loaded.
       * The module 'rng' has been loaded.
       * The module 'pciinfo' has been loaded.

insf: Installing special files for ipmi instance 0 address 250/0
insf: Installing special files for pseudo driver framebuf


INIT: Overriding default level with level 's'

INIT: SINGLE USER MODE


INIT: Running /sbin/sh
#

4. Then mount /usr directory and restore /etc/passwd

# mount /usr
# /usr/lbin/tsconvert -r
Restoring /etc/passwd...
/etc/passwd restored.
Deleting at and crontab audit ID files...
Can't open directory: /var/spool/cron/.ataids

5. Now you can change password by passwd command: -

# passwd root
Changing password for root
New password:
Re-enter new password:
Passwd successfully changed
# reboot

 Now password changed successfully. Reboot your server and login with new password.



Introduction to Linux Part 1

Introduction to Linux Part 1

Introduction to Linux Linux is an operating system that works just like Windows and Mac OS X. As an operating system, Linux is a very h...