Operating System - HP-UX
1752571 Members
5119 Online
108788 Solutions
New Discussion юеВ

Re: filesystem blksize - "mkfs -m" and "fstyp -v" disagree

 
SOLVED
Go to solution
S.Rider
Regular Advisor

filesystem blksize - "mkfs -m" and "fstyp -v" disagree

On a test server, I did the following command.
newfs -F vxfs -b 1024 -o largefiles /dev/vg10/rlvol1

MKFS looks like it created a filesystem with a blocksize of 1k.
# mkfs -m /dev/vg10/lvol1
mkfs: /etc/default/fs is used for determining the file system type
mkfs -F vxfs -o ninode=unlimited,bsize=1024,version=6,inosize=256,logsize=16384,
largefiles /dev/vg10/lvol1 71114752

But FSTYP, sayas f_bsize is 8,192 ???
# fstyp -v /dev/vg10/lvol1
vxfs
version: 6
f_bsize: 8192
f_frsize: 1024
f_blocks: 71114752
f_bfree: 71080235
f_bavail: 66637721
f_files: 17770088
f_ffree: 17770056
f_favail: 17770056
f_fsid: 1073872897
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 16
f_fsindex: 9
f_fsize: 71114752
refrcsk1:[/root]

Shouldn't they match ?
Ride Boldly Ride, but watch out for El Dorado's
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: filesystem blksize - "mkfs -m" and "fstyp -v" disagree

If you do a "man 2 statvfs" you will find that f_bsize is the preferred block size whereas f_frsize is the fundamental block size so the display is quite correct. Now, why do you care? I know you were told in Oracle class that matching the filesystem block size to the database blocksize (or some integral multiple thereof) is vitally important. In vxfs filesystems, it doesn't matter at all. Unlike hfs/ufs filesystems which are block-based, vxfs filesystems are extent-based which means that they attempt to write in large chunks. Blocksize has no impact upon performance at all; it merely represents the smallest chunk of disk space that a file will actually occupy.
If it ain't broke, I can fix that.
S.Rider
Regular Advisor

Re: filesystem blksize - "mkfs -m" and "fstyp -v" disagree

The customer had some HP consultants come in and examine their system, and give them a list of recommendations. They recommended changing the filesystem block size for the oracle redo logs filesystems, and some other stuff like using the Distributed Allocation Policy with PVG's. I see your point (I had actually see it earlier searching the forum for similar questions) and I agree with you, but it's sometimes easier to just make the change that the customer is requesting.

Thanks for explaining the difference between bsize and frsize. I appreciate it.

Well it's 5:30 on a Friday, time to go riding. 8-)
Ride Boldly Ride, but watch out for El Dorado's