March 28, 2012

opatch ran very slow

When perform a PSU patch activity, a mate told me that his patching seems not progress. It hangs at:
Backing up files...
Applying interim patch '12827731' to OH '/prod/grid/'

And it already hung there for 30 minutes.
The log file is:

Checked the logile and found that it was doing backup:
[Mar 24, 2012 10:01:39 PM] OPatch detected ARU_ID/Platform_ID as 226
[Mar 24, 2012 10:01:39 PM] Start saving patch at Sat Mar 24 22:01:39 EDT 2012

Go to check the opatch backup directory $ORACLE_HOME/.storage_patch:
oracle $ pwd
oracle $ ls -ltr
drwxr-xr-x 4 oracle oinstall 4096 Mar 24 22:40 usm

That timestamp is newest which means the patching do be in progress.
Then why it is so slow?
After checking find that the patch file is located on an NAS mount point, and the speed from the NAS to local filesystem is very slow.
Even copy and 200mb file cost 6 minutes.
After moved the PSU zip file to local file system, and un-compress there, and then do the patch, it turned out to be very fast, finished in a few minutes.


Post a Comment