IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon [email protected]...

70
8 CopyrightIBM Corporation, 2008. A llRightsReserved. Thispublication m ay referto productsthatare notcurrently available in yourcountry. IBM m akesno com m itm entto m ake available any productsreferred to herein. IBM Power Systems Integrated File System: Fundamentals Margaret Fenlon [email protected] Gateway/400 user group presentation

Transcript of IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon [email protected]...

Page 1: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

8 Copyright IBM Corporation, 2008. All Rights Reserved.

This publication may refer to products that are not currently available in your country. IBM makes no commitment to make available any products referred to herein.

IBM Power Systems™

Integrated File System: Fundamentals

Margaret Fenlon

[email protected]

Gateway/400 user group presentation

Page 2: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation3

Integrated File System: Fundamentals

Concepts

ƒ Stream File

ƒ Directory

ƒ Subtree

ƒ File System

ƒ Integrated File System

ƒ Path Name

ƒ Current Working Directory

ƒ Home Directory

ƒ Hard Link

ƒ Symbolic (Soft) Link

ƒ Dot and Dot-Dot

ƒ NLS

Contents

Accessing Data

ƒ Overview

ƒ System i Navigator

ƒ i5/OS NetServer

ƒ Virus Scanning

ƒ Traditional IBMi5/OSTM Applications

ƒ APIs

ƒ CL Commands

ƒ Qshell

ƒ FTP

ƒ i5/OS PASE

ƒ IBM Toolbox for Java

File Systems

ƒ Overview

ƒ "root" (/)

ƒ QOpenSys

ƒ User-defined File System (UDFS)

ƒ QSYS.LIB

ƒ QDLS

ƒ QOPT

ƒ QNetWare

ƒ QNTC

ƒ QFileSvr.400

ƒ NFS

ƒ Summary

Page 3: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation4

Concepts

Page 4: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation5

ConceptsStream File

Contains a stream of data

Can be accessed

ƒ At the byte level

ƒ Sequentially or randomly

Examples:

ƒ PC file

ƒ UNIX™ file

ƒ Java™ program

ƒ Image

ƒ Audio

ƒ Video

ƒ Text

ƒ PDF

Page 5: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation6

Directory

Contains a list of objects

Each list element is a "link” (a.k.a. “hard link”)

Each link contains

ƒ Object name

ƒ Some object attributes

ƒ Pointer to the object

Examples:

ƒ “root” (/)

ƒ /QIBM

ƒ /home

Directory

File 1

File 2File 3

File 4

Concepts

Page 6: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation7

Subtree

A directory may contain links to other directories

This results in a tree-like structure called a "subtree"

The top directory is the "root“ of the subtree "root"

Concepts

Page 7: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation8

File System

A subtree having a common set of characteristics

ƒ Case sensitivity

ƒ Name length

ƒ Subtree depth

ƒ Directory

implementation

ƒ Stream file

implementation

Examples:

ƒ "root" (/)

ƒ QOpenSys

ƒ QSYS.LIB

ƒ QDLS

ƒ NTFS

Concepts

Page 8: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation9

Integrated File System

Common"root"

A collection of file systems

Connected together to form a single subtree

Under a common "root"

The set of objects you can access by name under the common "root" is known as a "namespace"

Concepts

Page 9: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation10

Path Name

A name used to locate an object in the integrated file system

Consists of

ƒ A sequence of directory names, known as the "path"

ƒ Separated by a slash ‘/’ (Note: Integrated file system “LG” path names provide delimiter flexibility)

ƒ Followed by the object name

Examples:/

/home/Mary/QIBM/ProdData/Java400/Hello.class

An absolute path name begins with '/'

ƒ Also known as the "full path name“ or “fully qualified path name”

'/' represents the "root" directory

You specify the entire path between the "root" directory and the object

Concepts

Page 10: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation11

A designated directory below which most of your objects are linked

Used as the starting point for relative path names

Relative path names do NOT begin with '/'

Scoped to a job

ƒ All threads in a job share the same current working directory

/A

C

B

D

Absolute path name of object D is /A/B/C/D

If /A/B is the current working directory, the relative path name of object D is C/D

If /A/B/C is the current working directory, the relative path name of object D is D

ConceptsCurrent Working Directory (CWD)

Page 11: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation12

ConceptsEXAMPLE: Why Use a Current Working Directory (CWD)?

/A

C

B

DE

Benefits of Properly Using a CWD:

Can significantly improve performance*

