Defining a new file system that is always compressed
The IOEFSPRM configuration option format_compression=on indicates a global default that is used by all formatting methods when determining the default compression behavior while formatting a new file system. This global compression default can be overridden by specifying the -nocompress keyword.
If IOEFSPRM configuration option format_compression=off is specified, all formatting methods can explicitly specify the -compress keyword to format the file system with compression.
The following example is JCL for defining and compressing a new aggregate.
//ZDEFFMT JOB ,'DEF FORMAT COMPRESS',
// MSGCLASS=H,
// CLASS=A,
// TIME=(1440),MSGLEVEL=(1,1)
//*---------------------------------------------------
//* DEFINE FORMAT COMPRESS
//*---------------------------------------------------
//*
//DEFINE EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=H
//SYSUDUMP DD SYSOUT=H
//AMSDUMP DD SYSOUT=H
//DASD0 DD DISP=OLD,UNIT=3390,VOL=SER=SMBRS3
//SYSIN DD *
DEFINE CLUSTER (NAME(SUIMGNS.HIGHRISK.TEST) -
ZFS CYL(2 0) SHAREOPTIONS(3))
/*
//CREATE EXEC PGM=IOEFSUTL,REGION=0M,
// PARM=('format -aggregate SUIMGNS.COMPRESS.TEST -compress')
//SYSPRINT DD SYSOUT=H
//STDOUT DD SYSOUT=H
//STDERR DD SYSOUT=H
//SYSUDUMP DD SYSOUT=H
//CEEDUMP DD SYSOUT=H
The following example uses the zfsadm format command with the
-compress option to compress the new file
system.
zfsadm format -aggregate PLEX.DCEIMGNJ.ENC -compress
IOEZ00077I HFS-compatibility aggregate PLEX.DCEIMGNJ.ENC was successfully created.