This section describes the process for creating a new master device using the dataserver utility. The master device is built using the build mode in dataserver. After the master device is built, the server shuts down. You must then manually start the server in the start mode. After this you can start, stop, and restart Adaptive Server whenever necessary without having to rebuild the master device
Adaptive Server uses three types of page sizes:
Logical page size – these are the pages that the database objects are built with. A databases and any of its related objects must use the same logical page size. Logical page sizes come in sizes of 2K, 4K, 8K, and 16K.
Virtual page size – this is the physical page allocation at the disk level, and is always done in 2K pages. All disk I/O is done in multiples of virtual page size.
Memory page size – the memory allocated and managed within Adaptive Server. The memory page size is always in units of 2K pages.
The following syntax creates a new master device with dataserver:
dataserver -ddevice_name . . . -b [master_device_size [k|K|m|M|g|G] [-z logical_page_size [k|K] -h
Where:
-d device_name – is the full path name of the device for the master database. The master database device must be writable by the user who starts Adaptive Server. The default master database device name is d_master.
-b – indicates that dataserver is in build mode and creating a new master device, and indicates the size of the master device. If you do not provide a unit specifier (k, m, g) for the size of the device, dataserver assumes a size in virtual pages. The size of a virtual page is always 2K. For example:
-b 51204 – specifies a device of 51,204 virtual pages (100.0078125MB).
-b 100M – specifies a device of 100Mb
-z – specifies the logical page size, which is always 2K, 4K, 8K, or 16K. That is, one logical page = N virtual pages. This parameter is optional during the build phase and is ignored during the start mode. If you do not include the -z parameter during the build mode, the master device is built with 2K logical pages.
-h – prints the syntax for the dataserver command.
See dataserver for a full list of dataserver parameters and their definitions.