<?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: identify the right disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199844#M166428</link>
    <description>Thanks guys....Both methods work just fine.&lt;BR /&gt;sahblpd1-&amp;gt;ls -la /dev/dsk | grep 0x166500&lt;BR /&gt;brw-r-----   1 bin        sys         31 0x166500 Apr 16  2003 c22t6d5&lt;BR /&gt;sahblpd1-&amp;gt;ll /dev/dsk |grep 0x166500&lt;BR /&gt;brw-r-----   1 bin        sys         31 0x166500 Apr 16  2003 c22t6d5&lt;BR /&gt;&lt;BR /&gt;c16t6d5 is an alternate path for c22t6d5.&lt;BR /&gt;</description>
    <pubDate>Mon, 23 Feb 2004 15:00:50 GMT</pubDate>
    <dc:creator>Christopher Pereira</dc:creator>
    <dc:date>2004-02-23T15:00:50Z</dc:date>
    <item>
      <title>identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199839#M166423</link>
      <description>I have a SAN configuration with an HDS 9980 disk array can you help me identify which disk had an issue here?&lt;BR /&gt;&lt;BR /&gt;Feb 22 09:51:51 sahblpd1 vmunix: SCSI: Read error -- dev: b 31 0x166500, errno: 126, resid: 2048,&lt;BR /&gt;Feb 22 09:51:51 sahblpd1 vmunix:        blkno: 8, sectno: 16, offset: 8192, bcount: 2048.&lt;BR /&gt;Feb 22 09:51:51 sahblpd1 vmunix: LVM: vg[19]: pvnum=6 (dev_t=0x1f166500) is POWERFAILED&lt;BR /&gt;Feb 22 09:51:51 sahblpd1 vmunix: SCSI: Read error -- dev: b 31 0x166500, errno: 126, resid: 8192,&lt;BR /&gt;Feb 22 09:51:51 sahblpd1 vmunix:        blkno: 51400, sectno: 102800, offset: 52633600, bcount: 8192.&lt;BR /&gt;Feb 22 09:51:51 sahblpd1 vmunix: LVM: Performed a switch for Lun ID = 0 (pv = 0x0000000071b7f000), from raw device 0x1f166500&lt;BR /&gt; (with priority: 0, and current flags: 0xc0) to raw device 0x1f0e6500 (with priority: 1, and current flags: 0x0).&lt;BR /&gt;Feb 22 09:51:51 sahblpd1 vmunix:&lt;BR /&gt;Feb 22 09:51:56 sahblpd1 vmunix: LVM: Performed a switch for Lun ID = 0 (pv = 0x0000000071b7f000), from raw device 0x1f0e6500&lt;BR /&gt; (with priority: 1, and current flags: 0x40) to raw device 0x1f106500 (with priority: 2, and current flags: 0x0).&lt;BR /&gt;Feb 22 09:51:56 sahblpd1 vmunix: LVM: Recovered Path (device 0x1f166500) to PV 6 in VG 19.&lt;BR /&gt;Feb 22 09:51:56 sahblpd1 vmunix: LVM: Performed a switch for Lun ID = 0 (pv = 0x0000000071b7f000), from raw device 0x1f106500&lt;BR /&gt; (with priority: 2, and current flags: 0x0) to raw device 0x1f166500 (with priority: 0, and current flags: 0x80).&lt;BR /&gt;Feb 22 09:51:56 sahblpd1 vmunix: LVM: Recovered Path (device 0x1f0e6500) to PV 6 in VG 19.&lt;BR /&gt;Feb 22 09:51:57 sahblpd1 vmunix: LVM: Restored PV 6 to VG 19.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Feb 2004 14:41:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199839#M166423</guid>
      <dc:creator>Christopher Pereira</dc:creator>
      <dc:date>2004-02-23T14:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199840#M166424</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;in 0xabcd00 - ab togehter is controller&lt;BR /&gt;              c represents the target and&lt;BR /&gt;              d is the lun number  &lt;BR /&gt;&lt;BR /&gt;So dev: b 31 0x166500 translates to &lt;BR /&gt;&lt;BR /&gt;c16t6d5&lt;BR /&gt;&lt;BR /&gt;In other way you can do a ll /dev/dsk |grep 0x166500&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 23 Feb 2004 14:48:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199840#M166424</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-23T14:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199841#M166425</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# ls -la /dev/dsk | grep 0x166500&lt;BR /&gt;&lt;BR /&gt;should give you the right disk.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 23 Feb 2004 14:48:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199841#M166425</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-02-23T14:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199842#M166426</link>
      <description>Oops. correction. It should be in hexa. So&lt;BR /&gt;&lt;BR /&gt;0x166500 shoudl get translated to c22t6d5 if my hex-to-dec math is correct.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Feb 2004 14:51:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199842#M166426</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-23T14:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199843#M166427</link>
      <description>This code helps identify this stuff for you.&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;# disk.status Created 8/29/2003&lt;BR /&gt;# Steven E. Protter&lt;BR /&gt;#&lt;BR /&gt;# Designed to check that all disks in /etc/lvmtab are alive&lt;BR /&gt;# send an alert email if that is not the case.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# set up the temporary file&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;tfile=/tmp/disk.status.$$&lt;BR /&gt;dfile=/tmp/disk.report.$$&lt;BR /&gt;&lt;BR /&gt;export tfile&lt;BR /&gt;&lt;BR /&gt;# Create the temporary file...&lt;BR /&gt;/usr/bin/touch $tfile&lt;BR /&gt;&lt;BR /&gt;/usr/bin/strings /etc/lvmtab | grep dsk &amp;gt; $tfile&lt;BR /&gt;while read -r a&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;  disk=$a&lt;BR /&gt;  echo "About the check disk ${a} "&lt;BR /&gt;  /usr/sbin/pvdisplay ${disk} &amp;gt;&amp;gt; $dfile&lt;BR /&gt;#  /usr/sbin/pvdisplay ${disk}&lt;BR /&gt;  rc=$?&lt;BR /&gt;  echo "disk $a return code: $rc"&lt;BR /&gt;  if [ $rc -ne 0 ]&lt;BR /&gt;  then&lt;BR /&gt;     disktrigger="y"&lt;BR /&gt;     diskaffected=$a&lt;BR /&gt;     export disktigger diskaffected&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;done &amp;lt; $tfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# errs=`wc -l /tmp/checkwardware | awk {'print $1'}`&lt;BR /&gt;if [ "$disktrigger" = "y" ]&lt;BR /&gt;     export disktigger diskaffected&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;done &amp;lt; $tfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# errs=`wc -l /tmp/checkwardware | awk {'print $1'}`&lt;BR /&gt;if [ "$disktrigger" = "y" ]&lt;BR /&gt;then&lt;BR /&gt;#   echo "Errors ${errs}"&lt;BR /&gt;#   /usr/sbin/dmesg  &amp;gt; /tmp/checkwardware&lt;BR /&gt;   cat $dfile | mailx -s "Hardware disk error detectede $diskaffected" stevenpro&lt;BR /&gt;tter@somedomain.org&lt;BR /&gt;   cat $dfile | mailx -s "Hardware disk error detectede $diskaffected" sprotter@&lt;BR /&gt;yourdomain.com&lt;BR /&gt;   /usr/bin/llp -f stock -d konica1 $tfile&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 23 Feb 2004 14:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199843#M166427</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-23T14:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199844#M166428</link>
      <description>Thanks guys....Both methods work just fine.&lt;BR /&gt;sahblpd1-&amp;gt;ls -la /dev/dsk | grep 0x166500&lt;BR /&gt;brw-r-----   1 bin        sys         31 0x166500 Apr 16  2003 c22t6d5&lt;BR /&gt;sahblpd1-&amp;gt;ll /dev/dsk |grep 0x166500&lt;BR /&gt;brw-r-----   1 bin        sys         31 0x166500 Apr 16  2003 c22t6d5&lt;BR /&gt;&lt;BR /&gt;c16t6d5 is an alternate path for c22t6d5.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Feb 2004 15:00:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199844#M166428</guid>
      <dc:creator>Christopher Pereira</dc:creator>
      <dc:date>2004-02-23T15:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199845#M166429</link>
      <description>You should assign points (not to me..)&lt;BR /&gt;&lt;BR /&gt;..Stuart</description>
      <pubDate>Mon, 23 Feb 2004 15:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199845#M166429</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2004-02-23T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199846#M166430</link>
      <description>Steve your script does not work too well in clustered environments since several volume groups in the lvmtab are not activated....(I received about 700 emails for non activated disk) there are also some syntax errors that I had to fix....thanks. Chris.</description>
      <pubDate>Tue, 24 Feb 2004 13:45:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199846#M166430</guid>
      <dc:creator>Christopher Pereira</dc:creator>
      <dc:date>2004-02-24T13:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199847#M166431</link>
      <description>Thanks for the heads up on the script.&lt;BR /&gt;&lt;BR /&gt;I'll stop recommending it for clustered environments. If you could give me some of the errors though, I might be able to adapt the script to not bother with deactivated volume groups.&lt;BR /&gt;&lt;BR /&gt;You could turn off the email feature and the script will identify the bad disk along with all those deactivated ones.&lt;BR /&gt;&lt;BR /&gt;I do apologize for the emails. I truly had no idea that deactivated volume groups would blow the script up since all of ours are active.&lt;BR /&gt;&lt;BR /&gt;We are doing Service Guard Clustering later this year so I'll bet I have a better version of the script by fall.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 24 Feb 2004 14:00:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199847#M166431</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-24T14:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199848#M166432</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;The errors were as follows:&lt;BR /&gt;pvdisplay: Warning: couldn't query all of the physical volumes.&lt;BR /&gt;pvdisplay: Couldn't retrieve the names of the physical volumes&lt;BR /&gt;belonging to volume group "/dev/vgapp01".&lt;BR /&gt;pvdisplay: Cannot display physical volume "/dev/dsk/c23t3d0".&lt;BR /&gt;+ rc=1&lt;BR /&gt;+ echo disk /dev/dsk/c23t3d0 return code: 1&lt;BR /&gt;disk /dev/dsk/c23t3d0 return code: 1&lt;BR /&gt;+ [ 1 -ne 0 ]&lt;BR /&gt;+ disktrigger=y&lt;BR /&gt;+ diskaffected=/dev/dsk/c23t3d0&lt;BR /&gt;+ export disktrigger diskaffected&lt;BR /&gt;+ [ y = y ]&lt;BR /&gt;+ mailx -s Hardware disk error detectede /dev/dsk/c23t3d0 chris.pereira@eds.com&lt;BR /&gt;+ cat /tmp/disk.report.3677&lt;BR /&gt;+ read -r a&lt;BR /&gt;+ disk=/dev/dsk/c23t3d1&lt;BR /&gt;+ echo About the check disk /dev/dsk/c23t3d1&lt;BR /&gt;About the check disk /dev/dsk/c23t3d1&lt;BR /&gt;+ /usr/sbin/pvdisplay /dev/dsk/c23t3d1&lt;BR /&gt;+ 1&amp;gt;&amp;gt; /tmp/disk.report.3677&lt;BR /&gt;&lt;BR /&gt;pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c20t2d6":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c20t2d7":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c20t3d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c20t3d1":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c20t3d2":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c20t3d3":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;&lt;BR /&gt;No probs on the emails...I selected all and deleted them....&lt;BR /&gt;&lt;BR /&gt;Thank you...&lt;BR /&gt;Chris.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Feb 2004 14:17:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199848#M166432</guid>
      <dc:creator>Christopher Pereira</dc:creator>
      <dc:date>2004-02-24T14:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199849#M166433</link>
      <description>Thanks Chris.&lt;BR /&gt;&lt;BR /&gt;I'll have to set up test conditions to duplicate yours to fix this script..&lt;BR /&gt;&lt;BR /&gt;Hard to believe you have 700 disks in inactive volume groups.&lt;BR /&gt;&lt;BR /&gt;The quick fix would be to cut a temporary file and list the bad disks in there.&lt;BR /&gt;&lt;BR /&gt;When the new version is ready you'll find out at itrc.&lt;BR /&gt;&lt;BR /&gt;Thanks for the points, hoped the script would work out better.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 24 Feb 2004 14:49:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199849#M166433</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-24T14:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: identify the right disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199850#M166434</link>
      <description>Sure Steve...the reason we have so many disk's is the SAN configuration with zoning had several paths from the server to this disk, thus even though each volume group only contains about 60 disk 5 additional redundant paths make it 300 paths for that one volume group alone...Thanks Chris.</description>
      <pubDate>Tue, 24 Feb 2004 15:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/identify-the-right-disk/m-p/3199850#M166434</guid>
      <dc:creator>Christopher Pereira</dc:creator>
      <dc:date>2004-02-24T15:11:53Z</dc:date>
    </item>
  </channel>
</rss>

