Create NetWare Volume (CRTNTWVOL)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Create NetWare Volume (CRTNTWVOL) command creates a volume for the specified network server. The network server must be active at the time this command is run. The space is allocated from the device number.

This command causes the following to happen:

  1. The physical volume is created on the specified device.
  2. For NetWare 4+, the volume object, which represents the physical volume, is automatically placed into the NDS (NetWare Directory Services) tree. The volume object is put into the same container as the server object which represents the network server.
  3. The volume is mounted if specified.

The following restrictions apply for NetWare volumes:

Restrictions: You must have *IOSYSCFG special authority to use this command.

Top

Parameters

Keyword Description Choices Notes
VOL Volume Character value Required, Positional 1
SERVER Server Character value Required, Positional 2
SIZE Size of volume 1-8000, *MAXAVAIL Optional
DEVNBR Device number Character value Optional
SEGNBR Segment number 0-14, *ANY Optional
BLKSIZE Block size *DFT, 4, 8, 16, 32, 64 Optional
DTACPR Data compression *YES, *NO Optional
BLKSUBALC Block suballocation *YES, *NO Optional
MOUNT Mount *YES, *NO Optional
TEXT Text Character value, *VOL Optional
Top

Volume (VOL)

Specifies the physical volume to be created. By default, the name of the volume object placed into the NDS tree is servername_volumename. The volume name must be 2 - 15 characters long and must be unique within the directory tree.

Top

Server (SERVER)

Specifies the server for which the volume is being created. This network server must be active when this command is executed.

Top

Size of volume (SIZE)

Specifies the size of the volume to be created, in megabytes.

*MAXAVAIL
Use the size of the largest area of contiguous free space on the specified device.
1-8000
Specify the size of the volume in megabytes. The size specified must be no larger than the largest area of contiguous free space on the device.
Top

Device number (DEVNBR)

Specifies the device number from which the storage for the volume is allocated. A value of 0 to 99 is allowed to be specified. Use Work with Netware Volumes (WRKNTWVOL) command to find an available device number.

Top

Segment number (SEGNBR)

Specifies the number of the segment which the new volume is allocated.

*ANY
Use the first segment which has the available size requested.
0-14
Specify the number of the segment from which the storage for the new volume is to be allocated. Use WRKNTWVOL (F10=Show Segments) to determine which segments are free and available for use.
Top

Block size (BLKSIZE)

Specifies the block size of the data in the volume. This value cannot be changed once the volume is created. Volume blocks are the smallest piece of data the server can access in a volume. The larger the block size, the greater the potential for wasted memory. However, if the majority of files are very large, a large block size may be more efficient. Turning on block suballocation will aid in minimizing waste. Block suballocation is controlled by the Block suballocation (BLKSUBALC) parameter.

*DFT
Specifies to use the block size that NetWare determines by default given the size of the volume.
block-size
Specify the block size of the data, in kilobytes. Valid values are: 4, 8, 16, 32 and 64 kilobytes.
Top

Data compression (DTACPR)

Specifies whether or not to enable data compression for this volume. Note that once data compression is turned on for a volume, it cannot be turned off.

*YES
Data compression is enabled for this volume.
*NO
Data compression is not enabled for this volume.
Top

Block suballocation (BLKSUBALC)

Specifies whether or not to enable block suballocation for this volume. Note that once block suballocation is turned on for a volume, it cannot be turned off.

*YES
Block suballocation is enabled for this volume.
*NO
Block suballocation is not enabled for this volume.
Top

Mount (MOUNT)

Specifies whether or not to mount this volume as soon as it's created. Don't mount volumes that are rarely used because each mounted volume uses some server memory. Volumes can be mounted and dismounted while the server is active.

*YES
The volume is created and then mounted.
*NO
The volume is created but not mounted.
Top

Text (TEXT)

Specifies the text that briefly describes the volume.

*VOL
The volume name will be used for the description of the volume.
character-value
Specify no more than 50 characters of text, enclosed in apostrophes.
Top

Examples

Example 1: Creating a Physical Volume

CRTNTWVOL   VOL(APPS)  SERVER(SERVER1)  NWSSTG(STGSPACE1)

This command creates physical volume APPS for network server SERVER1 with the size of the largest contiguous free space available on the network server storage space. SERVER1 is a local server (a NWSD of type *NETWARE defined on the local system). The storage is allocated from storage space STGSPACE1. A volume object called SERVER1_APPS is placed into the NDS tree. The volume is mounted by default.

Example 2: Creating a Volume with Specific Size

CRTNTWVOL   VOL(VOL1)  SERVER(SERVER2)  DEVNBR(9)
            SIZE(50)  DTACPR(*YES)  MOUNT(*NO)

This command creates physical volume VOL1 for network server SERVER2 with a size of 50 megabytes. This server may be local or remote. The storage is allocated from device number 9. A volume object called SERVER2_VOL1 is placed into the NDS tree. Data compression is enabled for this volume and the volume is not mounted.

Top

Error messages

*ESCAPE Messages

FPE0107
Volume &1 not created.
Top