tags:

views:

15

answers:

3

Creating a volume group using mkvg -y trialvg xyz works but
the same line represented like this mkvg -y $vg_name $dev_name in a shell script
causes the following problem :

bash-4.0# ./execute_AIX.sh
Creating VG trialvg with device xyz
Executing Command: mkvg -y trialvg xyz
0519-100 libodm: Cannot open the object class collection file. Check path name and permissions. 0516-307 mkvg: Unable to access Device Configuration Database. Creating VG: Failed

A: 

You may want to use set -x in the script to see what commands get executed.

Roman Cheplyaka
A: 

Your clue is in a portion of the error message: "Check path name and permissions."

There is something different between the environment of your script and your interactive environment. Two likely candidates are a missing shebang (or one that specifies a different shell) or a PATH that differs. Without seeing the script it's difficult to guess.

Dennis Williamson