Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Network Server Storage Link (ADDNWSSTGL) command is used to add a network storage space link to a network server description.
When *IXSVR is specified for the Network server type (TYPE) parameter in CRTNWSD command:
An additional 32 storage spaces may be dynamically linked to a Windows 2000 server or later with 16 of the 32 links being linked with *UPDATE access ( read/write to only one server ). The remaining 16 links are available for *SHRUPD access ( read/write to multiple clustered Windows Server 2000 or later servers ). The first of these *SHRUPD access links must be to a quorum resource disk ( format *NTFSQR ) at DRVSEQNBR *QR.
This is only valid when *WIN32 is specified for the Network server type (TYPE) parameter.
When *ISCSI is specified for the Network server type (TYPE) parameter in CRTNWSD command:
A maximum of 64 network server storage spaces can be linked to a network server description when using dynamic linking. The first two storage spaces (1 and 2) must be linked with *UPDATE access (read/write).
When *GUEST is specified for the Network server type (TYPE) parameter in CRTNWSD command:
For more information about adding a link to a specific server type, see the following:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
NWSSTG | Network server storage space | Name | Required, Positional 1 |
NWSD | Network server description | Communications name | Required, Positional 2 |
DYNAMIC | Dynamic storage link | *NO, *YES | Optional, Positional 3 |
TYPE | Network server type | Character value, *NWSD | Optional |
ACCESS | Access | *UPDATE, *READ, *SHRUPD | Optional |
DRVSEQNBR | Drive sequence number | 1-64, *CALC, *QR | Optional |
STGPTHNBR | Storage path number | 1-4, *DFTSTGPTH, *MLTPTHGRP | Optional |
Top |
Specifies the name of the network server storage space.
This is a required parameter.
Top |
Specifies the name of the network server description to which this link is to be added.
This is a required parameter.
Top |
Specifies whether this storage is to be linked as dynamic storage using the next available location, or linked as static storage using the drive sequence number specified by the DRVSEQNBR parameter.
Note: If the Network server description (NWSD) was created with *IXSVR or *ISCSI specified for the Network server type (TYPE) parameter, DYNAMIC parameter will be ignored and considered *YES when the server is installed with Windows 2000 or later, or Linux. If the NWSD was created with *GUEST specified for the Network server type (TYPE) parameter, DYNAMIC parameter will be ignored and considered *YES.
Top |
Describes the type of network server description to which this link is added.
Note: This parameter is present only for compatibility with previous releases. The value specified is not syntax checked and no verification is done to ensure that the network server description matches the specified TYPE value.
Top |
Specifies the server's access method to the storage space.
Note: DYNAMIC(*YES) must be specified when ACCESS(*SHRUPD) is specified.
Top |
Specifies the order in which the network storage spaces are presented to the server. Each storage space must be given a unique sequence number.
This value must be used when linking a *NTFSQR format disk as the quorum disk for a Windows cluster. The quorum disk must be linked with ACCESS(*SHRUPD) and it must be the first *SHRUPD link when *IXSVR is specified for the Network server type (TYPE) parameter, or must be the last (64th) when *ISCSI is specified for the Network server type (TYPE) parameter in the CRTNWSD command. Each server in a Windows cluster must be linked to one and only one quorum resource disk. The quorum must also be linked to each server with DYNAMIC(*YES) specified.
When network server created with Server connection *ISCSI and Server operating system *WIN32:
When network server created with Server connection *IXSVR or *ISCSI and Server operating system *LINUX32:
When network server created with Server connection *GUEST:
Note: If a non-sequential number is specified for a Network server description (NWSD) created with Server connection specified *IXSVR or *ISCSI for the Network server type (TYPE) parameter, the number may not match the logical unit number on Windows or Linux and unexpected results may occur on drive assignments and applications.
Top |
Specifies the storage path number in the network server description (NWSD) that is used by this storage space.
Note: This parameter is only valid when Server connection specified *ISCSI for the Network server type (TYPE) parameter in the corresponding CRTNWSD command.
See Storage path (STGPTH) parameter of the network server description on the CRTNWSD or CHGNWSD commands.
Top |
Example 1:Linking Storage Spaces to a Network Server
ADDNWSSTGL NWSSTG(PARTS) NWSD(WNTSVR) DRVSEQNBR(3) ADDNWSSTGL NWSSTG(DATA) NWSD(WNTSVR) DRVSEQNBR(*CALC)
These commands link storage space PARTS to the Windows server at drive sequence 3, and storage space DATA at the next available sequence number.
Example 2:Linking a Dynamic Storage Space
ADDNWSSTGL NWSSTG(DATAUPD) NWSD(W2KSVR) DYNAMIC(*YES)
This command dynamically links the storage to the Windows server to the next available dynamic storage sequence.
Example 3: Linking Quorum and Shared Storage Spaces
ADDNWSSTGL NWSSTG(QUORUM) NWSD(DNETSVR1) DYNAMIC(*YES) ACCESS(*SHRUPD) DRVSEQNBR(*QR) ADDNWSSTGL NWSSTG(QUORUM) NWSD(DNETSVR2) DYNAMIC(*YES) ACCESS(*SHRUPD) DRVSEQNBR(*QR) ADDNWSSTGL NWSSTG(DATASHR) NWSD(DNETSVR1) DYNAMIC(*YES) ACCESS(*SHRUPD) DRVSEQNBR(*CALC) ADDNWSSTGL NWSSTG(DATASHR) NWSD(DNETSVR2) DYNAMIC(*YES) ACCESS(*SHRUPD) DRVSEQNBR(*CALC)
These commands allow two Windows servers DNETSVR1 and DNETSVR2 to share storage space DATASHR with read/write access.
Example 4: Linking a Storage Path
ADDNWSSTGL NWSSTG(DATAUPD) NWSD(W2KSVR) STGPTHNBR(*DFTSTGPTH)
This command links the storage to the Windows server using the default storage path identified in the NWSD.
Top |
Top |