Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
muniraju_h
Explorer

Small tips matter a lot !

We had a situation where 2 TB of database (data files) needed to be copied between filesystems.

 

Traditional linux cp command used to take 7 hours, even when multiple cp processes were fired in background with nohup.

 

Necessity forced me to explore and I hit two links.

http://www.4bcj.com/post/2008/01/Fast-File-Copy---Linux!.aspx

http://en.gentoo-wiki.com/wiki/Fast_Copy

 

 

I am supposed to copy /oracle/S1Q/sapdata1.....sapdata10 to  /oracle/S1X/sapdata1.....sapdata10

They are both located on the same host.

 

Logged in as oras1x (owner of S1X database)

     cd /oracle/S1Q

     nohup tar -Sc sapdata1/ | tar -C /oracle/S1X / -xv &

     nohup tar -Sc sapdata2/ | tar -C /oracle/S1X / -xv &

     nohup tar -Sc sapdata3/ | tar -C /oracle/S1X / -xv &

     nohup tar -Sc sapdata4/ | tar -C /oracle/S1X / -xv &

     nohup tar -Sc sapdata5/ | tar -C /oracle/S1X / -xv &

     nohup tar -Sc sapdata6/ | tar -C /oracle/S1X / -xv &

     nohup tar -Sc sapdata7/ | tar -C /oracle/S1X / -xv &

     nohup tar -Sc sapdata8/ | tar -C /oracle/S1X / -xv &

     nohup tar -Sc sapdata9/ | tar -C /oracle/S1X / -xv &

     nohup tar -Sc sapdata10/ | tar -C /oracle/S1X / -xv &

 

Monitored the copy speed every 60 seconds.

The average speed was 12.6 GB per minute.

The peak speed it touched once was 56.57 GB per minute.

The lowest speed was 5.86 GB per minute.

 

The copy was completed in 3 hours.

 

Below is the graph :-

 

Hope this helps someone with similar requirement.

 

Good Luck !

4 Comments