Cool Solutions

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


October 26, 2010 2:04 pm






Download nsspoolvol


  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

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 --help
Usage:  -d <device name> -p <pool name> -v <volume name> -s <size of pool>
-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)


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.
0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Uncategorized

Disclaimer: This content is not supported by Micro Focus. 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.