Veritas File System 5.0 Administrator's Guide (September 2006)
For Oracle database files to allow tablespace resizing.)Increases the file to the
specified size.
-r
Preallocates space for a file.-s
You can specify file size in terms of bytes (the default), or in kilobytes, megabytes,
gigabytes, sectors (512 bytes), or terabytes by adding a k, K, m, M, g, G, s, S, t, or
T suffix. If the size of the file including the header is not a multiple of the file
system block size, it is rounded to a multiple of the file system block size before
preallocation.
The qiomkfile command creates two files: a regular file with preallocated,
contiguous space; and a symbolic link pointing to the Quick I/O name extension.
Creating a Quick I/O file using qiomkfile
The following example shows how to create a Quick I/O file using the qiomkfile
command.
See the qiomkfile(1) manual page.
To create a Quick I/O file using qiomkfile
1
Create a 100 MB file named dbfile in /database:
$ qiomkfile -s 100m /database/dbfile
The first file created is a regular file named /database/.dbfile, which has
the real space allocated. The second file is a symbolic link named
/database/dbfile. This is a relative link to /database/.dbfile via the Quick
I/O interface. That is, to .dbfile::cdev:vxfs:. This allows .dbfile to be
accessed by any database or application as a raw character device.
■ If you specify the -a option with qiomkfile, an absolute path name is
used, such as the following:
/database/dbfile points to /database/.dbfile::cdev:vxfs:
2
Check the results:
$ ls -al
-rw-r--r-- 1 oracle dba 104857600 Oct 22 15:03 .dbfile
lrwxrwxrwx 1 oracle dba 19 Oct 22 15:03 dbfile -> .dbfile::cdev:vxfs:
or:
187Quick I/O for Databases
About creating a Quick I/O file using qiomkfile