I am trying to automate configuration of servers using racadm using bash script. Approach is simple wherein I am using sshpass to pass the password to ssh and using the racadm. This works for r0 but fail while doing r10 as explained below:
sshpass -p password ssh -o StrictHostKeyChecking=no root@IP racadm storage createvd:RAID.Integrated.1-1 -rl r0 -pdkey:Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
RAC1040 : Successfully accepted the storage configuration operation. To apply the configuration operation, create a configuration job, and then restart the server. To create the required commit and reboot jobs, run the jobqueue command. For more information about the jobqueue command, enter the RACADM command "racadm help jobqueue".
Above command works returning success message. The same when I try doing for r10 it return with an error
sshpass -p calvin ssh -o StrictHostKeyChecking=no root@IP racadm storage createvd:RAID.Integrated.1-1 -rl r10 -sc 2 -pdkey:Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.6:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.7:Enclosure.Internal.0-1:Raid.Integrated.1-1
Output:
cmdstat
status : 2
status_tag : COMMAND PROCESSING FAILED
error : 253
error_tag : COMMAND NOT RECOGNIZED