CL Command Reference - ADDNWSSTGL

CL Command List > ADDNWSSTGL Reference

Description:

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:
1. A maximum of 16 network server storage spaces can be linked to a network server description when using standard linking (DYNAMIC *NO specified).
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.
2. A maximum of 64 network server storage spaces can be linked to a network server description when using dynamic linking (DYNAMIC *YES specified). The first two storage spaces (1 and 2) must be linked with *UPDATE access (read/write). This is only valid when *LINUX32 is specified for the Network server type (TYPE) parameter.

When *ISCSI is specified for the Network server type (TYPE) parameter in CRTNWSD command:
1. 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). 1. Storage spaces 3-63 can be linked with *UPDATE or *SHRUPD access mode. The last of the 64 storage spaces (64th) must be *SHRUPD access to a quorum resource ( format *NTFSQR ) at DRVSEQNBR *QR when *WIN32 is specified for the Network server type (TYPE) parameter.
2. Storage spaces 3-64 can be linked with *UPDATE or *SHRUPD access mode when *LINUX32 is specified for the Network server type (TYPE) parameter.

When *GUEST is specified for the Network server type (TYPE) parameter in CRTNWSD command:
1. A maximum of 64 network server storage spaces can be linked in any access mode to a network server description when using dynamic linking.



Examples:

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.