AIX FILE COPY


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users AIX FILE COPY
# 1  
Old 07-08-2010
AIX FILE COPY

TAR AND CPIO not quick enough - OS LEVEL 5.2

We need to copy millions of files around 42gb. Ls command does not come back complaining of memory.
A basic copy comes back with i cant read the directory. TAR too slow, left running for 48 hours but killed as users were accessing the system.
Does anyone know if there is a command that can copy this data quickly or is there a script that could be written to assist.

Any help appreciated
# 2  
Old 07-09-2010
I doubt there is a faster tool. If this is a repeated task, maybe think about using the snapshot command to split off a snapshot and get a backup of those files so your production can run undisturbed meanwhile.
# 3  
Old 07-09-2010
We assume you are copying disc-to-disc within the same computer.
Disc mirroring or snapshot solutions are going to be fastest - depends on what type of filesystem this is and whether you have spare discs.


First find out if we can process this filesystem at all and get some stats:
# How big and how many inodes?
df -k /filesystem
# Can we access every inode? Is the number of files similar to "df" ?
find /filesystem -xdev -depth -print | wc -l



Of the unix commands the best combination is "find" piped to "cpio -p". See the "man" pages for both commands. Some versions of "cpio" will not work for large files (check this first on your system).

The copy should not be to a directory under the master. For speed this works best if the copy is on a different filesystem.

Code:
# Example - adjust for your situation and your versions of "find" and "cpio"
master_dir="/master_dir_name"
copy_dir="/copy_dir_name"
cd "${master_dir}"
# Omit -v switch after testing because filename display slows the process.
find . -xdev -depth -print | cpio -pdumv "${copy_dir}"

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

How to copy file from Windows to AIX using SCP?

Hi I'd like to copy file ( or directory ) from a window server to an unix server using scp command, something like this scp -rp admin@10.0.99.99:C:\Documents and Settings\abc.txt /home/oracle/abc.txtI tried testing something like command above but nothing worked. Somebody help !! Thank you (7 Replies)
Discussion started by: bobochacha29
7 Replies

2. Shell Programming and Scripting

how to copy the directory but not copy certain file

Hi experts cp bin root src /mnt but not copy bin/bigfile any help? ( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum) Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies

3. AIX

Mount a SAN LUN which contains clone copy - AIX 6.1

Hello Everyone, Can someone help me to mount a SAN hdisk which contains a clone data copy(san) of the remote server to the another machine. Both servers are running in AIX. Thanks in advance ! Regards, Gowtham.G (3 Replies)
Discussion started by: gowthamakanthan
3 Replies

4. UNIX for Dummies Questions & Answers

AIX File Copy

TAR AND CPIO not quick enough - OS LEVEL 5.2 We need to copy millions of files around 42gb. Ls command does not come back complaining of memory. A basic copy comes back with i cant read the directory. TAR too slow, left running for 48 hours but killed as users were accessing the system. Does... (1 Reply)
Discussion started by: steve connell
1 Replies

5. UNIX for Dummies Questions & Answers

Copy a file from a dvd to the local AIX file system

Hi, I am a newbie to AIX, so please bear with me. I have mounted a dvd drive on AIX. I am trying to copy the file that is on the dvd drive on to the local machine. However, I get an error: cp: c1m_0001.gz: A system call received a parameter that is not valid. Can some one point me to the... (1 Reply)
Discussion started by: anurag1510
1 Replies

6. AIX

Copy command in Aix for Symbolic Links

I need to copy a directory from a production system to a test system on the same Aix server. However I need to ensure that the soft links are preserved as part of the copy ( therefore I guess the cp command is not the way to go ) What command can I use in Aix to achieve this copy ? thanks in... (2 Replies)
Discussion started by: jimthompson
2 Replies

7. UNIX for Dummies Questions & Answers

Copy/Paste text as commands in AIX

Hello, I'm absolutely new to this world... but I've a problem with a terminal connected via PuTTY (or Termlite) to an AIX 5.1 application. The problem: I need to paste from clipboard a text containing both input text strings and special keys as ESC, Arrows and so on, to execute in the AIX... (1 Reply)
Discussion started by: Daniele11
1 Replies

8. AIX

Need basic disk copy routine for AIX 3

I'm using AIX 3 on IBM PowerStation 520's in a couple of flight simulators where I work. I recently upgraded our disk systems from three 355Mb disks to single 2GB flashdisks. The disk backup utility provided by the manufacturer will only copy 355Mb disks. I need a basic disk copy routine... (0 Replies)
Discussion started by: tekmeister
0 Replies

9. UNIX for Advanced & Expert Users

remote file copy across 2 systems (AIX and SCO)

Hello, Pls i need to copy some data from AIX Unix 4.3 to a SCO Openserve 5.0.5 using rcp command. But i keep on having permission error. WHAT IS THE SOLTION OR WHAT COMMAND CAN I USE AGAIN (4 Replies)
Discussion started by: aji
4 Replies
Login or Register to Ask a Question