24.6 Creating a Hard Link for Testing Purposes

While working on a server, you can use the nss /CreateHardLink command to create hard links for testing purposes only. In a production environment, use the Link (ln) command from a client instead, as described in Section 24.4, Creating a Hard Link Using Ln on an NSS Volume.

IMPORTANT:Do not use the nss /CreateHardLink command in a production environment.

24.6.1 Prerequisites

24.6.2 Procedure

To create a hard link for testing purposes on your server:

  1. At the NSS Console command prompt, enter

    nss /CreateHardLink=PrimaryFilePath|HardLinkFilePath
    

    Replace PrimaryFilePath with the complete volume name, pathname, and filename of the primary file. Replace HardLinkFilePath with the complete volume name, pathname, and filename of the new hard link.

    IMPORTANT:The file paths are specified using the Long name space.

    For example, to create a hard link on a volume named VOL1:

    nss /CreateHardLink=VOL1:\path\file.ext|VOL1:\newpath\newfile.ext