Often makes maintenance and file system usage easier(i.e. Not affected by changes further up the subtree)

CWD = ‘/’

CWD = ‘/A/B/C’

*Measured in lab environments. Actual improvements in customer environments may differ.

Page 12: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation13

A path name that is used to ƒ Initialize the current working directory when a job startsƒ Start path name resolution at a specific directory

Configured in the user profile HOMEDIR parameterƒ Default value is /home/user-profile-nameƒ Doesn't have to exist when the user profile is createdƒ If it doesn't exist when a job starts with that user profile, the current working

directory is set to '/'Represented by the tilde (~) character in a path name

ƒ Must be the first character in the path nameƒ ~/ : The tilde character is replaced with the home directory path nameƒ ~user-profile-name/ : The ~user-profile-name is replaced with the home directory

path name defined for the specified user-profile

User profile JOHN has home directory /home/John, and is the initial job user profile

Specified path name Actual path name~/SourceCode/Hello.C /home/John/SourceCode/Hello.C~John/SourceCode/Hello.C /home/John/SourceCode/Hello.CSourceCode/Hello.C /home/John/SourceCode/Hello.C

ConceptsHome Directory

Page 13: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation14

Hard Link

A connection between a directory and an object

Created when the object is first created

Can add multiple hard links

ƒ Provides multiple names for an object

ƒ Directory and object must be in the same file system

ƒ Not supported by all file systems

ƒ Not supported when the object is a directory

Link count attribute tells how many hard links the object has

1

D

A

C

B

X

Y

2F

3

Concepts

Page 14: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation15

Hard links control the existence of the object

Each hard link is equivalent

ƒ There is no "primary" link

When last hard link is removed, object is destroyed

ƒ Unless it is open.

Then, the object is destroyed after the last close

A

C

B

X A

C

B

X A

C

B

X

Y

A

C

B

X

Y

F

A

C

B

X

Y

FD

Y

F

Hard Link

0123

Concepts

Page 15: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation16

ConceptsEXAMPLE: Why Use Multiple Hard Links?

Benefits of Using Multiple Hard Links:

Easier recovery from accidental deletions(similar to the “recycle bin” concept)

Helps maintain quick and easy object access for different users

A

C

X

B

D

1

Y

2

Page 16: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation17

0

ConceptsEXAMPLE: Another Hard Link Benefit

Another Benefit of Hard Links:

Prevent others from accessing an application’s temporary objects

tmp

1

A

Page 17: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation18

Symbolic (Soft) Link /A

B

y

z

An object containing a path name

While resolving a path name, the path name in the symbolic link replaces the symbolic link's name in the path name being resolved

ƒ If the path name in the symbolic link begins with '/', resolution restarts with '/'

Can refer to an object that

ƒ Is anywhere–Same file system–Different file system–Different system

ƒ May not exist when the symbolic link is created

ƒ Can be deleted, even though the symbolic link refers to it

/y/z

OtherNameForZ

/A/B/OtherNameForZ/y/z begins with '/', so resolutionrestarts with '/', resulting in...

/y/z

Concepts

Page 18: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation19

Symbolic (Soft) Link /A

B

y

z

/y

/A/B/OtherNameForY/z

/y begins with '/', so resolutionrestarts with '/', resulting in...

/y/z

An object containing a path name

While resolving a path name, the path name in the symbolic link replaces the symbolic link's name in the path name being resolved

ƒ If the path name in the symbolic link begins with '/', resolution restarts with '/'

Can refer to an object that

ƒ Is anywhere–Same file system–Different file system–Different system

ƒ May not exist when the symbolic link is created

ƒ Can be deleted, even though the symbolic link refers to it

OtherNameForY

Concepts

Page 19: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation20

ConceptsEXAMPLE: Why Use Symbolic (Soft) Links?

Benefits of Using Symbolic (Soft) Links:

Move objects without impacting pathname resolution and applications

Link across file systems and systems (Not supported by hard links)

/A

B

y

/y

y

‘/A/B/Y’

Page 20: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation21

Dot and Dot-Dot

An empty directory has a link count of 2

ƒ One link is the link from its parent directory

Parent directory

1

Dir 1

Child directory

ƒ The other link is the dot link, the link from itself

Useful when you just want to operate on the current working directory

ƒ /a/b/c is the current working directory

ƒ open('.') will open the 'c' directory

ƒ Without the dot link, operating on the current working directory is more difficult

2'.' (dot)

Concepts

Page 21: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation22

Dot and Dot-Dot

