Cool Solutions

Utility for creating NSS pool and volume on a particular disk on OES2 Linux Server



By:

October 26, 2010 2:04 pm

Reads: 6053

Comments:0

License:
Free

Download nsspoolvol

Prerequisites

  1. Python 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.)

This tool is used to create NSS pool and volume on a particular device, without the need of going through multiple steps from nssmu utility. This utility initializes the device, allocates half of the device space to a pool and creates a volume in it, all in one step!

It uses Virtual File Services (Originally called Virtual File Services for NetWare) to create the pools and volumes. It also generates the log file (createPoolVol.log), where user can find the exact vfs commands (available via ‘nsscon’ when using ‘nssmu’) executed and their output.

NOTE: Device size under 1GB is not allowed for pool creation.

How to use the utility:

Extract the attached tar (nssPoolVol.tar) in a directory.

#python createPoolVol.py --help
Usage:  -d <device name> -p <pool name> -v <volume name> -s <size of pool>
Options:
-h | --help             Show this help message and exit
-d | --disk             Device on which the pool needs to be created (eg : sda, sdb. 
		     Default value: second device)
-p | --pool             Pool Name (on which pool, volume needs to be created eg: POOL1, POOL2. 
		     Default value: POOL1)
-v | --volume        Volume Name (eg : VOL1, VOL2. 
		     Default value: VOL1)
-s | --size              Size to allocate for pool (Default value : half of the disk size)

Example:

Run “python createPoolVol -d sdb -p POOL1 -v VOL1 -s 2147483648″ from the terminal.

On execution of above command:

  1. sdb device is selected for pool and/or volume creation and initialized if not already.
  2. pool named POOL1 is created on sdb of size 2GB, if another pool of same name does not exist.
  3. volume named VOL1 is created in POOL1, if another volume of same name does not exist.
  4. It also creates a createPoolVol.log file in the current directory for more information on commands executed and their output.
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