Yes, but only if it really fails.

Commvault should know of the backup cause it's do a backup.
The pre-script is used to configure the DB in freeze mode, so you can take a snapshot or a backup.

If the pre-script is ok it should return 0 so commvault can start the backup process.

After the backup completes commvault will launch the post-script, so the DB can return in normal way (thaw).

If the post-script is ok it must return 0 so commvault can understand that the process is completed.

I think you should reengineer your entire backup process with those steps in mind.

Your scripts are a bit complex but the backup pre-post command should return 0 if completed correctly.

So backup software can understand if the pre-command (preparation for backup) is completed ok.
If return code is 0 the backup can start saving data.
When backup completes commvault will start the post command.

Also the post command should return 0 if completed correctly.

In your script maybe it's better you should specify exit 0 when needed.

As mentioned by @Brett Saviano the XFS is recommended on Ubuntu, but ext3 and ext4 are supported.
Read notes to choose the better.

LVM is also solid and in large environment, even if it introduce a little overread, it can be usefull in changing disks layout.

You can add space or move data without service disruption.

With FS on whole disks you must copy data files and this must be done with services down.

Good,

so the folder test under tmp is not writable by all. If your script runs under different user and goup (not r00028881) the file could be read and seen but not removed.

You can try to chmod 777 /tmp/test in order to understand if this is the problem.

If you can remove the file after the chmod you must understand who is creating the test folder under /tmp or who is running the script that is unable to remove the file.

Regards

 Ambrogio

Hello Token,

this cannot be the output for your environment.

You are asking (with ls /tmp/test.txt -lh) to show the file or directory named test.txt in the /tmp folder.
As the result is
-rwxrwxrwx 1 r00028881 r00028881 8 Jan 11 09:56 /tmp/test/test1.txt
it cannot be the answer for the previous command.

So, you should execute those commands:

ls -lad /tmp/test/test1.txt
ls -lad /tmp/test
ls -lad /tmp

Copy and paste the output so we can understand better the folders content.

Regards

 Ambrogio