1833832 Members
2107 Online
110063 Solutions
New Discussion

Blocksize of Filesystem

 
Amit Manna_6
Regular Advisor

Blocksize of Filesystem

Can anybody tell me how to determine the blocsize of HFS or Vxfs
8 REPLIES 8
sam_111
Trusted Contributor

Re: Blocksize of Filesystem

Hi,

You can retrive the Blocksize of Filesystem using fsck command.

Please check the link for more options

regards,

sam
"Hard Work always Pays off"
Anupam Anshu_1
Valued Contributor

Re: Blocksize of Filesystem

Hi Amit,

You can use fstyp(1M) command.

Find the type of the file system on a logical volume, /dev/vg00/lvol6:

$ fstyp /dev/vg00/lvol6

Find the file system type for a particular device file and also information about its super block:

$ fstyp -v /dev/dsk/c1t6d0

For explanations for the outputs, please refer manpage for statvfs(2).

Regards,

Anshu
Amit Manna_6
Regular Advisor

Re: Blocksize of Filesystem

Hi SAm,

Where is the link??
Jose Mosquera
Honored Contributor

Re: Blocksize of Filesystem

Hi,

I'm no sure about your question, but the magic number is 512.

Pls take a look in "man df"

Rgds.
sam_111
Trusted Contributor

Re: Blocksize of Filesystem

hey Amit,

I am really sorry for it here is the link

http://sunportal.sunmanagers.org/pipermail/summaries/2004-March/005125.html

http://uw713doc.sco.com/en/FS_trouble/CTOC-FlSysProblems.html

regards,

sam

"Hard Work always Pays off"
Fabio Ettore
Honored Contributor

Re: Blocksize of Filesystem

Hi,

I see that there is confusion on this point.
In order to explain take the following sample:

# fstyp -v /dev/vg00/lvol3
vxfs
version: 3
f_bsize: 8192
f_frsize: 1024
f_blocks: 143360
f_bfree: 94588
f_bavail: 94588
f_files: 2432
f_ffree: 1073792296
f_favail: 1073792296
f_fsid: 1073741827
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 0
f_fsindex: 5
f_size: 143360

Blocksize of filesystem /dev/vg00/lvol3 is f_frsize: 1024, therefore 1Kbytes.
f_bsize: 8192 is the max blocksize which is possible to set but the actual is f_frsize!

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
sam_111
Trusted Contributor

Re: Blocksize of Filesystem

hi Amit,

Are you planning to assign some points to the guys around here.

your profile says you have assigned points to 14 of 121 .

regards,

sam
"Hard Work always Pays off"
Anupam Anshu_1
Valued Contributor

Re: Blocksize of Filesystem

I have seen many members donot close the thread by telling if there problem is solved or not. This really leaves respondants guessing where there reply was worth or not. Request question asking members to always close the loop, if the solution provided is not worth, then please put 0 (zero) points, else provide appropriate points.

Regards,

Anshu