IBM Support

How can I expand the TXSeries SFS volumes on Windows Systems?

Question & Answer


Question

I am getting messages that my TXSeries SFS volumes are full and I need to know how to expand the volumes on Windows based systems.

Answer

When your TXSeries region is receiving messages that your data volume or your log volume has run out of space you will need to expand those volumes. The following can be used to expand the volumes on Windows systems.

TIP: If the SFS log volume is out of space, the first step you should take is to check for stuck transactions, transactions in a commit complete state for a long time will cause the log volume to fill up because of the nature of the SFS log processing.

Expanding the SFS Data Volume on Windows Systems

Here is an example on how to add two additional areas to the data volume on an existing SFS server. The first additional area is 2GB and the second is 4GB. 4GB is the largest file size allowed on Windows. You will need to add as many 4GB files as needed to reach your desired size.

Displaying the current SFS data volume: sfsadmin query lvol -server /.:/cics/sfs/realbig sfs_Srealbig Total pages: 16320 Pages used: 142 Pages free: 16178

Allocating the additional space: c:\opt\txseries\encina\etc\filevol c:\var\sfs_Srealbig2 2000m c:\opt\txseries\encina\etc\filevol c:\var\sfs_Srealbig3 4000m

Initializing the additional space: tkadmin init disk -server /.:/cics/sfs/realbig c:\var\sfs_Srealbig2 tkadmin init disk -server /.:/cics/sfs/realbig c:\var\sfs_Srealbig3

Starting the SFS in administration mode: cicssfs -a /.:/cics/sfs/realbig

The contents of the SFS msg file after starting in administration mode: 1 02220 06/05/08-11:27:36.636610 502c3468 A Ready for additional configuration ... 05/08/2006 11:27:36 AM

Adding the additional areas to the physical volume for the data volume: tkadmin expand pvol sfs_Srealbig 1 c:\var\sfs_Srealbig2 0 -server /.:/cics/sfs/realbig tkadmin expand pvol sfs_Srealbig 1 c:\var\sfs_Srealbig3 0 -server /.:/cics/sfs/realbig

Listing the expanded physical volume: tkadmin query pvol sfs_Srealbig -server /.:/cics/sfs/realbig Information about physical volume sfs_Srealbig All sizes and offsets are in pages. Page Size is: 4 Kbytes Mapped to logical volume sfs_Srealbig chunk size: 64 number of regions: 3 region 0: disk: C:\VAR\sfs_Srealbig offset: 0 size: 16320 region 1: disk: c:\var\sfs_Srealbig2 offset: 0 size: 511936 region 2: disk: c:\var\sfs_Srealbig3 offset: 0 size: 1023936 total size: 1552192

Enlarging the logical data volume: tkadmin expand lvol sfs_Srealbig 1552192 -server /.:/cics/sfs/realbig

Stop the SFS server: cicssfsshut /.:/cics/sfs/realbig

Restart the SFS in normal mode: cicscp start sfs_server /.:/cics/sfs/realbig

Display the logical volume for the data volume tkadmin query lvol -server /.:/cics/sfs/realbig sfs_Srealbig Information about logical volume sfs_Srealbig All sizes and offsets are in pages. Page Size is: 4 Kbytes size: 1552192 chunkSize: 64 Backing physical volumes (only 'clean' and 'dirty' volumes are active): sfs_Srealbig (clean) Volume is currently enabled. volume used pages: 142 (0%) volume free pages: 1552050 (99%)

Displaying the available space in the expanded data volume: sfsadmin query lvol -server /.:/cics/sfs/realbig sfs_Srealbig Total pages: 1552192 Pages used: 142 Pages free: 1552050

Expanding the SFS Logical Volume on Windows Systems.

The following is a demonstration of expanding an logical volume that is backed by a Windows file.

The region has to be shutdown and no other programs accessing the server. The server is started in administration mode (cicssfs -nlv /.:/cics/sfs/).

The details for the commands are found in the TXSeries Information/Knowledge Centers.

Expanded the log with the following steps:

Step 1: Start the SFS in Administrative mode. C:\>cicssfs -nlv /.:/cics/sfs/realbig ERZ038217I/0176: Waiting for subsystem 'cicssfs.Srealbig' to become active ERZ038182I/0180: Server '/.:/cics/sfs/realbig' started successfully.