Every directory has a dot-dot link that refers to its parent directory

ƒ This link adds one to the parent directory's link count

Used to back up one level from the current working directory

ƒ /a/b/c is the current working directory

ƒ open('..') will open the 'b' directory

ƒ Without the dot-dot link, resolving up a subtree wouldn’t be easy

2 Parent directory'.' (dot)

Dir 1

Child directory2'.' (dot)

'..' (dot-dot)

3

Concepts

Page 22: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation23

National Language Support for Path Names

Input name

Stored in directory

Output name

Names in the "root" (/), QOpenSys, and user-defined file systems are normalized and stored in UTF-16 or UCS-2 Level 1 in the directory

When names are extracted from the directory, they are converted to the CCSID being used by that job, application, or client

This ensures that characters in the names are correct when accessed from clients using different CCSID

This helps when developing global applications

CCSID y CCSID x

UTF-16

.......

.......

.......

......#

.......

.......

.......

.......#.............

..........

.......#..

..........

..........

..........

..........

..........

..........

Concepts

Page 23: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation24

Automatic Stream File Data Conversion

Unicode (UTF-16) Stream File

CCSID 1200

004E004C00530044006100740061002E002E002E

Concepts

US English EBCDICCCSID 37

ASCIICCSID 819

CCSID 37 view of data.

CCSID 819 view of data.

D5D3E2C481A3814B4B4B

4E4C53446174612E2E2E

Page 24: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation25

File Systems

Page 25: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation26

File Systems

A file system is a subtree having a common set of characteristics

The integrated file system provides access to 10 unique file systems

"root" (/) Directory and stream file accessQOpenSys Case-sensitive directory and stream file accessUser-defined Directory and stream file access on auxiliary storage poolsQSYS.LIB Library and traditional i5/OS object accessQDLS Document and folder accessQOPT Optical (CD) accessQNetWare Novell Netware Server access

- Support removed in V6R1QNTC Windows NT™ Server accessQFileSvr.400 i5/OS to i5/OS accessNFS Network File System - UNIX file system access

General

Page 26: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation27

"root"(/)

File Systems"root" ( / )

Supports the following object typesƒ *DIR Directory (two types: *TYPE1 and *TYPE2)ƒ *STMF Stream file (two types: *TYPE1 and *TYPE2)ƒ *SYMLNKSymbolic linkƒ *FIFO First In First Outƒ *SOCKETUNIX-domain (local) socketƒ *BLKSF Block special file (represents a user-defined file system)ƒ *CHRSF Character special file (for i5/OS PASE devices) (Also *CHRSFC)

Contains the "root" directory

Contains all other directories and objects created in its subtree

The anchor for all of the other file systems

Other characteristics

ƒ 255 character object names (between the slashes of a path name)

ƒ Case-insensitive names, like on a PC (a and A are the same object)

ƒ Multiple hard links

Page 27: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation28

"root"(/)

QOpenSys

Located under the /QOpenSys directory

Supports the same object types as the "root" (/) file system

Has the same characteristics as the "root" (/) file system, except

ƒ Names are case-sensitive, like on a UNIX system (a and A are different objects)

–Compatible with UNIX-based open system standards, such as POSIX and XPG

QOpenSys

File Systems

Page 28: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation29

You make them inaccessible (unmount)

User-defined File System (UDFS)

Physically located on auxiliary storage pools (ASPs)…system, user, or independent ASPs

Has the same characteristics as the "root" (/) file system except names can be

ƒ Case-sensitive or

ƒ Case-insensitive...

ƒ Your choice

"root"(/)

images

ASP 2

You create them

images.udfs

You make them accessible (mount)

FYI: Mounting is not automatic. It must be redone after every IPL using the Add Mounted FS (MOUNT) command. Consider adding important mounts to an IPL startup program.

FYI: UDFSs provide many benefits (See Advanced presentation )

File Systems

Page 29: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation30

"root"(/)

QSYS.LIB

Located under the /QSYS.LIB directory

Provides access to objects in libraries in the system ASP and user ASPs

Names

ƒ Start with /QSYS.LIB

ƒ Have an object-type extension

Symbolic links can simplify the names

–Example: /TAP01 could be a symbolic link to /QSYS.LIB/TAP01.DEVD

QSYS.LIB

