UnixPedia : HPUX / LINUX / SOLARIS: HPUX : FIND OUT THE DISK WE WERE BOOTED FROM

Friday, December 13, 2013

HPUX : FIND OUT THE DISK WE WERE BOOTED FROM

Method to determine From which disks we were booted the system or system got booted.

[root@mickey:/.root]#
#-> uname -a
HP-UX mickey B.11.23 U ia64 2507335133 unlimited-user license
[root@mickey:/.root]#
#-> ll /dev/dsk/ | grep $(echo "bootdev/x"|adb /stand/vmunix /dev/kmem | awk '/0x/ {print substr($1,5)}')
brw-r-----   1 bin        sys         31 0x006002 Nov 23  2006 c0t6d0s2
cr--------   1 root       root       203 0x006002 Jan 24  2007 c0t6d0s2.pt
[root@mickey:/.root]#
#-> setboot -v
Primary bootpath : 0/0/0/2/0.6.0
HA Alternate bootpath : <none>
Alternate bootpath : 0/0/6/1/0.8.0

Autoboot is ON (enabled)
TEST            CURRENT        DEFAULT
----            -------        -------
all             partial        partial
  SELFTESTS     on             on
    early_cpu   on             on
    late_cpu    on             on
  FASTBOOT      on             on
    Platform    on             on
    Full_memory on             on
  Memory_init   on             on
  IO_HW         off            off
  Chipset       on             on
[root@mickey:/.root]#
#-> ioscan -fnH 0/0/0/2/0.6.0
Class     I  H/W Path       Driver S/W State   H/W Type     Description
=======================================================================
disk      1  0/0/0/2/0.6.0  sdisk CLAIMED     DEVICE       HP 73.4GMAX3073NC
                           /dev/dsk/c0t6d0     /dev/dsk/c0t6d0s2   /dev/rdsk/c0t6d0    /dev/rdsk/c0t6d0s2
                           /dev/dsk/c0t6d0s1   /dev/dsk/c0t6d0s3   /dev/rdsk/c0t6d0s1  /dev/rdsk/c0t6d0s3
[root@mickey:/.root]#
#->

No comments:

Post a Comment