EXEC error

Hi,

In my script i need to output the STDOUT and STDERR messages to a log file.

my code is as below.

------------------------------------------------------------------------
LogDate=`date "+%Y%m%d"`
LogDirectory=`grep -w LogDirectory ${ParameterFile}|cut -d "=" -f2`
LogFileName="${LogDirectory}/${LogDate}.txt"

exec >${LogFileName}
exec 2>${LogFileName}
------------------------------------------------------------------------

When i run the script it is giving the error as
A file or directory in the path name does not exist.
script.sh[64]: /projects/logs/20081113.txt: 0403-005 Cannot create the specified file.

I have access to create the files in /projects/logs location. I tried manually by creationg the files and sucessfull. But when i try to create a log file by running the script it is giving the error.

Any ideas please?

Thanks,
Raamc.

HI what is your OS. Are you using any kind of LVM or Raid. if so is the metadata for the lvm groups consistent.
(if you have your root partition on an lvm group as well, you may have to perform a complete reboot to fix this.)
try unmounting and remounting the affected partition