•Supports the following object types•*LIB Library as a directory / QSYS.LIB / ACCOUNTS.LIB•*FILE Database file as a directory / QSYS.LIB / QUSRSYS.LIB / QAEZDISK.FILE•*MBR File member as a stream file / QSYS.LIB / QUSRSYS.LIB / QAEZDISK.FILE / QCURRENT.MBR•*FILE Save file as a stream file / QSYS.LIB / QGPL.LIB / SAV031203.FILE•*USRSPC User Space as a stream file / QSYS.LIB / POLICIES.LIB / WORKSPC.USRSPC•*XXXXX Other types as “native” objects” / QSYS.LIB / TAP01.DEVD

A QSYS.LIB file system is also available on independent ASPs.

File Systems

Page 30: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation31

"root"(/)

QDLS

Located under the /QDLS directory

Provides access to document library objects (DLOs) and PC files in folders

ƒ Folders are directories

ƒ DLOs and PCfiles are stream files

Names are restricted to 8.3 format:

ƒ / QDLS / QFPNTWE / AS4NW.IPS

QDLS

File Systems

Page 31: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation32

"root"(/)

QOPT

Located under the /QOPT directory

Provides access to a System i5 CD-ROM, DVD-ROM, DVD-RAM, or optical media library

The volume is a sub-directory under /QOPT

Directories and files on the optical media show up in a subtree under the volume directory

QOPT

Optical Media or Library

VolumeName

File Systems

Page 32: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation34

"root"(/)

QNTC

Located under the /QNTC directory

Provides access to directories and files managed by a CIFS server

ƒ On a remote PC

ƒ On an IntegratedxSeries™ Server(IXS)

ƒ On i5/OS usingi5/OS NetServer

ƒ On Linux™ Samba

QNTC

Remote PC IXS

File Systems

CIFS – Common Internet File System

Page 33: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation35

"root"(/)

QFileSvr.400

System A's "root" (/) directory

Located under the /QFileSvr.400 directory

Provides access to directories and files managed by another i5/OS operating system

QFileSvr.400

The remote system name is a sub-directory under /QFileSvr.400

The "root" (/) directory and subtree of the remote system can be accessed through the /QFileSvr.400/SystemName/ path name

System BSystem A

System B's "root“ (/) directory

File Systems

Page 34: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation36

"root"(/)

NFS Client

The i5/OS can be an NFS client

Provides access to directories and files managed by another operating system running an NFS server such as i5/OS, Windows™, UNIX, or Linux

RemoteData

The "RemoteData" directory can be almost any directory

Remote system running an NFS Server

File Systems

Page 35: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation37

"root"(/)

NFS Server

The i5/OS can be an NFS server

Provides access to i5/OS directories and files that have been explicitly "exported“ for access byremote NFSclients

Directories /X and /A/B/C have been made available for access by remote NFS clients ("exported")

A

B

C

X

File Systems

Page 36: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation38

Accessing Data

Page 37: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation39

The Integrated File System

Common i5/OS interface to

ƒ Stream files

ƒ Directories

ƒ Subtrees

ƒ File systems

Many kinds of objects

i5/OS "plumbing" that integrates file systems under a common interface

Stored in many kinds of file systems

Overview

Page 38: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation40

Applications / Generic CommandsJava™ / Webserver / WebSphere™/ FTP /

Domino

Logical File System

vnode interface

*i5/OS Support for Windows™ Network Neighborhood and Samba**Includes independent ASP QSYS.LIB file system

i5/OS File Server

(QFileSvr.400, System i

Navigator, Java Toolbox

access)

NFS Server

i5/OS NetServer*

FMS i5/OS APIsUNIX™

APIsi5/OS PASE

QDLSFS

QSYS.LIBFS**

User-Defined FS"root"

(/)FS

QOPTFS

QFileSvr.400Client

FS

QOpenSysFS

NFSClient

FS IntegratedxSeriesServer

QNTC FS

Under Your Kitchen Sink: The IFS “Plumbing”

Page 39: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation42

All ways come through the integrated file system

Accessing DataPC client

- System i Navigator - i5/OS NetServer - iSeries Access

QShell, i5/OS PASE, Java Toolbox applications

Applications (ILE C/C++, RPG, COBOL, CL, etc.)

Remote systems

- i5/OS File Server File System (QFileSvr.400) - Network File System (NFS)

- FTP - QNTC

Page 40: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation43

Accessing DataSystem i Navigator

The graphical user interface (GUI) for managing and administering your i5 systems from your Windows desktop

Typical Tasks:

ƒ Create and remove a directory (folder)

ƒ Copy or move a file, directory, or subtree

