Overview
This script automates the update process
for Storage MnR binary Linux platforms, including RHEL and SLES.
Important Notes
Windows Storage MnR environments are not
updated by this script; they are skipped and must be handled manually.
Prerequisites
Before running the script, ensure the
following on the Storage MnR Environment:
- Root SSH access is available.
- Python is installed on the Storage MnR
environment.
- Use `/bin/bash` to run the script (do not
use `sh`).
- Download the attached `Linux_Storage_MnR_Update.zip`
and copy it to the Storage MnR Environment.
Package Contents
The `Linux_Storage_MnR_Update.zip` archive
includes:
- `Linux_Storage_MnR_Update.sh` – Main
update script
- `README_Linux_Storage_MnR_Update.txt` –
Reference documentation
Script Options
The script supports the following
command-line options:
- `-h` : Display help and exit.
- `-p` : Pre-check VM SSH connectivity before running
update.
- `-i` : Collects the SMR Linux servers and
establishes SSH connection and SMR update preparation.
- `-r` :
Retry SSH connections for failed servers
if failed_servers_file exists and is not empty.
- `-c` :
Removes CSV and log files generated by
the SMR Update script.
Execution Steps
1. SSH to the SMR Environment.
2. Navigate to the directory where
`Linux_Storage_MnR_Update.zip` is copied.
3. Extract the archive:
unzip Linux_Storage_MnR_Update.zip
4. Change to the extracted directory:
cd
Linux_Storage_MnR_Update
5. Copy the Storage MnR update file
`Storage_MnR_6.1.0.0_Linux_64-bit_Update.zip` into Linux_Storage_MnR_Update
directory.
6. Run the following command to gather all
the Linux environments in the SMR setup :
/bin/bash Linux_Storage_MnR_Update.sh -i
7. Review the generated file
`SMRVMList.csv` and verify that all VM entries are correct.
8. Re-run the command to initiate the
upgrade:
/bin/bash Linux_Storage_MnR_Update.sh -i
9. Enter the root passwords for all environments when prompted. For any SSH connection failure refer the SSH Failure Handling
section.
10. The update process will begin. Once
update completed below message will be shown on the prompt:
"SMR
Update script successfully completed on all servers."
Logs
Upgrade logs are available in the SMR
Environment at below location:
/opt/APG/Tools/Update-Manager/9.1
SSH Failure Handling
- If any SSH connections fail during
execution, retry them using:
/bin/bash Linux_Storage_MnR_Update.sh -r
- This will attempt reconnection for
environments listed in `failed_servers.txt`.
Once SSH connections are successful for all
the SMR environments, Resume the update process from Step 8 in the Execution
Steps.
Cleanup
After completing the upgrade, remove
temporary generated files using:
/bin/bash Linux_Storage_MnR_Update.sh -c
This helps keep the environment clean and
organized.