CL Command Reference - CRTNTWVOL

CL Command List > CRTNTWVOL Reference

Description:

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:
. A maximum of 8 segments per device is allowed. A device can have a maximum of 8 segments from the same volume or combination of different volumes.
. A maximum of 32 segments per volume is allowed. CRTNTWVOL will create the first segment. The Change NetWare Volume (CHGNTWVOL) command can be used, up to 31 times, to add additional segments.
. A maximum of 64 mounted volumes per server is allowed.

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


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.