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.
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.
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.
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)
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)
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)
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)
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)
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)
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)
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)
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)