As of BS2000 V21.0A, there is a second Net-Storage volume type NETVOL in addition to the previous Net-Storage volume type NETSTOR.
As of BS2000 V21.0A, only Net-Storage volumes of the NETVOL type are created with the ADD-NET-STORAGE-VOLUME command. As before, a directory is set up in the shared file system of the net server and assigned to a local data pubset (SF or SM pubset) in the form of a Net Storage volume.
Existing Net-Storage volumes of the NETSTOR type are still supported in BS2000 V21.0A. You can continue to use them as usual.
When creating files, the user specifies the NETSTOR volume type as before in order to create a file on Net-Storage:
/CREATE-FILE FILE-NAME=:NET1:$UA.NET-FILE.1,VOLUME=NEWNET,DEVICE-TYPE=NETSTOR
In the following example, the specified Net-Storage volume is of the NETVOL type (see DEVICE-TYPE):
/sh-file-attributes :NET1:$UA.NET-FILE.1,inf=*par(alloc=*yes)
%0000000004n:NET1:$UA.NET-FILE.1
% ------------------------------- ALLOCATION -------------------------------
% SUPPORT = PUB S-ALLOC = 4 HIGH-US-PA = 0
% EXTENTS VOLUME DEVICE-TYPE EXTENTS VOLUME DEVICE-TYPE
% 1 NEWNET NETVOL
% NUM-OF-EXT = 1
%:NET1: NET : 1 FILE RES= 4 FRE= 4 REL= 4 PAGES
Net-Storage volumes are treated as disk devices, so specifying NETSTOR, STDDISK or D3435 in the DEVICE operand of the CREATE-FILE command leads to the same result if the user specifies the VSN of the data carrier.
For files that are allocated on NETSTOR type net volumes, NETSTOR is output under DEVICE-TYPE; for files on Net-Storage volumes of the NETVOL type NETVOL is output under DEVICE-TYPE respectively (see example above).
Net-Storage volumes of the NETSTOR type can be converted into Net-Storage volumes of the NETVOL type. For this purpose, the volumes must not be assigned to a pubset (previous REMOVE-NET-STORAGE-VOLUME ... FILES-ON-VOLUME = * EXPORT required). The conversion function is contained in the ADD-NET-STORAGE-VOLUME command:
/ADD-NET-STORAGE-VOLUME VOLUME=NET001, PUBSET=NET1, ... , IMPORT=*YES(CONVERT=*TO-NETVOL)
The conversion cannot be reversed! After the conversion, BS2000 systems <V21 can no longer access the respective Net-Storage volumes and the files stored on them. See also the information in the section on shared pubsets.
Net-Storage volumes can be detached from a pubset with REMOVE-NET-STORAGE-VOLUME VOLUME = ..., FILES-ON-VOLUME = * EXPORT and later attached to another pubset . In the case of Net-Storage volumes of the NETVOL type, the files contained are automatically imported into the TSOSCAT of the pubset. If file name conflicts occur during the import, the import is canceled and any catalog entries that have already been created are removed. In this case the system administrator must clean up the pubset and repeat the ADD-NET-STORAGE-VOLUME. (In the case of Net-Storage volumes of the NETSTOR type, the files must be imported explicitly with the BS2000 command IMPORT-FILE.)
Net-Storage volumes of the NETVOL type are not supported in BS2000 <V21.0A. When SHOW-NET-STORAGE is output, these are marked as NOT-SUPPORTED ("NO SUP").
/show-net-storage
************************************************************************
- NET-DIRECTORY: /nas/200/fgBS2 (MOUNT-ID = 1)
------------------------------------------------------------------------
- NET-SERVER: IPV4: 172.17.11.111
- NET-CLIENT: NETCLH3
- IPV4: 192.168.153.12
------------------------------------------------------------------------
- NET-VOLUMES:
NET1@0 (IN USE, PUBSET = NET1)
- NEW0SM (NO SUP, PUBSET = SM )
- NETK00 (ONLINE, PUBSET = K )
************************************************************************