Home > Veritas Storage Foundation™ for Sybase Manual Pages
QIO_GETDBFILES_SYB (1) |
User Commands |
pkginfo -l VRTSsybed
These commands are the Sybase-specific version of the qio_getdbfiles and qio_convertdbfiles commands, which are available in the /opt/VRTSsybed/bin directory. These commands are used to identify Sybase database files and convert them to use Quick I/O.
In a Sybase environment, these commands are called directly by the qio_getdbfiles and qio_convertdbfiles commands. To use these commands, the SYBASE and DSQUERY environment variables must be set.
For general information on the qio_getdbfiles or qio_convertdbfiles commands, see the corresponding man pages.
Converting existing database files to Quick I/O files may not be the optimal thing to do if these files are fragmented. In this case, creating new files with the qiomkfile command (which are guaranteed to not be fragmented) and converting the data in from the old files (using a command such as dd ) is recommended.
Running the qio_convertdbfiles_syb command with any option but -f while the database is up and running can cause severe problems with your database, including data loss and corruption. Make sure the Sybase ASE server is shut down before running this command.
qio_getdbfiles_syb and qio_convertdbfiles_syb connect to the Sybase ASE server via a Sybase sa account. It is important to protect the sa password so that it is not visible to other users. By default, both commands will ask users to type in the Sybase sa password. The Sybase tools used in these commands will receive the password without displaying it on the screen. To run these commands in a non-interactive mode, you can create a file /opt/VRTSsybed/.private/sa_password_dataserver_name, which contains the Sybase sa password for the corresponding ASE server. dataserver_name is the content of the DSQUERY variable set by the user. Only the Sybase DBA user should have access to the .private directory and sa_password_dataserver_name file. If the sa_password_dataserver_name file is present, qio_getdbfiles_syb and qio_convertdbfiles_syb will read the Sybase sa password from the file and run in non-interactive mode.
For example, while processing a file named /sybdev/dbfile, the qio_convertdbfiles command (with no options specified) renames the file dbfile to .dbfile and creates a symbolic link to the .dbfile file with the Quick I/O extension. By default, the symbolic link uses a relative pathname.
example% cd /sybdev example% ls -l -rw-r----- 1 sybase sybase 104857600 May 2 13:42 dbfile example% /opt/VRTSsybed/bin/qio_getdbfiles_syb example% cat mkqio.dat /sybdev/dbfile 104857600 \# shutdown the Sybase ASE server example% /opt/VRTSsybed/bin/qio_convertdbfiles_syb example% ls -alL d* .d* -rw-r----- 1 sybase sybase 104857600 May 2 13:42 .dbfile crw-r----- 1 sybase sybase 45, 1 May 3 12:18 dbfile example% ls -al d* .d* -rw-r----- 1 sybase sybase 104857600 May 2 13:42 .dbfile lrwxrwxrwx 1 sybase sybase 17 May 3 12:18 dbfile -> .dbfile::cdev:vxfs: \# Startup the Sybase ASE server
VERITAS Storage Foundation for Sybase Administrator's Guide
Last updated: 4 Nov 2004
Copyright ©2009 Symantec Corporation
All rights reserved.