[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

tar slow on NFS

Posted on 2014-01-01
6
Medium Priority
?
813 Views
Last Modified: 2014-01-21
We have many small files which stored on the NFS side. We want to tar the directory and then move these data to other NFS filesystem after two weeks. Now the problem is that the tar speed is very slow.One directory is 400M. It took 4 minutes to finish the tar command. We have many directories like this. It took a long time to tar all the files. We tested it on 3 servers and the time is almost same. If we move the data to other NFS filesystem, the tar time is reduced dramatically. But the data transferring time from filesystems also took a long time. What should I do ?
0
Comment
Question by:c11v11
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
Gregory Miller earned 1500 total points
ID: 39749856
http://www.cyberciti.biz/faq/howto-use-tar-command-through-network-over-ssh-session/

This will allow the tar command to run on the remote box as a local process and then copy the resulting file where you want it, instead of moving the 400MB worth of raw files across the network and then the resulting compressed version back again.

This could be easily scripted
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 39750921
Check you system and the NFS server network cards speeds and mode. It could be a network interface / card settings issue.
0
 

Author Comment

by:c11v11
ID: 39751114
we tested this tar command on different servers.  If my understanding is right, this should not work for my problem. We have two folders which are both mount at the NFS NAS. We need to tar one of the folders first and then move this tar file to another folder. The problem is that in that folder we have many small files, that took a long time to run the tar command. We really want to get a way to speed up the tar command.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 12

Expert Comment

by:Gregory Miller
ID: 39751190
we tested this tar command on different servers.  If my understanding is right, this should not work for my problem.
Did you try this or did you assume it will not work?

Is the NAS box an actual computer with an operating system on it or one of those off-the-shelf drive sharing devices? If it is a computer, what operating system is it using? If not, then you are correct, it will probably not work and I should have asked my question in advance of the suggestion.
0
 

Author Comment

by:c11v11
ID: 39751260
We are using EMC NAS. I just assume it.  I noticed that I must have another server to run that command # tar zcvf - /wwwdata | ssh root@dumpserver.nixcraft.in "cat > /backup/wwwdata.tar.gz"  Can I use the same server as I am running this command ?   what is the secret behind this  if this is working?   I will try to test it.  Thank you.
0
 
LVL 12

Expert Comment

by:Gregory Miller
ID: 39751272
The secret is that you must be able to ssh into the NAS device and execute the tar command via tunnel. I do not know the EMC product so you may just have to try it to know for certain.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question