AIX

cp: The media surface is damaged

Posted on
Let me rewind the incident.I was copying a pretty big file to another place.While I was waiting for the copying to complete, I found some other IO activities began to execute and affect mine a lot, I saw the size of the target file stopped to grow.After some times, I saw this error message thrown […]
AIX

How to Compare Contents of Two Directories

Posted on
After you copied one directory to another like this:$ cp -rp /path/to/source/directory /path/to/target/or mirrored the source directory to the target one.$ rsync -av /path/to/source/directory/ /path/to/target/directory/You might want to confirm your job is done. Let’s see what we can compare between the two.Total Size$ du -sb /path/to/source/directory; du -sb /path/to/target/directorydu usually returns a proximate result which […]
AIX

How to Monitor Disk IO on AIX

Posted on
For monitoring specific disk (e.g. disk24), you can just use iostat to report the activities every 10 seconds.# iostat -d disk24 10…Disks:        % tm_act     Kbps      tps    Kb_read   Kb_wrtndisk24          74.1     113663.9     234.8    1137776         0disk24 […]
AIX

How to Resolve ORA-27211: Failed to load Media Management Library

Posted on
In an unfamiliar server, I usually test the channel before actually run my RMAN scripts.RMAN> run{  allocate channel c1 type ‘sbt_tape’;  release channel c1;}2> 3> 4> 5> 6>using target database controlfile instead of recovery catalogRMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03009: failure of allocate command on c1 channel at 11/13/2014 19:41:36ORA-19554: error allocating […]