IBM Support

How to use logical volumes (instead of file volumes) for SFS server in Linux

Technical Blog Post


Abstract

How to use logical volumes (instead of file volumes) for SFS server in Linux

Body

From TXSeries 8.1, by default file volumes are created for SFS and PPCGWY servers. For achieving the better performance use logical volumes instead of file volumes.  The following example demonstrates creating the SFS server using logical volumes. Similar steps can be followed to create PPCGWY server with logical volumes as well.  

 

Follow these steps for creating SFS server using logical volumes on Linux platform.
1. Create the logical volumes using the following commands with required size.

# lvcreate -L 256M -n lv_sfs02_data vg_cics
# lvcreate -L 256M -n lv_sfs02_log vg_cics

2. Check the LV Path of the logical volumes created using the lvdisplay command.

# lvdisplay
--- Logical volume ---
LV Path /dev/vg_cics/lv_sfs02_log
LV Name lv_sfs02_log

--- Logical volume ---
LV Path /dev/vg_cics/lv_sfs02_data
LV Name lv_sfs02_data

3. Create the soft-links for the LV Paths to the corresponding SFS volume names in /var/cics_servers/volumes directory. If sfs server name is sfs02, then SFS server uses log_Ssfs02 and sfs_Ssfs02 as volume names.

# ln -s /dev/vg_cics/lv_sfs02_log /var/cics_servers/volumes/log_Ssfs02
# ln -s /dev/vg_cics/lv_sfs02_data /var/cics_servers/volumes/sfs_Ssfs02
# ln -s /var/cics_servers/volumes/sfs_Ssfs02 /var/cics_servers/volumes/rsfs_Ssfs02
# ln -s /var/cics_servers/volumes/log_Ssfs02 /var/cics_servers/volumes/rlog_Ssfs02

4. Change the ownership of the volumes to cics:cics.

# chown cics:cics /var/cics_servers/volumes/log_Ssfs02
# chown cics:cics /var/cics_servers/volumes/sfs_Ssfs02


5. Now create the sfs server using the cicscp command.

# cicscp -v create sfs_server sfs02
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ096103I/0199: Creating an SFS server.
ERZ105006I/0011: Directory '/var/cics_servers/SSD/cics/sfs/sfs02' created
ERZ084009W/8429: No runtime recovery image for server '/.:/cics/sfs/sfs02', cold start assumed
ERZ010130I/0734: Creating subsystem 'cicssfs.Ssfs02'
ERZ038038I/0044: Server '/.:/cics/sfs/sfs02' added as a subsystem
ERZ096107I/0214: The SFS server '/.:/cics/sfs/sfs02' was created successfully.
ERZ096002I/0003: The cicscp command has completed successfully.

5. Start the sfs server using the cicscp command as follows.

# cicscp -v start sfs_server sfs02 StartType=cold
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ096111I/0224: Processing a start sfs_server command.
ERZ096141I/0224: Starting SFS server '/.:/cics/sfs/sfs02'.
ERZ038214I/0168: Authorization for server '/.:/cics/sfs/sfs02' has been set to 'none'
ERZ038216I/0175: Subsystem 'cicssfs.Ssfs02' has been initialized.
ERZ038272I/0157: Waiting for server '/.:/cics/sfs/sfs02' to initialise.
ERZ038219I/0179: Server '/.:/cics/sfs/sfs02' is responding to RPCs.
ERZ036204I/0251: Created logical volume 'log_Ssfs02' for server '/.:/cics/sfs/sfs02'
ERZ036206I/0253: Initialized logical volume 'log_Ssfs02' initialized for logging by server '/.:/cics/sfs/sfs02'
ERZ036208I/0255: Created log file 'log_Ssfs02/logfile' for server '/.:/cics/sfs/sfs02'
ERZ036231I/0260: Log file 'logfile' on server '/.:/cics/sfs/sfs02' has been enabled.
ERZ036233I/0262: Logical volumes on server '/.:/cics/sfs/sfs02' have been recovered.
ERZ038228I/0189: Server '/.:/cics/sfs/sfs02' has been enabled.
ERZ038223I/0192: SFS Logical volume 'sfs_Ssfs02' has been created for server '/.:/cics/sfs/sfs02'.
ERZ038224I/0194: Logical volume 'sfs_Ssfs02' on server '/.:/cics/sfs/sfs02' has been enabled.
ERZ038226I/0196: Logical volume 'sfs_Ssfs02' has been added to server '/.:/cics/sfs/sfs02'.
ERZ038182I/0182: Server '/.:/cics/sfs/sfs02' started successfully.
ERZ096113I/0231: SFS server has '/.:/cics/sfs/sfs02' successfully started.
ERZ096002I/0003: The cicscp command has completed successfully.

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

UID

ibm16213587