Cool Solutions

Enable and Disable Hard Link Attribute for Specified NSS Volume



By:

February 5, 2008 11:28 am

Reads: 6024

Comments:0

License:
Free

Download enableHardLink.pl

Prerequisites

  1. Perl must be installed and running on the Linux server where this utility will be used.
  2. NSS must be installed to get the VFS support.

    (The SDK for this API set can be downloaded from http://developer.novell.com/wiki/index.php/Virtual_File_Services_for_NetWare.)
  3. nsscon must be installed.

Details

This tool can be used to enable and disable Hard Link attribute for specified nss volume.

It uses Virtual File Services (Originally called Virtual File Services for NetWare) and nsscon to enable or disable Hard Link attribute.

How to use the utility:

From a terminal prompt type:

Perl enableHardLink.pl <enter>

Following menu will be displayed:

1. Update Hard Link attribute
2. Exit

A sample output on selecting 1 would be:

<Lists all the volumes existing on the machine and prompts volume name>

----------------------------------------------------------------
Volume Name          : VOL1
Host Pool             : DONOTDELETE
Mount Point          : /media/nss/VOL1
Block Size           : 4096
Enabled Attributes   : <salvage/><backup/>
----------------------------------------------------------------
Volume Name          : VOL2
Host Pool             : DONOTDELETE
Mount Point          : /media/nss/VOL2
Block Size           : 4096
Enabled Attributes   : <salvage/><backup/>
----------------------------------------------------------------
Volume Name          : VOL3
Host Pool             : DONOTDELETE
Mount Point          : /media/nss/VOL3
Block Size           : 4096
Enabled Attributes   : <salvage/><backup/>
----------------------------------------------------------------
Volume Name          : VOL4
Host Pool             : DONOTDELETE
Mount Point          : /media/nss/VOL4
Block Size           : 4096
Enabled Attributes   : <salvage/><backup/>

volume name:
volume name: vol1
Enable or disable Hard Link attribute  (enable/disable):e
---------------------------------------
Modifying Volume "VOL1"
VOL1 successfully updated
----------------------------------------

Note: If disable is selected and Hard Link is not enabled for the specified volume then tool will prompt Hard Link not enabled for the specified volume.
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS