<?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: block size default in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644693#M646563</link>
    <description>Please note that *for* vxfs/JFS  fstype(1M) is 'lying' (confusing), because it is a utility which has its origin in the HFS world:&lt;BR /&gt;&lt;BR /&gt;f_frsize is the vxfs/JFS *block* size. vxfs/JFS has no fragments like HFS has, but the vxfs/JFS block size is (somewhat) comparable, so that is reported.&lt;BR /&gt;&lt;BR /&gt;f_bsize  is just a dummy number because the 'logical' number would be the vxfs/JFS *extent* size, but, because the extent size is *variable*, fstyp(1M) just 'invents' a number which 1) looks 'nice' and 2) is the same as it (by default) is for HFS.</description>
    <pubDate>Tue, 15 Jan 2002 10:26:44 GMT</pubDate>
    <dc:creator>Frank Slootweg</dc:creator>
    <dc:date>2002-01-15T10:26:44Z</dc:date>
    <item>
      <title>block size default</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644686#M646556</link>
      <description>Hi, our Oracle dba set the instances block size to 2Kb, he tells me that the hpux 11/64 L-class server default block size.  I thought 8Kb was the default, how do I find this out?</description>
      <pubDate>Mon, 14 Jan 2002 21:19:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644686#M646556</guid>
      <dc:creator>lastgreatone</dc:creator>
      <dc:date>2002-01-14T21:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: block size default</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644687#M646557</link>
      <description>Should be 8192 on vxfs by default.&lt;BR /&gt;&lt;BR /&gt;#fstyp -v /dev/vg[yourvgname]/[yourlvolname]&lt;BR /&gt;&lt;BR /&gt;# fstyp -v /dev/vg00/lvol6&lt;BR /&gt;vxfs&lt;BR /&gt;version: 3&lt;BR /&gt;f_bsize: 8192&lt;BR /&gt;f_frsize: 1024&lt;BR /&gt;f_blocks: 1228800&lt;BR /&gt;f_bfree: 659286&lt;BR /&gt;f_bavail: 659286&lt;BR /&gt;f_files: 19712&lt;BR /&gt;f_ffree: 1073792296&lt;BR /&gt;f_favail: 1073792296&lt;BR /&gt;f_fsid: 1073741830&lt;BR /&gt;f_basetype: vxfs&lt;BR /&gt;f_namemax: 254&lt;BR /&gt;f_magic: a501fcf5&lt;BR /&gt;f_featurebits: 0&lt;BR /&gt;f_flag: 0&lt;BR /&gt;f_fsindex: 6&lt;BR /&gt;f_size: 1228800&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2002 21:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644687#M646557</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-01-14T21:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: block size default</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644688#M646558</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In the above example "f_bsize" (which is 8k)is the one you are looking for.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2002 21:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644688#M646558</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-14T21:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: block size default</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644689#M646559</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;block size is default 8192 bytes. &lt;BR /&gt;&lt;BR /&gt;Try fstyp command for detailed info.&lt;BR /&gt;&lt;BR /&gt;-USA&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2002 21:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644689#M646559</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-01-14T21:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: block size default</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644690#M646560</link>
      <description>Hi Frankie,&lt;BR /&gt;&lt;BR /&gt;This is a very confusing topic.  Hope the following helps.&lt;BR /&gt;&lt;BR /&gt;Man newfs_vxfs will tell you that the default block size used when creating a vxfs filesystem is 1024 bytes.  Look at the info below (particularly the last part) from knowledge base document number 1100330242:&lt;BR /&gt;&lt;A href="http://us-support3.external.hp.com/cki/bin/doc.pl/sid=2405c118092bb1dd03/screen=ckiDisplayDocument?docId=200000054230626" target="_blank"&gt;http://us-support3.external.hp.com/cki/bin/doc.pl/sid=2405c118092bb1dd03/screen=ckiDisplayDocument?docId=200000054230626&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;BEGIN paste=""&gt;&amp;gt;&lt;BR /&gt;To determine the current block size for the vxfs file system:&lt;BR /&gt;&lt;BR /&gt;     fstyp -v /dev/vg00/lvol#&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;     # fstyp -v /dev/vg00/lvol1&lt;BR /&gt;&lt;BR /&gt;     f_bsize: 8192&lt;BR /&gt;&lt;BR /&gt;     Note: The f_bsize parameter reports the block size for the vxfs file system.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To determine the current block size for the hfs file system:&lt;BR /&gt;&lt;BR /&gt;     tunefs -v /dev/vg00/rlvol# | grep bsize&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;     # tunefs -v /dev/vg00/rlvol4 | grep bsize&lt;BR /&gt;&lt;BR /&gt;     sbsize  2048    cgsize  2048    cgoffset 24     cgmask  0xfffffff8&lt;BR /&gt;     bsize   8192    bshift  13                      bmask   0xffffe000&lt;BR /&gt;&lt;BR /&gt;Here is an example of how HFS and VxFS actually interpret these fields:&lt;BR /&gt;&lt;BR /&gt; Field         HFS                   Value for VxFS&lt;BR /&gt; -----             ---                       --------------&lt;BR /&gt; f_bsize       block size (8K)       largest possible block size (8K)&lt;BR /&gt; f_frsize      fragment size (1K)    actual block size (usually 1K)&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;END paste=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's an excerpt from document number S3100000884:&lt;BR /&gt;&lt;A href="http://us-support3.external.hp.com/cki/bin/doc.pl/sid=c0a298f011fbef7f72/screen=ckiDisplayDocument?docId=200000046860490" target="_blank"&gt;http://us-support3.external.hp.com/cki/bin/doc.pl/sid=c0a298f011fbef7f72/screen=ckiDisplayDocument?docId=200000046860490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;BEGIN paste=""&gt;&amp;gt;&lt;BR /&gt;Use the following information to determine Oracle's optimal filesystem block size.&lt;BR /&gt;&lt;BR /&gt;Execute the following command for the HFS environment:&lt;BR /&gt;&lt;BR /&gt;     df -g&lt;BR /&gt;&lt;BR /&gt;Notice the value in the 'file system block size' field.  The default value is 8192.  Assign 8192 for Oracle in the init.ora file as the db_block_size parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Execute the following command for the JFS environment:&lt;BR /&gt;&lt;BR /&gt;     echo "8192B.p S" | fsdb -F vxfs /dev/vg00/rlvol9&lt;BR /&gt;&lt;BR /&gt;This command assumes that the Oracle database resides on lvol9.  Use the logical volume that describes your environment.&lt;BR /&gt;&lt;BR /&gt;Also, notice the 'r' before lvol9.  The 'echo' command needs to execute against the raw device.&lt;BR /&gt;&lt;BR /&gt;Once you execute this command, look for the number after 'bsize'.  The default is 1024.  Assign 1024 for Oracle in the init.ora file as the db_block_size parameter.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;END paste=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From the docs above (and personally verified by creating a vxfs filesystem with the default block size) you will find that for vxfs filesystems f_frsize will correspond to the block size used to create the filesystem.  You can easily find f_frsize using df -g /filesystem.  Or use fstyp -v /dev/vg##/lvol and look for fragment size.&lt;BR /&gt;&lt;BR /&gt;Darrell&lt;/END&gt;&lt;/BEGIN&gt;&lt;/END&gt;&lt;/BEGIN&gt;</description>
      <pubDate>Mon, 14 Jan 2002 22:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644690#M646560</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-01-14T22:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: block size default</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644691#M646561</link>
      <description>Hi Frankie:&lt;BR /&gt;&lt;BR /&gt;I agree with Darrell that the 'f_frsize' represents the block size you seek, not the value of 'f_bsize'.&lt;BR /&gt;&lt;BR /&gt;Have a look too at the man pages for 'statfs(2)'.  You will note:&lt;BR /&gt;&lt;BR /&gt;f_bsize /* preferred file system block size */&lt;BR /&gt;&lt;BR /&gt;f_frsize /* fundamental file system block size */&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2002 22:28:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644691#M646561</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-01-14T22:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: block size default</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644692#M646562</link>
      <description>The two previous posts are correct, from man mkfs_vxfs, 1024 is default, and the filesystem in my earlier post was built with defaults.&lt;BR /&gt;&lt;BR /&gt;I recall making a call to the response center - they conceded that the documentation on block size for vxfs was ambiguous at best.</description>
      <pubDate>Mon, 14 Jan 2002 23:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644692#M646562</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-01-14T23:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: block size default</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644693#M646563</link>
      <description>Please note that *for* vxfs/JFS  fstype(1M) is 'lying' (confusing), because it is a utility which has its origin in the HFS world:&lt;BR /&gt;&lt;BR /&gt;f_frsize is the vxfs/JFS *block* size. vxfs/JFS has no fragments like HFS has, but the vxfs/JFS block size is (somewhat) comparable, so that is reported.&lt;BR /&gt;&lt;BR /&gt;f_bsize  is just a dummy number because the 'logical' number would be the vxfs/JFS *extent* size, but, because the extent size is *variable*, fstyp(1M) just 'invents' a number which 1) looks 'nice' and 2) is the same as it (by default) is for HFS.</description>
      <pubDate>Tue, 15 Jan 2002 10:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/block-size-default/m-p/2644693#M646563</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-01-15T10:26:44Z</dc:date>
    </item>
  </channel>
</rss>

