You can use the VxFS setext
command to preallocate file space, but the setext
command requires superuser privileges. You may need to use the chown
and chgrp
commands to change the owner and group permissions on the file after it is created.
See the setext
(1) manual page.
The following example shows how to use setext
to create a 100 MB database file for an Oracle database.
To preallocate files using setext
# setext -r 102400 -f noreserve -f chgsize .dbfil
e
# ln -s .dbfile::cdev:vxfs: dbfil
e