Abhimanya,
Hi, good day to you.
In addition to the comments already posted bear in mind the move from VIOS v2 to VIOS v4 is a 2-stage affair. First you need to complete the v2 to v3 piece and then repeat the process for v3 to v4 (v4.1.1.10 being the current latest).
You might want to also consider how you want to safeguard any existing scripts you may have loaded on the existing VIOS as the VIOSUPGRADE command does NOT, automatically, copy these across.
At a high level you might like to consider:
1. Capture evidence of your existing environment -- search for Blogs by @Jaqui Lynch as she has a wealth of knowledge and experience
2. Decide which (configuration) files, if any, you want to have the VIOSUPGRADE command save (things like /etc/hosts, /etc/resolv.conf, etc., etc.) and create a file containing each file you want "saved" on a separate line -- these "saved files" will be placed in /home/padmin/backup_files
3. Consider saving off (to a .tar on a different system) all/any scripts you may have loaded on the existing VIOS for future restoration as these DO NOT get carried forwards by the VIOSUPGRADE command
4. Complete all the pre-IOS upgrade tasks like unmirroring rootvg
5. Upgrade (VIOSUPGRADE) from v2 to v3
6. As v3 is "just" a temporary position you can proceed with re-running the upgrade (VIOSUPGRADE) from v3 to v4 (4.1.1.10 flash ISO is available)
7. With the upgrade to v4 complete, ensure you apply the latest versions/fixes for
- rpm.rte
- OpenSSL
- OpenSSH
- Python
- Java
8. Restore your "saved" files from /home/padmin/backup_files
9. Restore you "saved" scripts from the .tar you created
10. Apply any final iFixes for VIOS v4
11. Check/configure things like (again @Jaqui Lynch has loads of excellent guidance on this)
- Swap space
- Filesystem sizes
- crontab entries
12. Now you're "on" VIOS v4 you can also run
$ updateios -remove_outdated_filesets
$ updateios -rmlang -preserve xx_YY (where xx_YY might be en_US)
13. Complete any outstanding post-IOS upgrade tasks like re-mirroring rootvg etc.
14. Re-capture the "post environment" evidence so you have a clear "before" and "after" snapshot
15. Re-boot and confirm all is looking good
Hope the above is of some help.
Many thanks, Steve