<?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: Which disk does the file reside in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805862#M637418</link>
    <description>&lt;BR /&gt;If the file is so small remove the bs=1024k first and write to a script multiple dd's;&lt;BR /&gt;&lt;BR /&gt;dd if=&lt;FILENAME&gt; of=/dev/null&lt;BR /&gt;dd if=&lt;FILENAME&gt; of=/dev/null&lt;BR /&gt;dd if=&lt;FILENAME&gt; of=/dev/null&lt;BR /&gt;dd if=&lt;FILENAME&gt; of=/dev/null&lt;BR /&gt;etc..&lt;BR /&gt;&lt;BR /&gt;So at least when you run the script it will continually access the file so now sar -d should show you which disk its on - or else youre going to need to run it when the system isnt so busy to make it easier to spot.&lt;BR /&gt;&lt;/FILENAME&gt;&lt;/FILENAME&gt;&lt;/FILENAME&gt;&lt;/FILENAME&gt;</description>
    <pubDate>Fri, 13 Sep 2002 09:52:16 GMT</pubDate>
    <dc:creator>Stefan Farrelly</dc:creator>
    <dc:date>2002-09-13T09:52:16Z</dc:date>
    <item>
      <title>Which disk does the file reside</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805857#M637413</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;I have 2 files that for some reason (unknown at the moment) became corrupt at a certain time&lt;BR /&gt;last night. I have to investigate the possible reason for this file corruption&lt;BR /&gt;&lt;BR /&gt;The files both reside on the same lvol but in different directories&lt;BR /&gt;&lt;BR /&gt;When checking the lvol it is spread across 2 disks&lt;BR /&gt;&lt;BR /&gt;Unfortunately, the files both c-isam have been rebuilt, no copy made. &lt;BR /&gt;&lt;BR /&gt;How do i know which disk the file resides&lt;BR /&gt;&lt;BR /&gt;I have no errors in syslog - dmesg with regard to the inodes - no full filesystems etc&lt;BR /&gt;&lt;BR /&gt;The disks are part of an array&lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c1t0d1  =  8/4.0.1  &lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c1t0d4 =  8/4.0.4 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What would be the best way to go about this&lt;BR /&gt;&lt;BR /&gt;Thanks in advance &lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 13 Sep 2002 09:12:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805857#M637413</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-09-13T09:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Which disk does the file reside</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805858#M637414</link>
      <description>I have no idea - but lvdisplay -v /dev/vgXY/lvol&lt;BR /&gt;whill give you PV extent to lvol mapping.&lt;BR /&gt;&lt;BR /&gt;I have no idea how you can map filesystem inodes/block to that though...&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 13 Sep 2002 09:13:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805858#M637414</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-09-13T09:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Which disk does the file reside</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805859#M637415</link>
      <description>Hmm &lt;BR /&gt;&lt;BR /&gt;Thanks Bill. OK , what would be the best way to keep a file for further investigation into it's corruption with respect to the inode number ? Would moving it keep the inode number even if I renme it file.bak ? &lt;BR /&gt;&lt;BR /&gt;How would you investigate the reason that a file would become corrupt&lt;BR /&gt;&lt;BR /&gt;A hard one I know&lt;BR /&gt;&lt;BR /&gt;Any ideas appreciated&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 13 Sep 2002 09:20:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805859#M637415</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-09-13T09:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Which disk does the file reside</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805860#M637416</link>
      <description>&lt;BR /&gt;dd the file in question while running sar -d from another window. You will see which disk it is on as activity will be high while the dd is running, eg;&lt;BR /&gt;&lt;BR /&gt;dd if=&lt;FILENAME&gt; of=/dev/null&lt;BR /&gt;&lt;BR /&gt;and from another window sar -d 1 1000&lt;BR /&gt;&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Fri, 13 Sep 2002 09:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805860#M637416</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-09-13T09:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Which disk does the file reside</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805861#M637417</link>
      <description>Stefan&lt;BR /&gt;&lt;BR /&gt;Good idea, this is an extremely busy server the dd doesn't run long enough&lt;BR /&gt;&lt;BR /&gt;:/sc # dd if=issue.out of=/dev/null bs=1024k count=1000&lt;BR /&gt;0+1 records in&lt;BR /&gt;0+1 records out&lt;BR /&gt;&lt;BR /&gt;Tell me i'm being a little thick with the dd&lt;BR /&gt;&lt;BR /&gt;Have tried as you mentioned&lt;BR /&gt;&lt;BR /&gt;Have been up all night (on call)&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 13 Sep 2002 09:49:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805861#M637417</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-09-13T09:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Which disk does the file reside</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805862#M637418</link>
      <description>&lt;BR /&gt;If the file is so small remove the bs=1024k first and write to a script multiple dd's;&lt;BR /&gt;&lt;BR /&gt;dd if=&lt;FILENAME&gt; of=/dev/null&lt;BR /&gt;dd if=&lt;FILENAME&gt; of=/dev/null&lt;BR /&gt;dd if=&lt;FILENAME&gt; of=/dev/null&lt;BR /&gt;dd if=&lt;FILENAME&gt; of=/dev/null&lt;BR /&gt;etc..&lt;BR /&gt;&lt;BR /&gt;So at least when you run the script it will continually access the file so now sar -d should show you which disk its on - or else youre going to need to run it when the system isnt so busy to make it easier to spot.&lt;BR /&gt;&lt;/FILENAME&gt;&lt;/FILENAME&gt;&lt;/FILENAME&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Fri, 13 Sep 2002 09:52:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805862#M637418</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-09-13T09:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Which disk does the file reside</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805863#M637419</link>
      <description>I once got this note on how to do it:&lt;BR /&gt;melanite:/tmp # bdf .&lt;BR /&gt;Filesystem kbytes used avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol6 204800 116254 83247 58% /tmp&lt;BR /&gt;melanite:/tmp # grep tmp /etc/fstab&lt;BR /&gt;/dev/vg00/lvol6 /tmp vxfs delaylog 0 2&lt;BR /&gt;melanite:/tmp # ll -i swlist_jan.orig&lt;BR /&gt;2680 -rw-rw-rw- 1 root sys 6265 Nov 13 09:41 swlist_jan.orig&lt;BR /&gt;melanite:/tmp # fsdb -F vxfs /dev/vg00/lvol6&lt;BR /&gt;&amp;gt; 999 fset&lt;BR /&gt;fset header structure at 0x0000000a.0000&lt;BR /&gt;fsh_fsindex 999 fsh_volname "UNNAMED"&lt;BR /&gt;fsh_version 2 fsh_checksum 0x38f3567e fsh_time Mon Apr 3 17:36:48 2000&lt;BR /&gt;fsh_ninode 3616 fsh_nau 1 fsh_old_ilesize 0&lt;BR /&gt;fsh_fsextop 0x0 fsh_dflags 0x1 fsh_quota 0 fsh_maxinode 4294967295&lt;BR /&gt;fsh_ilistino[65 97] fsh_iauino 64 fsh_lctino 0&lt;BR /&gt;fsh_uquotino 69 fsh_gquotino 0&lt;BR /&gt;fsh_attr_ninode 0 fsh_attr_nau 0&lt;BR /&gt;fsh_attr_ilistino[67 99] fsh_attr_iauino 66 fsh_attr_lctino 68&lt;BR /&gt;fsh_features 0 fsh_fsetid 0x0 00000001&lt;BR /&gt;clone fsh_next 0x0 00000000 fsh_prev 0x0 00000000&lt;BR /&gt;fsh_volid 0x0 00000000 fsh_parentid 0x0 00000000&lt;BR /&gt;fsh_clonetime 0x0 00000000 fsh_create 0x0 00000000&lt;BR /&gt;fsh_backup 0x0 00000000 fsh_copy 0x0 00000000&lt;BR /&gt;fsh_backupid 0x0 00000000 fsh_cloneid 0x0 00000000&lt;BR /&gt;fsh_llbackid 0x0 00000000 fsh_llfwdid 0x0 00000000&lt;BR /&gt;fsh_alloclim 0x0 00000000 fsh_vislim 0x0 00000000&lt;BR /&gt;fsh_states 0x0 fsh_status ""&lt;BR /&gt;&amp;gt; 8 b&lt;BR /&gt;00000008.0000: a501fcf5&lt;BR /&gt;&amp;gt; p S&lt;BR /&gt;super-block at 00000008.0000&lt;BR /&gt;magic a501fcf5 version 3 ctime Wed Apr 28 19:45:32 1999&lt;BR /&gt;log_version 6 logstart 0 logend 0&lt;BR /&gt;bsize 1024 size 204800 dsize 204800 ninode 0 nau 0&lt;BR /&gt;defiextsize 0 oilbsize 0 immedlen 96 ndaddr 10&lt;BR /&gt;aufirst 0 emap 0 imap 0 iextop 0 istart 0&lt;BR /&gt;bstart 0 femap 0 fimap 0 fiextop 0 fistart 0 fbstart 0&lt;BR /&gt;nindir 2048 aulen 32768 auimlen 0 auemlen 8&lt;BR /&gt;auilen 0 aupad 0 aublocks 32768 maxtier 15&lt;BR /&gt;inopb 4 inopau 0 ndiripau 0 iaddrlen 8 bshift 10&lt;BR /&gt;inoshift 2 bmask fffffc00 boffmask 3ff checksum dc3f4127&lt;BR /&gt;free 88546 ifree 1073789800&lt;BR /&gt;efree 28 29 9 39 37 53 47 55 40 22 13 4 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0&lt;BR /&gt;flags 0 mod 0 clean 3c time Thu Nov 16 16:12:27 2000&lt;BR /&gt;oltext[0] 33 oltext[1] 1282 oltsize 1&lt;BR /&gt;iauimlen 1 iausize 4 dinosize 256&lt;BR /&gt;dniaddr 3 checksum2 62c&lt;BR /&gt;features 0 checksum3 0&lt;BR /&gt;&amp;gt; 2680 i&lt;BR /&gt;inode structure at 0x0001f6d6.0000&lt;BR /&gt;type IFREG mode 100666 nlink 1 uid 0 gid 3 size 6265&lt;BR /&gt;atime 974383626 670002 mtime 974104912 470014 ctime 974104912 470014&lt;BR /&gt;aflags 0 orgtype 1 eopflags 0 eopdata 0&lt;BR /&gt;fixextsize/fsindex 0 rdev/reserve/dotdot/matchino 0&lt;BR /&gt;blocks 7 gen 4407 version 0 30719668 iattrino 0 noverlay 0&lt;BR /&gt;de: 100623 103879 0 0 0 0 0 0 0 0&lt;BR /&gt;des: 1 6 0 0 0 0 0 0 0 0&lt;BR /&gt;ie: 0 0 0&lt;BR /&gt;ies: 0&lt;BR /&gt;The first direct extent is at address 100623. Having a blocksize of 1K, we &lt;BR /&gt;should be at on offset of 100623 KB or 98,26 MB into the lvol.&lt;BR /&gt;melanite:/tmp # vgdisplay vg00|more&lt;BR /&gt;--- Volume groups ---&lt;BR /&gt;VG Name /dev/vg00&lt;BR /&gt;VG Write Access read/write&lt;BR /&gt;VG Status available&lt;BR /&gt;...&lt;BR /&gt;PE Size (Mbytes) 4&lt;BR /&gt;...&lt;BR /&gt;This means that 98,26 MB should be in the 24th extent (counting from 0).&lt;BR /&gt;# lvdisplay -v /dev/vg00/lvol6&lt;BR /&gt;...&lt;BR /&gt;--- Distribution of logical volume ---&lt;BR /&gt;PV Name LE on PV PE on PV&lt;BR /&gt;/dev/dsk/c0t4d0 50 50&lt;BR /&gt;...&lt;BR /&gt;00022 /dev/dsk/c0t4d0 00642 current&lt;BR /&gt;00023 /dev/dsk/c0t4d0 00643 current&lt;BR /&gt;00024 /dev/dsk/c0t4d0 00644 current&lt;BR /&gt;00025 /dev/dsk/c0t4d0 00645 current&lt;BR /&gt;..Which means that the file starts at PE 644 on disk /dev/dsk/c0t4d0.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tron</description>
      <pubDate>Fri, 13 Sep 2002 11:44:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805863#M637419</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2002-09-13T11:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Which disk does the file reside</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805864#M637420</link>
      <description>I normally use ncheck in such cases... &lt;BR /&gt;&lt;BR /&gt;e.g. where is /etc/passwd&lt;BR /&gt;&lt;BR /&gt;1) get the inode number of that file:&lt;BR /&gt;# ls -i /etc/passwd&lt;BR /&gt;  1700 /etc/passwd&lt;BR /&gt;&lt;BR /&gt;2) get a list of sectors occupied by it:&lt;BR /&gt;&lt;BR /&gt;# ncheck -F vxfs -S - /dev/vg00/lvol3 | awk '{if ($3==1700)print}'&lt;BR /&gt;UNNAMED     999   1700 11144         /etc/passwd&lt;BR /&gt;UNNAMED     999   1700 11010         /etc/passwd&lt;BR /&gt;&lt;BR /&gt;So the file uses the sectors 11144 and 11010. A sector is 1KB... so it translates to offsets in KB.&lt;BR /&gt;&lt;BR /&gt;The rest can be done with LVM commands... see above.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Fri, 13 Sep 2002 12:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-disk-does-the-file-reside/m-p/2805864#M637420</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2002-09-13T12:58:55Z</dc:date>
    </item>
  </channel>
</rss>

