<?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: Bad Magic number in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number/m-p/2815330#M828022</link>
    <description>&lt;BR /&gt;Hi Kiran,&lt;BR /&gt;&lt;BR /&gt;First thing to check is the version of hpux and vxfs filesystem  :&lt;BR /&gt;&lt;BR /&gt;# uname -r                                  &lt;BR /&gt;B.11.11&lt;BR /&gt;&lt;BR /&gt;# fstyp -v /dev/vg00/rlvol9|grep -i version &lt;BR /&gt;version: 4&lt;BR /&gt;&lt;BR /&gt;(lvol 9 as an example)&lt;BR /&gt;&lt;BR /&gt;You need to be on at least hpux 11.00 and have vxfs version 3 or above for JFS 3.1 or 3.3 to have a filesystem over 128GB.&lt;BR /&gt;&lt;BR /&gt;Next I would create a new program to print the magic numbers of the filesystem and cross check it with fsdb.&lt;BR /&gt;&lt;BR /&gt;To get the fsdb output :&lt;BR /&gt;&lt;BR /&gt;# echo "8b;p S" | fsdb -F vxfs /dev/vg00/rlvol9&lt;BR /&gt;super-block at 00000008.0000&lt;BR /&gt;magic a501fcf5  version 4&lt;BR /&gt;ctime 1030658989 334384  (Thu Aug 29 23:09:49 2002 BST)&lt;BR /&gt;log_version 9 logstart 0  logend 0&lt;BR /&gt;bsize  1024 size  36864 dsize  36864  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 e277df6e&lt;BR /&gt;free 33463  ifree 0&lt;BR /&gt;efree  1 3 2 1 0 3 1 2 1 2 1 1 1 1 1 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&lt;BR /&gt;time 1033171147 70001  (Sat Sep 28 00:59:07 2002 BST)&lt;BR /&gt;oltext[0] 33  oltext[1] 1282  oltsize 1&lt;BR /&gt;iauimlen 1  iausize 4  dinosize 256&lt;BR /&gt;  checksum2 62b&lt;BR /&gt; checksum3 0&lt;BR /&gt;&lt;BR /&gt;So you can see the magic number is a501fcf5.&lt;BR /&gt;&lt;BR /&gt;You should then be able to see what variable is wrong in the code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 28 Sep 2002 00:40:46 GMT</pubDate>
    <dc:creator>James Murtagh</dc:creator>
    <dc:date>2002-09-28T00:40:46Z</dc:date>
    <item>
      <title>Bad Magic number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number/m-p/2815329#M828021</link>
      <description>With online JFS, increased the size of the filesystem from 120GB to 141GB. Then tried to take the backup of the filesystem with new size 141GB.&lt;BR /&gt;&lt;BR /&gt;Our software complains - Bad magic number.&lt;BR /&gt;&lt;BR /&gt;My code looks like this -&lt;BR /&gt;/*&lt;BR /&gt;     *  Get super block&lt;BR /&gt;     */&lt;BR /&gt;    if (lseek(fd, VX_SUPERBOFF, SEEK_SET) != VX_SUPERBOFF) {&lt;BR /&gt;        Error("Can't seek to super block: %s\n", strerror(errno));&lt;BR /&gt;        return 1;&lt;BR /&gt;    }&lt;BR /&gt;    if (read(fd, (char *) psb, sizeof(*psb)) != sizeof(*psb)) {&lt;BR /&gt;        Error("Can't read super block: %s\n", strerror(errno));&lt;BR /&gt;        return 1;&lt;BR /&gt;    }&lt;BR /&gt;    /*&lt;BR /&gt;     *  Validate super block&lt;BR /&gt;     */&lt;BR /&gt;&lt;BR /&gt;    /*&lt;BR /&gt;     *  Check magic number&lt;BR /&gt;     */&lt;BR /&gt;    if (psb-&amp;gt;fs_c.fsc_magic != VX_MAGIC) {&lt;BR /&gt;        Error("Bad super block (bad magic number)\n");&lt;BR /&gt;        return 1;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;Please let me know if anbody has any idea on this.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;kiran</description>
      <pubDate>Fri, 27 Sep 2002 22:36:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number/m-p/2815329#M828021</guid>
      <dc:creator>kiran bachu</dc:creator>
      <dc:date>2002-09-27T22:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Magic number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number/m-p/2815330#M828022</link>
      <description>&lt;BR /&gt;Hi Kiran,&lt;BR /&gt;&lt;BR /&gt;First thing to check is the version of hpux and vxfs filesystem  :&lt;BR /&gt;&lt;BR /&gt;# uname -r                                  &lt;BR /&gt;B.11.11&lt;BR /&gt;&lt;BR /&gt;# fstyp -v /dev/vg00/rlvol9|grep -i version &lt;BR /&gt;version: 4&lt;BR /&gt;&lt;BR /&gt;(lvol 9 as an example)&lt;BR /&gt;&lt;BR /&gt;You need to be on at least hpux 11.00 and have vxfs version 3 or above for JFS 3.1 or 3.3 to have a filesystem over 128GB.&lt;BR /&gt;&lt;BR /&gt;Next I would create a new program to print the magic numbers of the filesystem and cross check it with fsdb.&lt;BR /&gt;&lt;BR /&gt;To get the fsdb output :&lt;BR /&gt;&lt;BR /&gt;# echo "8b;p S" | fsdb -F vxfs /dev/vg00/rlvol9&lt;BR /&gt;super-block at 00000008.0000&lt;BR /&gt;magic a501fcf5  version 4&lt;BR /&gt;ctime 1030658989 334384  (Thu Aug 29 23:09:49 2002 BST)&lt;BR /&gt;log_version 9 logstart 0  logend 0&lt;BR /&gt;bsize  1024 size  36864 dsize  36864  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 e277df6e&lt;BR /&gt;free 33463  ifree 0&lt;BR /&gt;efree  1 3 2 1 0 3 1 2 1 2 1 1 1 1 1 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&lt;BR /&gt;time 1033171147 70001  (Sat Sep 28 00:59:07 2002 BST)&lt;BR /&gt;oltext[0] 33  oltext[1] 1282  oltsize 1&lt;BR /&gt;iauimlen 1  iausize 4  dinosize 256&lt;BR /&gt;  checksum2 62b&lt;BR /&gt; checksum3 0&lt;BR /&gt;&lt;BR /&gt;So you can see the magic number is a501fcf5.&lt;BR /&gt;&lt;BR /&gt;You should then be able to see what variable is wrong in the code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Sep 2002 00:40:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number/m-p/2815330#M828022</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2002-09-28T00:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Magic number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number/m-p/2815331#M828023</link>
      <description>Hi Kiran,&lt;BR /&gt;&lt;BR /&gt;James has it.&lt;BR /&gt;You must be &amp;gt;=11.0 AND &amp;gt;=JFS 3+ to go beyond 128Gb.&lt;BR /&gt;&lt;BR /&gt;If you meet these requirements then you can go to 1Tb &amp;amp; up to 2Tb at best.&lt;BR /&gt;&lt;BR /&gt;Check your versions as the 1st thing.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Sat, 28 Sep 2002 00:53:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bad-magic-number/m-p/2815331#M828023</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-09-28T00:53:57Z</dc:date>
    </item>
  </channel>
</rss>

