Restoring Symbolic Links and Determining What a Symbolic Link is Pointing at

Technote (troubleshooting)


Problem(Abstract)

When restoring a symbolic link, the link will restore successfully, even though the target of the link might not exist. This document explains how to find the target of the symbolic link and what to do to re-establish the link.

Resolving the problem

If you restore a symbolic link, you are restoring only the fact that it points to the target object, not the target object itself. If the target object does not exist, the restore operation succeeds. However, if you try to use the symbolic link, you receive an error message, perhaps CPFA0A9 - Object not found. If you restore the target object or create it again, the link between SYMLNK object and the target object is re-established.

Example:

If you have the following:

Symbolic link example, file into directory customer points to the file CUSTMAS present into library CUSTLIB

and you restore the customer object (RST OBJ(’/customer’)), you are restoring only the fact that it points to the CUSTMAS file, not the file itself. If the CUSTMAS file does not exist, the restore operation succeeds. However, if you try to use the customer object, you receive an error message. If you restore the CUSTMAS file or create it again, the symbolic link between customer and the CUSTMAS file is re-established.

To determine what the symbolic link is pointing at, use the WRKLNK DETAIL(*EXTENDED) command on the SYMLNK object. After the Work with Object Links screen, select Option 12, Work with links, on the SYMLNK object. You will see the target in Content of Link.

Historical Number

463926017

Rate this page:

(0 users)Average rating

Document information


More support for:

IBM i
Save/Restore

Software version:

5.4.0, 6.1.0, 7.1.0

Operating system(s):

IBM i

Reference #:

N1014100

Modified date:

2013-01-28

Translate my page

Machine Translation

Content navigation