To create a new database device, preallocate space on the file system by using the qiomkfile
command, then use the Sybase buildmaster
command for a master device, or the Transact SQL disk
init
command for a database device. qiomkfile
creates two files: a regular file using preallocated, contiguous space, and a symbolic link pointing to the ::cdev:vxfs:
name extension.
The following example creates a 100 megabyte master device masterdev
on the file system /sybmaster
.
To create a new Sybase database device
You can use this master device while running the sybsetup
program or sybinit
script.
$ buildmaster -d masterdev -s 51200
$ isql -U
sa -P
sa_password -S dataserver_name
3> physname = "
/sybdata/datadev",