Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Friday, January 30, 2015

Shutdown/reboot/halt commands + HPUX

Shutdown/reboot/halt commands + HPUX

From Multi-user mode:

* shutdown -ry 0 --> reboot

* shutdown -hy 0 --> shutdown and halt


or


 init 0 --> halt


* shutdown 0 --> shutdown to single user mode


or


init s


or


ISL> hpux -is --> from console,by interrupting the auto boot process



* reboot 0 --> reboot



Note : 0 means restart/halt the server immediately.

Graphical View of Shutdown process:



From console (GSP Menu) :

  a.TC : it will create the dump

  b.RS :RST(reset)signal will be send to processor

  C.PC : power cycle




Thanks...
Kiran Jadhav


**Let's Share our knowledge and keep visiting here**




Tuesday, January 27, 2015

Root password forgot + HPUX

Root password forgot + HPUX

Situation: I was not able to do sudo as somebody changed the permission on sudoers file or sudoers file is corruped so I had to login with root user through console, but i 
got to know that i dont know root password.

While doing sudo i got below error:

mysrv:/home/> sudo su -
sudo: /opt/iexpress/sudo/etc/sudoers is mode 0440, should be 0644


Solution : Reboot the server in single user mode through console and edit the file /tcb/files/auth/r/root.

Steps:

1. Reboot the server through console either by PC or RS command:

2. interrupt the boot sequence to interact with ISL (initial system loader)

************************************
Processor is booting from first available device.

To discontinue, press any key within 10 seconds.

Boot terminated.


---- Main Menu ---------------------------------------------------------------

     Command                           Description
     -------                           -----------
     BOot [PRI|ALT|]             Boot from specified path
     PAth [PRI|ALT] []           Display or modify a path
     SEArch [DIsplay|IPL] []     Search for boot devices

     COnfiguration menu                Displays or sets boot values
     INformation menu                  Displays hardware information
     SERvice menu                      Displays service commands

     DIsplay                           Redisplay the current menu
     HElp [|]           Display help for menu or command
     RESET                             Restart the system
----
Main Menu: Enter command or menu > bo pri ISL
Interact with IPL (Y, N, or Cancel)?> Y

Booting...
Boot IO Dependent Code (IODC) revision 1


HARD Booted.

ISL Revision A.00.43  Apr 12, 2000

ISL>


3. Go to single user mode

*******************************************************

ISL> hpux -is

Boot
: disk(0/0/1/1.2.0.0.0.0.0;0)/stand/vmunix
10649600 + 2105344 + 2044264 start 0x1fe4e8

alloc_pdc_pages: Relocating PDC from 0xf0f0000000 to 0x7fa01000.
gate64: sysvec_vaddr = 0xc0002000 for 2 pages
NOTICE: autofs_link(): File system was registered at index 3.
NOTICE: cachefs_link(): File system was registered at index 5.
NOTICE: nfs3_link(): File system was registered at index 6.
td: claimed Tachyon XL2 Fibre Channel Mass Storage card at 0/2/0/0
td: claimed Tachyon XL2 Fibre Channel Mass Storage card at 0/3/0/0
td: claimed Tachyon XL2 Fibre Channel Mass Storage card at 0/6/0/0
td: claimed Tachyon XL2 Fibre Channel Mass Storage card at 0/7/0/0

    System Console is on the Built-In Serial Interface
Logical volume 64, 0x3 configured as ROOT
Logical volume 64, 0x2 configured as SWAP
Logical volume 64, 0x2 configured as DUMP
    Swap device table:  (start & size given in 512-byte blocks)
        entry 0 - major is 64, minor is 0x2; start = 0, size = 8388608
Starting the STREAMS daemons-phase 1
Checking root file system.
log replay in progress
replay complete - marking super-block as CLEAN
Root check done.
Create STCP device files
Starting the STREAMS daemons-phase 2
              $Revision: vmunix:    vw: -proj    selectors: CUPI80_BL2000_1108 -c 'Vw for CUPI80_BL2000_1108 build' -- cupi80_bl2000_1108 'CUPI80_BL2000_1108'  Wed Nov  8 
19:24:56 PST 2000 $
Memory Information:
    physical page size = 4096 bytes, logical page size = 4096 bytes
    Physical: 4194304 Kbytes, lockable: 3158620 Kbytes, available: 3639268 Kbytes

/sbin/ioinitrc:
/dev/vg00/lvol1: 67 files, 0 icont, 5132 used, 57066 free (162 frags, 7113 blocks)
/sbin/krs_sysinit:


Starting EMC PowerPath.


INIT: Overriding default level with level 's'

INIT: SINGLE USER MODE

INIT: Running /sbin/sh

****************************************************************

4. Run mountall command or just mount /var , /tmp, /usr by looking into /etc/fstab file.

# cat /etc/fstab

#mountall

Note: while mounting FS if any error comes then run fsck command on that LVs/FS.


5. Try to change root password. but we can't as we dont know old root password.