ƒ Set up security for a file or directory

ƒ Work with properties of files, directories, and subtrees

ƒ Check out/in a file Control updates to a file

ƒ Determine who is using a file Helps solve “in use” problems

ƒ Determine the open file system objects for a job Helps solve “in use” problems

ƒ Set up file text conversion Conversion ensures data can be accessed globally

ƒ Share a subtree with PC clients Helps people collaborate

ƒ Send a file, directory, or subtree to other systems Helps people collaborate

ƒ Start and end journaling of files or directories Journaling assists in object recovery

ƒ Create, mount, unmount, and delete user-defined file systems (UDFSs) UDFSs allow access to integrated file system objects in auxiliary storage pools (ASPs)

ƒ And much more...

Page 41: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation44

System i Navigator - Explore the system

Page 42: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation45

System i Navigator - Explore File Systems

Page 43: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation46

System i Navigator - Explore the Integrated File System

Page 44: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation47

System i Navigator - Explore the "root" (/) file system

Page 45: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation48

System i Navigator - Explore directory /JJParker

Page 46: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation49

System i Navigator - General properties

Page 47: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation50

System i Navigator - Storage properties

Page 48: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation51

System i Navigator - Use properties

Page 49: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation52

System i Navigator - Security properties

Page 50: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation53

System i Navigator – Edit file

Edit menu option availability is controlled by

“Integrated File System >

Properties”

Page 51: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation54

System i Navigator - Edit file

Page 52: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation55

System i Navigator – Hard Links

Page 53: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation56

System i Navigator – Symbolic Links

Page 54: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation60

Accessing Data

i5/OS NetServer allows Windows clients to access integrated file system subtrees that have been shared

You create a file share using System i Navigator. You specify the

ƒ Name of the share

ƒ Path name of the subtree to be shared

ƒ Type of access you want to allow (read/write or read-only)

ƒ Maximum number of users you want to allow

ƒ Text conversion attributes

You map a drive letter to the share using

ƒ System i Navigator

ƒ Windows Explorer

You can also access the share directly using Windows Explorer without mapping a drive. Direct access is the most secure method.

i5/OS NetServer comes with i5/OS

No additional software needs to be installed on your PC !

* i5/OS Support for Windows Network Neighborhood

i5/OSNetServer

Windows orLinux/Samba Client

i5/OS NetServer *

Page 55: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation61

i5/OS NetServer - Create a file share

Page 56: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation62

i5/OS NetServer - Create a file share

Page 57: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation63

i5/OS NetServer - Create a file share

Page 58: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation64

i5/OS NetServer - View file shares

Page 59: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation65

i5/OS NetServer - Delete the file share

Page 60: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation67

Accessing Data – WRKLNK prompt

Page 61: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation69

Accessing Data - WRKLNK

Option 12 to view the symbolic

link

Page 62: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation70

Accessing Data – Display symbolic link

Page 63: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation84

CL CommandsWRKLNK / DSPLNKEDTF / DSPFCRTDIR / RMVDIRADDLNK / RMVLNKCHGATR / CHGAUT / CHGOWNCPY / MOVWildcard support

More Information...ƒ System i and i5/OS Information Center:Files and file systems >Integrated file system >Access the Integrated File System >Accessing using CL commands -or-Accessing using APIs

APIsIntegrated file system APIs

ƒ open(), read(), write(), close() ...

C / C++ runtime functionsƒ fopen(), fread(), fwrite(), fclose() ...

Available to ILE languagesƒ C / C++ƒ COBOLƒ RPG

Accessing DataTraditional i5/OS Applications

Page 64: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation87

Accessing DataQshell

What is Qshell? Command environment based on POSIX and X/Open standards consisting of 2 parts Part 1 shell interpreter (or qsh) is a program that reads commands from an input

source, interprets each command, and then runs the command using the services of the operating system (Note: qsh is patterned after bash but has fewer options so far…)

Part 2 utilities (or commands) are external programs that provide additional functions and can be quite simple or very complex

Why use Qshell? Provides an extensible command environment nearly identical to UNIX and Linux Manage files in any file system supported by the integrated file system Run threaded programs that do thread-safe I/O to and from an interactive session Write shell scripts that can be run without modification on other systems using a

cross-platform command language Run powerful utilities some of which are not provided via the GUI or CL commands Write your own utilities to extend the functions provided by Qshell

More Information found in the System i and i5/OS Information Center at Programming > Java > Qshell

