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 […]
FTP

426 Transfer aborted. Data connection closed.

Posted on
When I retrieved a file from a remote host, ftp aborted the transfer immediately….ftp> get alertORCL.log200 PORT command successful.150 Opening data connection for alertORCL.log (3347200 bytes).426 Transfer aborted. Data connection closed.226 Abort successfulAt last, I found the mount point of the local destination folder was full with 100%. I think we all know how to […]
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 […]