- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Filesystem block size 'fstyp -v' vs. 'mkfs -m'
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
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО09-11-2001 02:59 AM
тАО09-11-2001 02:59 AM
Filesystem block size 'fstyp -v' vs. 'mkfs -m'
# fstyp -v /dev/vgsg04/lvol1
vxfs
version: 3
f_bsize: 8192
f_frsize: 1024
f_blocks: 4194304
f_bfree: 4191940
f_bavail: 4191940
f_files: 32
f_ffree: 1073792296
f_favail: 1073792296
f_fsid: 1074003969
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 0
f_fsindex: 6
f_size: 4194304
This seems to indicate a block size of 8192.
However if I use the '-m' option of mkfs then I get a different value:
# mkfs -F vxfs -m /dev/vgsg04/lvol1
mkfs -F vxfs -o ninode=unlimited,bsize=1024,version=3,inosize=256,logsize=1024,nolargefiles /dev/vgsg04/lvol1 4194304
Which seems to indicate a block size of 1024!
Given that I know the filesystem is actually 4GB in size, if you do the math it would appear that the 'true' block size is being given by mkfs (both commands correctly report that there are 4194304 blocks in the filesystem). So what is the value 'f_bsize' being reported by fstyp?
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2001 03:31 AM
тАО09-11-2001 03:31 AM
Re: Filesystem block size 'fstyp -v' vs. 'mkfs -m'
you are rigth .
the param that you need to look for after applying the comand fstyp is the vaule of the
f_frsize: 1024 .
i know that the comment sense about it is the value f_bsize but he is giving all the time the worng vaule .
check it with other file systems.
there is a doc about this issue : DCLKBRC00006913 in kmine .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2001 03:45 AM
тАО09-11-2001 03:45 AM
Re: Filesystem block size 'fstyp -v' vs. 'mkfs -m'
if you read the man page for "mkfs_vxfs" you will see
that Eran is correct about the default block size of 1KB.
The reason is, that VxFS does not have "blocks and
fragments" - it does only have "blocks" (and those are
1024 bytes in size each).
The output of "fstyp -v" has never been updated for
what reason ever (blind guess: to keep Oracle dbas
satisfied, as they believe they do need 8KB blocks on
the file system level)...
If you use "fsck" on such a filesystem, you will see the
amount of "blocks" in there, and this will be 1KB blocks
on that file system.
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2001 06:22 AM
тАО09-12-2001 06:22 AM
Re: Filesystem block size 'fstyp -v' vs. 'mkfs -m'
f_bsize represents the primary block size
f_frsize represents the fragment size for files
This is the second value which is the block size your are looking for.
The first one is like an amount of space at the beginning of the filesystem, before the real files.
So, for vxfs filesystems, f_bsize is a non-modifyable value (? meaning ?), and f_frsize is the block size used for the filesystem.
HTH
marc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2001 01:41 PM
тАО09-12-2001 01:41 PM
Re: Filesystem block size 'fstyp -v' vs. 'mkfs -m'
Yes, the fs_frsize of the fstyp output
is the actual block size!! It's an commonly
assumed misconception that the fs_bsize
is the block size, which it is not.
An implication of this is, if you want
a 8kb block size (normal for oracle DB),
remember to use the option -b 8192 in
the newfs command while creating the filesystem.
Here is a sample of a 8kb block size filesystem
fstyp output:
-----
vxfs
version: 3
f_bsize: 8192
f_frsize: 8192
f_blocks: 524288
f_bfree: 523988
----
and a 1Kb one:
----
vxfs
version: 3
f_bsize: 8192
f_frsize: 1024
f_blocks: 1572864
f_bfree: 1340516
------
Also, df -g gives you the same confusing
output of block size and fragment size,
with the fragment size being the actual block
size.
-raj