<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Boot disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5673977#M480384</link>
    <description>&lt;P&gt;&amp;gt;getting the following error on 9000/800/rp7420 model server (OS 11.31)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does this return?&amp;nbsp; The same warning messages?&lt;/P&gt;&lt;P&gt;echo "bootdev/x" | adb -n /stand/vmunix /dev/kmem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is /stand/vmunix the kernel you booted with?&lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2012 07:39:12 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2012-05-30T07:39:12Z</dc:date>
    <item>
      <title>Boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5605197#M479450</link>
      <description>&lt;P&gt;How to find out the device file of boot disk from which os got booted in a mirrored root disk environment ?&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2012 08:22:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5605197#M479450</guid>
      <dc:creator>arunthoray</dc:creator>
      <dc:date>2012-04-01T08:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5605467#M479455</link>
      <description>&lt;P&gt;No simple answer...it is very different depending on the revision of HP-UX you are using and whether you are running on PARISC or Itanium.&amp;nbsp; Here is a code snippet that runs on all versions of 10.xx through 11.31, PARISC and Itanium (aka, Integrity):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#!/usr/bin/sh

set -u

MYREV=$(uname -r | cut -f2-3 -d. | tr -d .)
echo "   Last booted using \c"

# boot string not available for 11.23 and higher  -- returns device minor number only
# ie, 0x1f010000 (PARISC) or 0x3000003 (IA)
# For 11.31, it will be the minor # for DSF device -- use ioscan to find CTD

if [[ $MYREV -gt 1111 ]]        ## new adb for 11.2x and higher
then
    BOOTCODE=$(echo "bootdev/x" \
      | adb -n /stand/vmunix /dev/kmem \
      | tail -1 \
      | tr -d " ")
    BOOTSTRING=$(echo $BOOTCODE | cut -dx -f2)
    LEN=${#BOOTSTRING}
    BOOTMINOR=$(echo "$BOOTSTRING" | cut -c $(($LEN-5))-)
    DISKDEVS=$(ll /dev/dsk | grep "0x$BOOTMINOR" | awk '{print $NF}')

# for 11.31, minor is for the DSF device file

    if [ $MYREV -ge 1131 ]
    then
       DISKDEVS=$(ll /dev/disk | grep "0x$BOOTMINOR" | head -1 | awk '{print $NF}' | cut -f1 -d_)
       DISKCTD=$(ioscan -m dsf /dev/disk/$DISKDEVS | tail -1 | awk '{print $NF}')
       DISKDEVS="$DISKDEVS or $(ioscan -m dsf /dev/disk/$DISKDEVS \
         | tail -1 \
         | awk '{print $NF}' \
         | awk -F / '{print $NF}' )"
    fi

    echo "$BOOTCODE ($DISKDEVS)"

else                            # tabs supplied by adb
   echo "boot_string/S"  \
      | adb -k /stand/vmunix /dev/kmem   \
      | tail -1 \
      | tr -d '[:blank:]' \
      | cut -d: -f2-            # drop "boot_string:"
fi&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;You can strip out the code that matches your version of HP-UX or use all of it to handle all possible versions of HP-UX starting with 10.xx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2012 01:00:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5605467#M479455</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2012-04-02T01:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5606197#M479475</link>
      <description>&lt;P&gt;Thank you Bill for that script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On PARISC servers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo "boot_string/S" | adb /stand/vmunix /dev/kmem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Not tested on all servers. Worked for me most of the times I used it)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On Itanium boxes grep for Boot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;grep Boot /var/adm/syslog/syslog.log&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apr&amp;nbsp; 1 09:55:35 ****** vmunix: Boot device's HP-UX HW path is: 0.0.1.0.0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will give you the hardware path of boot disk. You can then find the device file using the ioscan -fnH command. Works on 11.31, not tried on the previous versions.&lt;/P&gt;&lt;P&gt;(The information will be logged when the server starts. So if your server is configured to trim the syslog file on regular basis you may have to search for entries corresponding to your last reboot time in your archived syslog files)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2012 08:39:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5606197#M479475</guid>
      <dc:creator>VKV</dc:creator>
      <dc:date>2012-04-02T08:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5670175#M480361</link>
      <description>&lt;P&gt;Still i didn't get any correct answer.&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2012 15:11:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5670175#M480361</guid>
      <dc:creator>arunthoray</dc:creator>
      <dc:date>2012-05-26T15:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5670217#M480363</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt; Still i didn't get any correct answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This isn't helpful at all. What did you try? Did you use grep to look at syslog.log, or did you use my script?&amp;nbsp; If you did either of those ideas, what was the result? Did you have problems running the script above? Did your computer crash? Was there any error message when you tried the steps above?&lt;/P&gt;</description>
      <pubDate>Sat, 26 May 2012 21:10:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5670217#M480363</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2012-05-26T21:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5673733#M480383</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i run using your script am getting the following error on 9000/800/rp7420 model server (os 11.31)&lt;BR /&gt;&lt;BR /&gt;Last booted using adb: warning: Object file and memory file versions do not match ...&lt;BR /&gt;adb: warning: Symbol lookups may fail.&lt;BR /&gt;0x1 (disk10 or c2t0d0&lt;BR /&gt;-------------------------------------------------------------------------&lt;BR /&gt;but the scripts is working fine on 9000/800/rp4440,ia64 hp superdome server SD32B,(os 11.31)&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;grep Boot /var/adm/syslog/syslog.log -&amp;gt; it is not working out any of my server.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 04:02:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5673733#M480383</guid>
      <dc:creator>arunthoray</dc:creator>
      <dc:date>2012-05-30T04:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5673977#M480384</link>
      <description>&lt;P&gt;&amp;gt;getting the following error on 9000/800/rp7420 model server (OS 11.31)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does this return?&amp;nbsp; The same warning messages?&lt;/P&gt;&lt;P&gt;echo "bootdev/x" | adb -n /stand/vmunix /dev/kmem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is /stand/vmunix the kernel you booted with?&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2012 07:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/boot-disk/m-p/5673977#M480384</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-05-30T07:39:12Z</dc:date>
    </item>
  </channel>
</rss>

