[Mondo-devel] tmp out of space ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mondo-devel] tmp out of space ?

Rastislav.Piater
Hello All,

we are experimenting with mondoarchive and we always finish with /tmp out of space.
How much space is needed by mondoarchive ?
Any idea how to fix our error ?

====
Our backup script:
   
BYSX0043:~ # cat mondo_mindi_bkp.sh
   #!/bin/bash

   DATE=`date |awk ' {print $3$2$6}'`
   #export TMPDIR="/mnt/hd/tmp"
   /usr/sbin/mondoarchive -OV -i -d /mnt/hd/FS/bysx0043 -p "bysx0043-"$DATE -N  -s 4480m -E "/tmp /mnt /var/log /app/oracle /app/11.2.0"



When we execute this mondo backup. The backup terminated with error message no space on /tmp device


mondoarchive.log:
   afio: "/tmp/mondo.tmp.ycpTf2/tmpfs/284.afio.bz2" [offset 9531m+384k+0]: No space left on device


Our /tmp have 15G:

   BYSX0043:~ # df -h |grep /tmp
   /dev/mapper/vg00-lvtmp                                         15G  3.1G   11G  23% /tmp


When I try to redirect TMPDIR to other location by setting TMPDIR variable... So I have another error.
I mean that it is because I was redirect TMPDIR to the NFS location and there mondo can't create device file with special permission.

mondoarchive.log:
cp: cannot create special file `/mnt/hd/tmp/mondo.tmp.BeRO21/bigdir/dev/boot_device': Permission denied






Thanks in advance!
Rastislav
------------------------------------------------------------------------------

_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel

mondoarchive.7z (87K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] tmp out of space ?

Joe Ross
Have you tried the -T option?

On Tuesday, August 2, 2016, <[hidden email]> wrote:
Hello All,

we are experimenting with mondoarchive and we always finish with /tmp out of space.
How much space is needed by mondoarchive ?
Any idea how to fix our error ?

====
Our backup script:
   
BYSX0043:~ # cat mondo_mindi_bkp.sh
   #!/bin/bash

   DATE=`date |awk ' {print $3$2$6}'`
   #export TMPDIR="/mnt/hd/tmp"
   /usr/sbin/mondoarchive -OV -i -d /mnt/hd/FS/bysx0043 -p "bysx0043-"$DATE -N  -s 4480m -E "/tmp /mnt /var/log /app/oracle /app/11.2.0"



When we execute this mondo backup. The backup terminated with error message no space on /tmp device


mondoarchive.log:
   afio: "/tmp/mondo.tmp.ycpTf2/tmpfs/284.afio.bz2" [offset 9531m+384k+0]: No space left on device


Our /tmp have 15G:

   BYSX0043:~ # df -h |grep /tmp
   /dev/mapper/vg00-lvtmp                                         15G  3.1G   11G  23% /tmp


When I try to redirect TMPDIR to other location by setting TMPDIR variable... So I have another error.
I mean that it is because I was redirect TMPDIR to the NFS location and there mondo can't create device file with special permission.

mondoarchive.log:
cp: cannot create special file `/mnt/hd/tmp/mondo.tmp.BeRO21/bigdir/dev/boot_device': Permission denied






Thanks in advance!
Rastislav

------------------------------------------------------------------------------

_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] tmp out of space ?

Rick Stevens
On 08/04/2016 07:05 AM, Joe Ross wrote:
> Have you tried the -T option?

I concur...use "-T" to specify a path to a directory on a filesystem
with plenty of space to use for temp files.

A number of newer versions of Linux by default now use a ramdisk for
/tmp (Fedora for instance). It's set to suck up 50% of your RAM for
that, so /tmp can only be half your RAM size and, of course, that RAM
is not available for anything else. What a moronic decision! I bought
RAM to run applications, not to have half of it sucked up to support a
ramdisk-based /tmp!

Yes, you can override it and actually use disk for /tmp by doing some
voodoo ("systemctl mask tmp.mount" and rebooting), but you sure as
hell shouldn't have to. The idiots that made this stupid decision
suggest you now use /var/tmp for temp files, but 99% of applications
out there (including Mondo) are written to use /tmp and just "break"
because of this. Fortunately, Mondo does have the "-T" option, but many
apps do not.

If you're stuck with this ramdisk /tmp, then I'd suggest adding "-T
/var/tmp" to your command line.

> On Tuesday, August 2, 2016,
> <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hello All,
>
>     we are experimenting with mondoarchive and we always finish with
>     /tmp out of space.
>     How much space is needed by mondoarchive ?
>     Any idea how to fix our error ?
>
>     ====
>     Our backup script:
>        BYSX0043:~ # cat mondo_mindi_bkp.sh
>        #!/bin/bash
>
>        DATE=`date |awk ' {print $3$2$6}'`
>        #export TMPDIR="/mnt/hd/tmp"
>        /usr/sbin/mondoarchive -OV -i -d /mnt/hd/FS/bysx0043 -p
>     "bysx0043-"$DATE -N  -s 4480m -E "/tmp /mnt /var/log /app/oracle
>     /app/11.2.0"
>
>
>     When we execute this mondo backup. The backup terminated with error
>     message no space on /tmp device
>
>     mondoarchive.log:
>        afio: "/tmp/mondo.tmp.ycpTf2/tmpfs/284.afio.bz2" [offset
>     9531m+384k+0]: No space left on device
>
>     Our /tmp have 15G:
>
>        BYSX0043:~ # df -h |grep /tmp
>        /dev/mapper/vg00-lvtmp                                        
>     15G  3.1G   11G  23% /tmp
>
>     When I try to redirect TMPDIR to other location by setting TMPDIR
>     variable... So I have another error.
>     I mean that it is because I was redirect TMPDIR to the NFS location
>     and there mondo can't create device file with special permission.
>     mondoarchive.log:
>     cp: cannot create special file
>     `/mnt/hd/tmp/mondo.tmp.BeRO21/bigdir/dev/boot_device': Permission denied
>
>
>
>
>
>     Thanks in advance!
>     Rastislav
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Mondo-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/mondo-devel
>


--
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    [hidden email] -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-               500: Internal Fortune Cookie Error                   -
----------------------------------------------------------------------

------------------------------------------------------------------------------
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] tmp out of space ?

Bruno Cornec-4
In reply to this post by Rastislav.Piater
[hidden email] said on Tue, Aug 02, 2016 at 03:25:29PM +0200:
>   /usr/sbin/mondoarchive -OV -i -d /mnt/hd/FS/bysx0043 -p
>"bysx0043-"$DATE -N  -s 4480m -E "/tmp /mnt /var/log /app/oracle
>/app/11.2.0"

In addition to what was said:

-E uses | separated path since quite some time now.
-E "/tmp|/mnt|/var/log|/app/oracle//app/11.2.0" e.g.

Bruno.
--
Open Source Profession, WW Linux Community Lead     http://www.hpintelco.net
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
FLOSS projects:    http://mondorescue.org         http://project-builder.org
Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

------------------------------------------------------------------------------
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
Loading...