Cool Solutions

delVolume



By:

March 13, 2008 10:21 am

Reads: 3895

Comments:0

License:
Free

Download delVolume.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.)

Details

This tool can be used to delete:

  1. Specified Volume
  2. Volumes created on particular pool
  3. All Volumes on OES2 Linux server.

It uses Virtual File Services (Originally called Virtual File Services for NetWare) for the deletion of the Volumes

How to use the utility:

From a terminal prompt type:
Perl delVolume.pl <enter>

  1. To Delete Specified Volume
  2. To Delete all Volumes
  3. To Delete volumes created on specified pool
  4. Exit

Select action:

A sample output on selecting 1 would be:

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

Select action: 1
Existing Volumes
---------------------------
TEST
VOL1
VOL2
VOL3
VOL4
VOL5
VOL6
Enter Volume Name:vol1
Deleting Volume : VOL1
-------------------------------------
volume VOL1 successfully deleted
-------------------------------------

A sample output on selecting 2 would be:
Select action: 2
Deleting Volume : TEST
-------------------------------------
volume TEST successfully deleted
-------------------------------------

Deleting Volume : VOL2
-------------------------------------
volume VOL2 successfully deleted
-------------------------------------

Deleting Volume : VOL3
-------------------------------------
volume VOL3 successfully deleted
-------------------------------------

Deleting Volume : VOL4
-------------------------------------
volume VOL4 successfully deleted
-------------------------------------

Deleting Volume : VOL5
-------------------------------------
volume VOL5 successfully deleted
-------------------------------------

A sample output on selecting 3 would be:
Select action: 3
Pools Existing:
TEST
P1
P2
P3
Enter the Pool Name: p1
Deleting Volume : VOL1
-------------------------------------
volume VOL1 successfully deleted
-------------------------------------

Deleting Volume : VOL3
-------------------------------------
volume VOL3 successfully deleted
-------------------------------------

Deleting Volume : VOL2
-------------------------------------
volume VOL2 successfully deleted
-------------------------------------

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