Veritas File System 5.0 Administrator's Guide (September 2006)
$ ls -lL
crw-r----- 1 oracle dba 43,0 Oct 22 15:04 dbfile
-rw-r--r-- 1 oracle dba 10485760 Oct 22 15:04 .dbfile
■ If you specified the -a option with qiomkfile, the results are as follows:
$ ls -al
-rw-r--r-- 1 oracle dba 104857600 Oct 22 15:05 .dbfile
lrwxrwxrwx 1 oracle dba 31 Oct 22 15:05 dbfile ->
/database/.dbfile::cdev:vxfs:
Accessing regular VxFS files through symbolic links
One way to use Quick I/O is to create a symbolic link for each file in your database
and use the symbolic link to access the regular files as Quick I/O files. Any database
or application can then access the file as a raw character device.
See the Veritas Editions product documentation.
The following example creates a 100 MB Quick I/O file named dbfile on the VxFS
file system /database that can be accessed through a symbolic link.
To access a file through a symbolic link
1
Go to the /database file system:
$ cd /database
2
Create a 100 MB Quick I/O file named dbfile:
$ dd if=/dev/zero of=/database/.dbfile bs=128k count=800
The dd command preallocates the file space.
3
Create a symbolic link to dbfile:
$ ln -s .dbfile::cdev:vxfs: /database/dbfile
About absolute and relative path names
It is usually better to use relative path names instead of absolute path names when
creating symbolic links to access regular files as Quick I/O files. Using relative
path names prevents copies of the symbolic link from referring to the original
file. This is important if you are backing up or moving database files with a
command that preserves the symbolic link. However, some applications, such as
SAP, require absolute path names.
Quick I/O for Databases
Accessing regular VxFS files through symbolic links
188