As an alternative to using the qiomkfile command, you can also use the VxFS setext command to preallocate space for database files.
Before preallocating space with setext, make sure the following conditions have been met:
To create a Quick I/O database file using setext
# cd /mount_point
# touch .filename
# /opt/VRTS/bin/setext -r size -f noreserve -f chgsize \ .filename
# ln -s .filename::cdev:vxfs: filename
For example, for DB2:
# chown user:group .filename
# chmod 660 .dbfile
For example, for Sybase:
# chown sybase:sybase .filename
# chmod 660 .filename
For example, for /db01, create a container, preallocate the space, and change the permissions:
# cd /db01 # touch .dbfile # /opt/VRTS/bin/setext -r 100M -f noreserve -f chgsize .dbfile # ln -s .dbfile::cdev:vxfs: dbfile
For DB2:
# chown db2inst1:db2iadm1 .dbfile
# chmod 660 .dbfile
For Sybase:
# chown sybase:sybase .dbfile
# chmod 660 .dbfile