Storage Software
1753809 Members
8728 Online
108805 Solutions
New Discussion юеВ

unable to execute SSSU scripts

 
riyan
Frequent Advisor

unable to execute SSSU scripts

Hi,
We have EVA 4400 storage configured with split mirror backup.earlier we were using RSM for the SMB but due to some host agent issue in the SLES 10 server we have decided to do this with SSSU.So we need to execute these SSSU scripts from a shell script.But when i ran the shell scripts in the server i am getting following error in the screen but the Fracturing,Presenting and mounting to the backup server is working.

erpbk101:/usr/local/bin/bcv # ./SAP-SPLIT.sh
./SAP-SPLIT.sh: line 1: SSSU: command not found
starting mount
./SAP-SPLIT.sh: line 3: #INFO: command not found

because of this error DB backup job fails.I have attached the SAP-SPLIT.sh scripts here.Please help.Thanks.

 

P.S. This thread has been moved from Disk Array to HP Storage System Scripting Utility (SSSU). -HP Forum Moderator

8 REPLIES 8
susanta_dutta
Trusted Contributor

Re: unable to execute SSSU scripts

Hi Riyan,

Looks like the file /usr/local/bin/bcv/sssu does not exist. Please re-check

Regards
Susanta
riyan
Frequent Advisor

Re: unable to execute SSSU scripts

SSSU binary file is in /usr/local/bin/bcv.Even with this error SSSU executing the commands in from text file.but with this error also.Following is the ll output from bcv location.Can this something to do with file permission?

erpbk101:/usr/local/bin/bcv # ll
total 5508
-rw-r--r-- 1 root root 933 Mar 23 14:22 Fracture-and-Present.txt
-rw-r--r-- 1 root root 429 Mar 22 19:22 Resync-and-Unpresent.txt
-rwxrwxr-x 1 root root 238 Mar 24 16:06 SAP-SPLIT.sh
-rwxr-xr-x 1 root root 118 Mar 24 14:57 SAP-SPLIT.sh.cp
-rwxrwxr-x 1 root root 189 Mar 24 16:06 SAP-SYNC.sh
-rwxr-xr-x 1 root root 113 Mar 24 14:57 SAP-SYNC.sh.cp
drwx------ 2 root root 4096 Mar 24 11:48 logs
-rwxr-xr-x 1 root root 1416 Mar 22 17:24 mount.sh
-rwxr-xr-x 1 root root 5580733 Mar 22 15:28 sssu
-rwxr-xr-x 1 root root 77 Mar 24 11:39 test.sh
-rw-r--r-- 1 root root 73 Mar 24 11:27 test.txt
-rwxr-xr-x 1 root root 348 Mar 22 17:24 umount.sh
Uwe Zessin
Honored Contributor

Re: unable to execute SSSU scripts

I think you want to remove the backticks (`) from your script.
.
riyan
Frequent Advisor

Re: unable to execute SSSU scripts

Hi Uwe Zessin,

I have to use back ticks.Otherwise shell will trying to interpre each word a separate command.Now the whole line is taken as a single command.
Pieter 't Hart
Honored Contributor

Re: unable to execute SSSU scripts

Hi rivan,
I have little experience with sssu.
But I notice you do specify the path to the sssu binary, but not the path to command file.

>>> SSSU: command not found <<<
can be read as sssu is started, but either fails to find the Fracture-and-Present.txt file, or this file itslf contains some line that sssu cannot interpret.
riyan
Frequent Advisor

Re: unable to execute SSSU scripts

Thanks a lot for all the helpful comments and suggestions guys.I found out my mistake.I have created the script from windows and uploaded using ftp.This time i just created a shell script using vi and pasted all the commands to new script and executed.It was working fine.Simple mistake took my 2 days :(
Uwe Zessin
Honored Contributor

Re: unable to execute SSSU scripts

Did you use BINARY mode for transfers?
Try with TEXT mode text time ;-)
.
riyan
Frequent Advisor

Re: unable to execute SSSU scripts

hhmm i think so.good lesson any way :)