Page 65: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation89

FTP

Use name format 1 (NAMEFMT 1) to use path names to specify the files being transferred

You must use stream mode (MODE S) and file structure (STRUCT F) when transferring stream files

Can specify how CCSID conversion is to be handled (TYPE C)

The integrated file system limits FTP support to transferring file data only. You cannot use FTP to transfer attribute data.

QSYS.LIB file system considerations

ƒ FTP support is limited to physical file members, source physical file members, and save files. You cannot use FTP to transfer other object types, such as programs (*PGM).

ƒ However, you can save other object types to a save file, transfer the save file, and then restore the objects.

ƒ Recommended that you pre-create the target file when sending to the QSYS.LIB file system

Accessing Data

Page 66: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation90

Allows you to port AIX™ applications to the i5/OS with minimal effort

Provides an integrated runtime environment that allows you to run UNIX applications without the complexity of managing a UNIX system

Uses the integrated file system for data access

More information found in the System i and i5/OS Information Center at Integrated operating environments > i5/OS PASE

i5/OS PASE

Accessing Data

Page 67: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation91

IBM Toolbox for Java

Shipped with iSeries Access for Windows

Provides Java classes for accessing i5/OS resources

ƒ Including the integrated file system

Uses the iSeries Access for Windows Host Servers as access points to the system

More information found in the System i and i5/OS Information Center at Programming > Java > IBM Toolbox for Java

Accessing Data

Page 68: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation92

References

System i and i5/OS Information Center

Your System i and i5/OS information source

http://publib.boulder.ibm.com/iseries/

System i Resource Center

The essential destination for the iSeries community. It gives you access to a wealth of information to help you improve your IT department…and your business.

http://www-03.ibm.com/systems/i/resources/

System i and i5/OS Information Center Integrated file system Topic (Files and file systems > Integrated file system)

File system information (Work with file systems)

NLS (Programming support > Naming and international support)

Integrated file system and System i Navigator (Working with files and folders using System i Navigator)

And much more…

Page 69: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

8 Copyright IBM Corporation, 2008. All Rights Reserved.

This publication may refer to products that are not currently available in your country. IBM makes no commitment to make available any products referred to herein.

IBM Power Systems™

Integrated File System: Fundamentals

Margaret Fenlon

[email protected]

Gateway/400 user group presentation

Page 70: IBM Power Systems ™ Integrated File System: Fundamentals Margaret Fenlon mfenlon@us.ibm.com Gateway/400 user group presentation.

IBM Power Systems

© 2008 IBM Corporation94

8 IBM Corporation 1994-2008. All rights reserved.References in this document to IBM products or services do not imply that IBM intends to make them available in every country.

Trademarks of International Business Machines Corporation in the United States, other countries, or both can be found on the World Wide Web at http://www.ibm.com/legal/copytrade.shtml.

Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo, Celeron, Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both.IT Infrastructure Library is a registered trademark of the Central Computer and Telecommunications Agency which is now part of the Office of Government Commerce.ITIL is a registered trademark, and a registered community trademark of the Office of Government Commerce, and is registered in the U.S. Patent and Trademark Office.UNIX is a registered trademark of The Open Group in the United States and other countries.Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.Other company, product, or service names may be trademarks or service marks of others.

Information is provided "AS IS" without warranty of any kind.

The customer examples described are presented as illustrations of how those customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics may vary by customer.

Information concerning non-IBM products was obtained from a supplier of these products, published announcement material, or other publicly available sources and does not constitute an endorsement of such products by IBM. Sources for non-IBM list prices and performance numbers are taken from publicly available information, including vendor announcements and vendor worldwide homepages. IBM has not tested these products and cannot confirm the accuracy of performance, capability, or any other claims related to non-IBM products. Questions on the capability of non-IBM products should be addressed to the supplier of those products.

All statements regarding IBM future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only.

Some information addresses anticipated future capabilities. Such information is not intended as a definitive statement of a commitment to specific levels of performance, function or delivery schedules with respect to any future products. Such commitments are only made in IBM product announcements. The information is presented here to communicate IBM's current investment and development activities as a good faith effort to help with our customers' future planning.

Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput or performance that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput or performance improvements equivalent to the ratios stated here.

Prices are suggested U.S. list prices and are subject to change without notice. Starting price may not include a hard drive, operating system or other features. Contact your IBM representative or Business Partner for the most current pricing in your geography.

Photographs shown may be engineering prototypes. Changes may be incorporated in production models.

Trademarks and Disclaimers