<?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: Resize filesystem block-size in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534959#M222178</link>
    <description>Hi Ajay,&lt;BR /&gt;Ive just been through the full process on a 10.20 K class just now (for the last 2 hours...)... so if you have enough room somewhere to create a file system greater than the biggest you want to change  the BS you will be able to if you can stop whats running ( I drop from init 4 to 3)&lt;BR /&gt;1)go to your first file system do a find .|cpio -pduml &lt;YOUR new="" filesystem="" mountpoin=""&gt;&lt;BR /&gt;&lt;BR /&gt;dims2:data/idx # find . -print|cpio -pduml /export/.&lt;BR /&gt;2) umount the copied files system then&lt;BR /&gt;newfs :&lt;BR /&gt;dims2:/ # newfs -F vxfs -b 8192 -o largefiles /dev/s4vg02/rlvol4&lt;BR /&gt;    version 3 layout&lt;BR /&gt;    8192000 sectors, 1024000 blocks of size 8192, log size 256 blocks&lt;BR /&gt;    unlimited inodes, 1024000 data blocks, 1023680 free data blocks&lt;BR /&gt;    32 allocation units of 32768 blocks, 32768 data blocks&lt;BR /&gt;    last allocation unit has 8192 data blocks&lt;BR /&gt;    first allocation unit starts at block 0&lt;BR /&gt;    overhead per allocation unit is 0 blocks&lt;BR /&gt;dims2:/ # mount /data/idx&lt;BR /&gt;dims2:/ # cd /data/mnt1&lt;BR /&gt;dims2:data/mnt1 # find . -print|cpio -pduml /data/idx/.&lt;BR /&gt;8193006 blocks&lt;BR /&gt;dims2:data/mnt1 # cd /&lt;BR /&gt;&lt;BR /&gt;then start again for the next one....&lt;BR /&gt;( I just did 80GB of fs like that...)&lt;BR /&gt;&lt;BR /&gt;I suffered a bit because I removed by accident a archive directory for this damn unsupported oracle 7.2.3...&lt;BR /&gt;things work now, I can go home....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;/YOUR&gt;</description>
    <pubDate>Fri, 29 Apr 2005 13:39:41 GMT</pubDate>
    <dc:creator>Victor BERRIDGE</dc:creator>
    <dc:date>2005-04-29T13:39:41Z</dc:date>
    <item>
      <title>Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534953#M222172</link>
      <description>Is it possible to change block-size without shuting down or losing any data? We are using HP-UX 11 and file system type is vxfs. Right now, bsize=2048, we would like to change it to 8192.&lt;BR /&gt;&lt;BR /&gt;Please advise. Thanks!</description>
      <pubDate>Fri, 29 Apr 2005 10:37:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534953#M222172</guid>
      <dc:creator>Ajay Chakraborty</dc:creator>
      <dc:date>2005-04-29T10:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534954#M222173</link>
      <description>I don't think so - that's at the low level of a file system - IE - when you newfs it...or mkfs_vxfs&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 29 Apr 2005 10:42:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534954#M222173</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-04-29T10:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534955#M222174</link>
      <description>The block size is set when the filesystem is created. You won't be able to modify it without recreating the filesystem and restoring from backup.&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Fri, 29 Apr 2005 10:44:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534955#M222174</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2005-04-29T10:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534956#M222175</link>
      <description>You are out of luck, from man fsadm_vxfs:&lt;BR /&gt;&lt;BR /&gt;      fsadm performs online administration functions on VxFS file systems.&lt;BR /&gt;      fsadm supports file-system resizing, extent reorganization, directory&lt;BR /&gt;      reorganization, and querying or changing the largefiles flag.&lt;BR /&gt;&lt;BR /&gt;Best way would be - create a new file system - then shutdown the application - and move everything from the old file system to the new one.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 29 Apr 2005 10:57:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534956#M222175</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-04-29T10:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534957#M222176</link>
      <description>Thank you all for your quick responses!!!&lt;BR /&gt;&lt;BR /&gt;-Ajay</description>
      <pubDate>Fri, 29 Apr 2005 11:02:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534957#M222176</guid>
      <dc:creator>Ajay Chakraborty</dc:creator>
      <dc:date>2005-04-29T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534958#M222177</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The default block size for JFS 3.5 is 1024 bytes (1 kilobyte). This is the&lt;BR /&gt;smallest available block size for JFS file systems. You can set a specific&lt;BR /&gt;block size at the time the file system is created, but it cannot be changed&lt;BR /&gt;once the file system has been created. Use the bsize option for newfs&lt;BR /&gt;(1M) or mkfs(1M) to specify the block size. You can get information&lt;BR /&gt;about using the bsize command option by going to the online manual&lt;BR /&gt;pages specific to JFS, mkfs_vxfs(1M) and newfs_vxfs(1M).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Fri, 29 Apr 2005 11:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534958#M222177</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-04-29T11:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534959#M222178</link>
      <description>Hi Ajay,&lt;BR /&gt;Ive just been through the full process on a 10.20 K class just now (for the last 2 hours...)... so if you have enough room somewhere to create a file system greater than the biggest you want to change  the BS you will be able to if you can stop whats running ( I drop from init 4 to 3)&lt;BR /&gt;1)go to your first file system do a find .|cpio -pduml &lt;YOUR new="" filesystem="" mountpoin=""&gt;&lt;BR /&gt;&lt;BR /&gt;dims2:data/idx # find . -print|cpio -pduml /export/.&lt;BR /&gt;2) umount the copied files system then&lt;BR /&gt;newfs :&lt;BR /&gt;dims2:/ # newfs -F vxfs -b 8192 -o largefiles /dev/s4vg02/rlvol4&lt;BR /&gt;    version 3 layout&lt;BR /&gt;    8192000 sectors, 1024000 blocks of size 8192, log size 256 blocks&lt;BR /&gt;    unlimited inodes, 1024000 data blocks, 1023680 free data blocks&lt;BR /&gt;    32 allocation units of 32768 blocks, 32768 data blocks&lt;BR /&gt;    last allocation unit has 8192 data blocks&lt;BR /&gt;    first allocation unit starts at block 0&lt;BR /&gt;    overhead per allocation unit is 0 blocks&lt;BR /&gt;dims2:/ # mount /data/idx&lt;BR /&gt;dims2:/ # cd /data/mnt1&lt;BR /&gt;dims2:data/mnt1 # find . -print|cpio -pduml /data/idx/.&lt;BR /&gt;8193006 blocks&lt;BR /&gt;dims2:data/mnt1 # cd /&lt;BR /&gt;&lt;BR /&gt;then start again for the next one....&lt;BR /&gt;( I just did 80GB of fs like that...)&lt;BR /&gt;&lt;BR /&gt;I suffered a bit because I removed by accident a archive directory for this damn unsupported oracle 7.2.3...&lt;BR /&gt;things work now, I can go home....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor&lt;/YOUR&gt;</description>
      <pubDate>Fri, 29 Apr 2005 13:39:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534959#M222178</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-04-29T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534960#M222179</link>
      <description>Yep I can show the fstyp:&lt;BR /&gt;untouched:&lt;BR /&gt;dims2:home/ldm # fstyp -v /dev/s4vg02/rlvol3                    &lt;BR /&gt;vxfs&lt;BR /&gt;version: 3&lt;BR /&gt;f_bsize: 1024&lt;BR /&gt;f_frsize: 1024&lt;BR /&gt;f_blocks: 6144000&lt;BR /&gt;f_bfree: 4810076&lt;BR /&gt;f_bavail: 4810064&lt;BR /&gt;f_files: 288&lt;BR /&gt;f_ffree: 0&lt;BR /&gt;f_favail: 0&lt;BR /&gt;f_fsid: 1073872898&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: 16&lt;BR /&gt;f_fsindex: 7&lt;BR /&gt;f_size: 6144000&lt;BR /&gt;&lt;BR /&gt;Just modified one&lt;BR /&gt;dims2:home/ldm # fstyp -v /dev/s4vg02/rlvol4&lt;BR /&gt;vxfs&lt;BR /&gt;version: 3&lt;BR /&gt;f_bsize: 8192&lt;BR /&gt;f_frsize: 8192&lt;BR /&gt;f_blocks: 1024000&lt;BR /&gt;f_bfree: 511681&lt;BR /&gt;f_bavail: 511681&lt;BR /&gt;f_files: 32&lt;BR /&gt;f_ffree: 0&lt;BR /&gt;f_favail: 0&lt;BR /&gt;f_fsid: 1073872899&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: 16&lt;BR /&gt;f_fsindex: 7&lt;BR /&gt;f_size: 1024000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Fri, 29 Apr 2005 13:43:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534960#M222179</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2005-04-29T13:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534961#M222180</link>
      <description>Changing the blocksize won't affect disk performance in a meaningful way. Archaic vendor recommendations have required filesystem block sizes to match up with database block sizes. The reality is that the HP-UX driver does a lot of reblocking of read/write requests behind the scenes and therefore the block size is simply part of the space management for filesystem. The VxFS filesystem manages blocksizes dynamically so changing the blocksize to 8K may defeat the design of VxFS and possibly waste space for very small files. &lt;BR /&gt; &lt;BR /&gt;Many years ago, some filesystems had blocksizes that were not even multiples of the application's raed/write buffers and performance issues could be improved by adjusting the blocksize. That was back in the days when 120 meg disk drives were too heavy to lift by yourself. Modern Unix drivers and disk space management systems hide all of this and improve performance.&lt;BR /&gt; &lt;BR /&gt;And to answer your basic question, changing the blocksize requires shutting down all processes that are using the filesystem, then backup all the data, umount the filesystem then erase all the data by issuing a newfs command and specify the desired blocksize. Mount the new filesystem and restore all your data.</description>
      <pubDate>Sat, 30 Apr 2005 13:12:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534961#M222180</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-04-30T13:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Resize filesystem block-size</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534962#M222181</link>
      <description>I'm betting that your question concerns matching the filesystem blocksize to the database blocksize. Under vxfs, it really doesn't matter because vxfs filesystems are extent-based. While blocksizes do impact hfs, ufs, or s5 filesystem performance, you will not see any difference in performance in vxfs filesystems. Your 1k blocks are just fine.</description>
      <pubDate>Sun, 01 May 2005 20:37:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resize-filesystem-block-size/m-p/3534962#M222181</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-05-01T20:37:10Z</dc:date>
    </item>
  </channel>
</rss>

