- Python must be installed and running on the Linux server where this utility will be used.
- 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.
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)
Run “python createPoolVol -d sdb -p POOL1 -v VOL1 -s 2147483648″ from the terminal.
On execution of above command:
- sdb device is selected for pool and/or volume creation and initialized if not already.
- pool named POOL1 is created on sdb of size 2GB, if another pool of same name does not exist.
- volume named VOL1 is created in POOL1, if another volume of same name does not exist.
- It also creates a createPoolVol.log file in the current directory for more information on commands executed and their output.