- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File System Block Size
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2002 03:15 AM
12-24-2002 03:15 AM
File System Block Size
Why is that df -g always reports 8KB as the block size for both the VXFS and HFS File systems. fstyp reports correctly.
root@:>df -g / | grep -i "file system block size "
8192 file system block size 1024 fragment size
root@:>df -g /stand | grep -i "file system block size "
8192 file system block size 1024 fragment size
root@:>fstyp -v /dev/vg00/rlvol1 | grep -i bsize
f_bsize: 8192
root@:>fstyp -v /dev/vg00/rlvol3 | grep -i bsize
f_bsize: 1024
root@:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2002 03:25 AM
12-24-2002 03:25 AM
Re: File System Block Size
this is a known issue , use the command fstyp
to get the info .
The 'df -g' command reports on 'fragment size'. The 'fragment size'
status actually corresponds to the current 'block size'.
Furthermore, what 'df' reports as 'block size' is actually the
filesystem's 'maximum possible block size'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2002 03:55 AM
12-24-2002 03:55 AM
Re: File System Block Size
displays the fragment size and the maximum possible block size.
So your df -g has given a maximum possible block size as 8192 kbytes and the fragment size 1024 Kbytes.
So just use df -g to find out the fragment size and
to find out the block size for vxfs
#fstyp -v /dev/vgxx/lvolX
f_bsize-->current block size
f_frsize--->default block size.
for hfs
#tunefs -v /dev/vgxx/rlvolX | grep bsize
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2002 05:12 AM
12-24-2002 05:12 AM
Re: File System Block Size
HI
Why are you getting in to issues, that too known as per Eran.
#mkfs -m will give the exact block size of a filesystem.
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2002 05:50 AM
12-24-2002 05:50 AM
Re: File System Block Size
Oracle performance can be substantially enhanced by choosing an appropriate block size.
mkfs -m /dev/vg00/roracle2
mkfs -F vxfs -o ninode=unlimited,bsize=4096,version=4,inosize=256,logsize=512,la
rgefiles /dev/vg00/roracle2 30720000
[4264#] fstyp -v /dev/vg00/roracle2
vxfs
version: 4
f_bsize: 8192
f_frsize: 4096
f_blocks: 7680000
f_bfree: 4566335
f_bavail: 4494987
f_files: 1141856
f_ffree: 1141568
f_favail: 1141568
f_fsid: 1073741844
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 16
f_fsindex: 7
f_size: 7680000
That's kind of funny, on first glance it looks like things aren't consistent between the two commands.
I've heard of people going to 32 or 64 or 128 depending on how the application reads data.
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 01:05 AM
08-16-2004 01:05 AM
Re: File System Block Size
If anyone could help I would really appreciate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 03:16 AM
08-16-2004 03:16 AM
Re: File System Block Size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 06:13 AM
08-16-2004 06:13 AM
Re: File System Block Size
larges supported block size for the file system type. "f_frsize" refers to the actual block size of the file system."
I dont believe this is the case. f_bsize is the actual block size of the file system. f_frsize is the size of the fragments.