HP-UX: How to check hpux block size

The “df -g” command shows it, but apparently not if you are using Veritas file-system; Veritas says they do not support “df -g”

So, instead, for VxFS on HPUX, use “/usr/sbin/fstyp -v <special>”, where “<special>” is the block-special device underlying the file-system.

# /usr/sbin/fstyp -v /dev/vgfc07/asgr07
vxfs
version: 5
f_bsize: 8192
f_frsize: 2048
f_blocks: 262012928
f_bfree: 261972575
f_bavail: 253785933
f_files: 65493168
f_ffree: 65493136
f_favail: 65493136
f_fsid: 1074200577
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 16
f_fsindex: 9
f_size: 262012928
# df -g
/
asgr01                (/dev/vgsata01/asgr01  ) :
8192 file system block size            2048 fragment size
261652480 total blocks                 249918266 total free blocks
242108376 allocated free blocks         62522640 total i-nodes
62479564 total free i-nodes            62479564 allocated free i-nodes
1073807361 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/
asgr01 file system specific string
/
asgr02                (/dev/vgsata02/asgr02  ) :
8192 file system block size            2048 fragment size
261652480 total blocks                  19914022 total free blocks
19291718 allocated free blocks          5001472 total i-nodes
4978498 total free i-nodes             4978498 allocated free i-nodes
1073938433 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/
asgr02 file system specific string
/
asgr03                (/dev/vgsata03/asgr03  ) :
8192 file system block size            2048 fragment size
261652480 total blocks                 141523868 total free blocks
137101283 allocated free blocks         35381736 total i-nodes
35380965 total free i-nodes            35380965 allocated free i-nodes
1074003969 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/
asgr03 file system specific string
/
asgr04                (/dev/vgfc04/asgr04    ) :
8192 file system block size            2048 fragment size
261652480 total blocks                  42816731 total free blocks
41478714 allocated free blocks         10724616 total i-nodes
10704175 total free i-nodes            10704175 allocated free i-nodes
1073872897 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/
asgr04 file system specific string
/
asgr05                (/dev/vgfc05/asgr05    ) :
8192 file system block size            2048 fragment size
261652480 total blocks                  16433981 total free blocks
15920441 allocated free blocks          4167456 total i-nodes
4108493 total free i-nodes             4108493 allocated free i-nodes
1074069505 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/
asgr05 file system specific string
/home                  (/dev/vg00/lvol4       ) :
8192 file system block size            8192 fragment size
2621440 total blocks                     46553 total free blocks
46203 allocated free blocks           161024 total i-nodes 11632 total free i-nodes               11632 allocated free i-nodes
1073741828 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/home file system specific string
/opt                   (/dev/vg00/lvol5       ) :
8192 file system block size            8192 fragment size
1048576 total blocks                    528936 total free blocks
524811 allocated free blocks           183744 total i-nodes
132218 total free i-nodes              132218 allocated free i-nodes
1073741829 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/opt file system specific string
/tmp                   (/dev/vg00/lvol6       ) :
8192 file system block size            8192 fragment size
1048576 total blocks                    575647 total free blocks
571226 allocated free blocks           154048 total i-nodes
143911 total free i-nodes              143911 allocated free i-nodes
1073741830 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/tmp file system specific string
/usr                   (/dev/vg00/lvol7       ) :
8192 file system block size            8192 fragment size
1048576 total blocks                    724647 total free blocks
718989 allocated free blocks           212064 total i-nodes
181133 total free i-nodes              181133 allocated free i-nodes
1073741831 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/usr file system specific string
/var                   (/dev/vg00/lvol8       ) :
8192 file system block size            8192 fragment size
1572864 total blocks                   1289212 total free blocks
1279187 allocated free blocks           357184 total i-nodes
322290 total free i-nodes              322290 allocated free i-nodes
1073741832 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/var file system specific string
/stand                 (/dev/vg00/lvol1       ) :
8192 file system block size            8192 fragment size
262144 total blocks                    244259 total free blocks
242364 allocated free blocks            61184 total i-nodes
61046 total free i-nodes               61046 allocated free i-nodes
1073741825 file system id                    vxfs file system type
0 flags                             255 file system name length
/stand file system specific string
/                      (/dev/vg00/lvol3       ) :
8192 file system block size            8192 fragment size
655360 total blocks                    477420 total free blocks
473697 allocated free blocks           129920 total i-nodes
119339 total free i-nodes              119339 allocated free i-nodes
1073741827 file system id                    vxfs file system type
0x10 flags                             255 file system name length
/ file system specific string

Leave a Comment

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top