# passwd root
Old password:

6. So edit the trusted system file means /tcb/files/auth/r/root and nullify the u_pwd string which stores password in it.

# cat /tcb/files/auth/r/root |grep -i "u_pwd"
        :u_pwd=mGsOWDUjI0ULw4bkUQL6uxQY:\

7. After making null password or blank password

# cat /tcb/files/auth/r/root |grep -i "u_pwd"
        :u_pwd=:\

8. Now change the password for root, this time it will not ask old root password to type.

# passwd root

9. unmount all the mouted filesystems.

# umountall

10. Reboot the system 

# reboot
Shutdown at 14:45 (in 0 minutes)
System shutdown time has arrived


Thanks...
Kiran Jadhav


**Let's Share our knowledge and keep visiting here**

Monday, January 26, 2015

रडणे माझे फसवे नाही…किरण जाधव...!!!

रडणे माझे फसवे नाही… 

मन माझं का थकलं
माझं असं काय चुकलं ,
स्पंदने सारी हरवली कुठे
हृद्याचं धडधडणं का हुकलं...

पाय जडावलेत पुन्हा
अंगात आता त्राण नाही,
ऊरी सलतंय खोलवर काही
घुसलेला आत बाण नाही…

पापण्या ओलावल्यात जरी
पण डोळ्यांमध्ये आसवे नाही,
वाटे जरी हे सारे खोटे
पण रडणे माझे फसवे नाही..

खरचं फसवे नाही…


किरण जाधव...!!!

{ पुरूष ही रडतो कधी-कधी ;-) }

Wednesday, January 21, 2015

हो, तुला मी विसरलेय... किरण जाधव

**हो, तुला मी विसरलेय**

हो, तुला मी विसरलेय
आता थोडीशी सावरलेय ,
तुझ्या आठवणींचे तण उपटूनी
बघ पुन्हा एकदा बहरलेय …

तुझ्यासाठी मी का झुरावं  ?
क्षण-क्षण जगताना का मरावं ?
 खोट्या स्वप्नांच्या दगडाला चिकटून
माझं आयुष्य शेवाळ का करावं ?...

मी तुला फसवा म्हणत नाही
मी तुला भ्याड म्हणत नाही,
पण तु माझा नाहीस हे म्हणताना
पहिल्यासारखी कण्हत नाही…
बघ खरच आता कण्हत नाही



किरण जाधव...!!!

Tuesday, January 13, 2015

Genesis Partiotion - HPUX

Interview Question:

What is Genesis Partition?

Answer:

1. The first npar created in a server is referred to as Genesis partiontion.

2. It is a single cell partition built via MP (Management Processor). We can load the HP-UX 11i OE once the genesis partition is created

3. To create genesis partion. go to MP --> CM --> CC & then choose option G.       Pick a cell that contains processors & memory and it must be conneced an         I/O chasis with a core I/O card installed.

   Use the "bo" option from MP menu to boot the npar & start the installation.

4. After the installation, issue "parstatus" command to check the status &               resourcess available on that npar.


  Display the local partition number in a full sentence.
  # parstatus -w



Thanks...
Kiran Jadhav

**Let's Share our knowledge and keep visiting here**

Saturday, January 10, 2015

Bound and Unbound CPU - HPUX

Bound and Unbound CPU - HPUX:

In Vpars, there are two types of CPU

1. Bound CPU 2. Unbound CPU

* A bound cpu is assigned to handle I/O interrupts in Vpar. So every Vpar must have atleast 1 bound CPU.

* An unbound cpu is floater cpu. The CPU which is not assinged to any Vpar or which is assigned but do not handle I/O interrupts is "Unbound Cpu"

* All CPU's are initially not assigned to any Vpar so all CPU begin as unbound cpu.

* Using Vpar command we can assign cpu as bound or unbound to Vpar.

* We can dynamically migrate only unbound CPUs.

####################################

consider below cases:
vparname: myvpar
2 bound cpu; 1 unbound cpu

{To create the partition winona2 with two bound CPUs and one unbound CPU
# vparcreate -p myvpar -a cpu::3 -a cpu:::2}

Vparname: urvpar
two bound and two unbound CPUs


1.To add an unbound CPU to an existing partition,
either modify the total number of CPUs (-m cpu::total) or add to the total number of CPUs (-a cpu::total).

myvpar# vparmodify -p myvpar -m cpu::4
or add one to total:

myvpar# vparmodify -p myvpar -a cpu::1


2. To delete one unbound CPU from the partition myvpar, which is having 3 CPUs:

myvpar# vparmodify -p myvpar -m cpu::2

or

myvpar# vparmodify -p myvpar -d cpu::1



3. migrate 1 unbound cpu from myvpar to urvpar

myvpar# vparmodify -p myvpar -d cpu::1; vparmodify -p urvpar -a cpu::1



Thanks...
Kiran Jadhav

**Let's Share our knowledge and keep visiting here**