Step 2: The current log size in pages is needed for reference. tkadmin query lvol -server /.:/cics/sfs/

C:\>tkadmin query lvol -server /.:/cics/sfs/realbig log_Srealbig Information about logical volume log_Srealbig All sizes and offsets are in pages. Page Size is: 4 Kbytes size: 16320 chunkSize: 64 Backing physical volumes (only 'clean' and 'dirty' volumes are active): log_Srealbig (clean)

The size is 16320.

Step 3: Show the physical files currently making up the physical log volume. tkadmin query pvol -server /.:/cics/sfs/

C:\>tkadmin query pvol -server /.:/cics/sfs/realbig log_Srealbig Information about physical volume log_Srealbig All sizes and offsets are in pages. Page Size is: 4 Kbytes Mapped to logical volume log_Srealbig chunk size: 64 number of regions: 1 region 0: disk: C:\VAR\log_Srealbig offset: 0 size: 16320 total size: 16320

One file is used to make the log volume.

Step 4: Allocate another file for the log volume. 67m is the default log size. c:\opt\cics\etc\filevol c:\var\ 67m

C:\>c:\opt\cics\etc\filevol c:\var\log_Srealbig2 67m 67m bytes is 70254592 bytes. Set c:\var\log_Srealbig2 to 70254592 bytes.

Step 5: Add the new file to the physical log volume. May take a minute or two. tkadmin init disk -server /.:/cics/sfs/ :

C:\>tkadmin init disk -server /.:/cics/sfs/realbig c:\var\log_Srealbig2 Initialized disk partition c:\var\log_Srealbig2 disk size (in pages): 17151

Step 6: Add the additional file to the physical volume for the log. tkadmin expand pvol 1 0 -server /.:/cics/sfs/

C:\>tkadmin expand pvol log_Srealbig 1 c:\var\log_Srealbig2 0 -server /.:/cics/sfs/realbig (no output)

Step 7: Show the added file in the physical volume. The "total size" number will be needed later for in another command. tkadmin query pvol -server /.:/cics/sfs/

C:\>tkadmin query pvol -server /.:/cics/sfs/realbig log_Srealbig Information about physical volume log_Srealbig All sizes and offsets are in pages. Page Size is: 4 Kbytes Mapped to logical volume log_Srealbig chunk size: 64 number of regions: 2 region 0: disk: C:\VAR\log_Srealbig offset: 0 size: 16320 region 1: disk: c:\var\log_Srealbig2 offset: 0 size: 17088 total size: 33408

Step 8: Enlarge the logical logical volume for the log volume. The logical volume maps over the physical volume. tkadmin expand lvol -server /.:/cics/sfs/

C:\>tkadmin expand lvol log_Srealbig 33408 -server /.:/cics/sfs/realbig (no output)

Step 9: Show the details of the log volume. The "size" should equal the "total size" from the tkadmin query pvol command. tkadmin query lvol -server /.:/cics/sfs/

C:\>tkadmin query lvol -server /.:/cics/sfs/realbig log_Srealbig Information about logical volume log_Srealbig All sizes and offsets are in pages. Page Size is: 4 Kbytes size: 33408 chunkSize: 64 Backing physical volumes (only 'clean' and 'dirty' volumes are active):

The SFS can now be stopped and restarted in regular mode. The SFS will recover the transactions in play at the time of the log going full. It may take a minute or two to Start up. If the SFS crashes again it is usually due to the log not being expanded large enough to handle all the transactions in the log. The server msg log will show compression and out of space messages when the log is being recovered. The log will have message ENC-log-0258 at the end if there is not enough space in the volume. If this happens the log will need expanded again. You may end up having to expand the log to twice it's size to have recovery to finish correctly. There is a 2GB limit to the log file. The log can not be expanded past 2GB. If the log is at 2GB before expansion the SFS CAN NOT be recovered. The SFS will need restored from the latest backup. This is one of the reasons to keep the log at 100MB. When the SFS log is close to 1MB the SFS should be deleted and reallocated with a 100MB log.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSAL2T","label":"TXSeries for Multiplatforms"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Component":"","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
06 March 2015

UID

dwa1165307