5 Replies Latest reply: Jan 30, 2014 4:24 PM by Catch~22 RSS

    nfs tuning for tar

    Linux-RAC-Admin

      Hi All,

       

      I am trying to do a quick TAR backup of my Oracle Linux servers (until I can get the Symantec agent).

       

      I am using a script that does a TAR with some excludes  -

       

      tar  -X /apps/system/scripts/bu-excludes.txt -cf "$backupdir/$mybackupname" /

       

      The nfs mount is to a Data Domain appliance -

       

      bkvdd02-3:/backup/bkv/nfs/test/rman /oracle_backups nfs rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp,suid,nolock,noac

       

      The kernel version is - 2.6.18-92.el5

       

      Today it has taken 8 hours to backup 99GB. This seems extremely slow. Perhaps there are better NFS mount options I should be using. The ones I used are being used by Symantec Backup Exec with no issue.

       

      Thanks for your advice!

        • 1. Re: nfs tuning for tar
          Catch~22

          Before tuning NFS you need to find out what the bottlenecks are. Trying to adjust NFS parameters is most likely not going to have the effect you expect. 99 GB in 8 hours is about 200 MB/minute. That’s not exiting, but without knowing what type of network you have, what else is using the network and how busy the server is, it s not possible to say this is bad performance.

           

          Perhaps you can try to backup to a local directory and then copy the file to see if that improves performance or shows where the bottleneck is. Maybe you can backup to a USB drive. What I wonder though is why you have 99 GB of data. A standard new system installation is about 3 GB.

          • 2. Re: nfs tuning for tar
            Linux-RAC-Admin

            Thank you Dude,

             

            I think our network and nfs appliance are not the bottle neck, with a backup agent the throughput is fine and the same server backsup in an hour. That is why I want to look closer at TAR and the NFS options. There is an Oracle home and some export files that I am including in the TAR which accounts for the size.

             

            Michele

            • 3. Re: nfs tuning for tar
              Catch~22

              Was your backup agent backing up the same amount of data, or was it perhps doing an incremental backup or copying disk blocks based on a volume snapshot? It can make a huge difference for data throughput whether you copy a lot of small files ore large files. Configuring options to copy large files may cause overhead for small files and vice versa. For instance, is you network using Jumbo frames? That's why I was suggesting to try tar to a local disk and then to copy the tar archive to see if there is a huge difference.

              • 4. Re: nfs tuning for tar
                Linux-RAC-Admin

                Thanks Dude,

                 

                I did the TAR to local disk and it only tood 45 minutes for the same data. I looked further into the mount options for the NFS mount and I was able to determine that the option noac required for oracle seemed to be the one that caused the slow performance.

                 

                I have created a second NFS mount to use with my TAR.

                • 5. Re: nfs tuning for tar
                  Catch~22

                  Perhaps a good reference: Linux: Tune NFS Performance