Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Problema] Directorio tmp de portage se borra solo (resuelt)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
Darksidex25
Apprentice
Apprentice


Joined: 27 Feb 2006
Posts: 232

PostPosted: Sat Aug 09, 2008 2:30 pm    Post subject: [Problema] Directorio tmp de portage se borra solo (resuelt) Reply with quote

Hola,
Llevo unos días experimentando un "extraño suceso", y es que de vez en cuando, y por arte de magia, del directorio que tengo definido en PORTAGE_TMPDIR se borra solo
Este directorio apunta a /usr/portage/tmp, y lo tengo ahí porque /usr/portage está en una partición distinta (ext2 por si hiciera falta el dato).
Es una "nueva característica" de portage? Debo añadirlo a bugzilla o ya hay alguna solución? La búsqueda en bugzilla no me ha dado ningún resultado útil, ni en los foros (pero mis búsquedas siempre dejan mucho que desear, nunca encuentro nada, y siempre está la respuesta).

Un saludo y gracias
_________________
Registered User #422798 - http://counter.li.org


Last edited by Darksidex25 on Sun Aug 17, 2008 12:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
jgascon
Apprentice
Apprentice


Joined: 08 Dec 2006
Posts: 252

PostPosted: Sat Aug 09, 2008 3:29 pm    Post subject: Reply with quote

Mírate la variable wipe_tmp_dirs del /etc/conf.d/bootmisc no vaya a ser que tengas ahí el temporal de portage...
Back to top
View user's profile Send private message
Stolz
Moderator
Moderator


Joined: 19 Oct 2003
Posts: 3028
Location: Hong Kong

PostPosted: Sat Aug 09, 2008 6:13 pm    Post subject: Reply with quote

Si encuentras que el problema está en bootmisc puedes anular el purgado de los temporales estableciendo WIPE_TMP="no" en /etc/conf.d/bootmisc
Back to top
View user's profile Send private message
Darksidex25
Apprentice
Apprentice


Joined: 27 Feb 2006
Posts: 232

PostPosted: Sun Aug 10, 2008 7:00 pm    Post subject: Reply with quote

Gracias por las respuestas.

No parece que sea por ese fichero :-(
Code:

 List of /tmp directories we should clean up
wipe_tmp_dirs="/tmp"

# Should we wipe the tmp paths completely or just selectively remove known
# locks / files / etc... ?
wipe_tmp="YES"


Tengo la impresión de que me está borrando el directorio al hacer el rsync, ahora mismo no puedo comprobarlo, estoy en mitad de un -uDN world, pero ya me la había liado.
_________________
Registered User #422798 - http://counter.li.org
Back to top
View user's profile Send private message
JotaCE
l33t
l33t


Joined: 10 Jul 2007
Posts: 769
Location: SANTIAGO, CHILE!!!

PostPosted: Sun Aug 10, 2008 7:29 pm    Post subject: Reply with quote

/tmp es un enlace que pudiste haber borrado, la pregunta es como restaurarlo? seguro algunos de los maestros nos podran decir.
_________________
La derrota no es motivo de vergüenza si el espíritu sigue sin conquistar!
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Mon Aug 11, 2008 9:26 am    Post subject: Reply with quote

Quote:
Tengo la impresión de que me está borrando el directorio al hacer el rsync


tu mismo lo has dicho, ahí debe estar el problema. Dile a rsync ( a través del make.conf ) que no te elimine ese directorio.

saluetes
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
Darksidex25
Apprentice
Apprentice


Joined: 27 Feb 2006
Posts: 232

PostPosted: Wed Aug 13, 2008 9:41 am    Post subject: Reply with quote

gringo wrote:
Quote:
Tengo la impresión de que me está borrando el directorio al hacer el rsync


tu mismo lo has dicho, ahí debe estar el problema. Dile a rsync ( a través del make.conf ) que no te elimine ese directorio.

saluetes


Y eso como se hace? :oops: :roll:
_________________
Registered User #422798 - http://counter.li.org
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Aug 13, 2008 3:23 pm    Post subject: Reply with quote

ummm, no sé si me he ido de listo ... que pasa si pones los siguiente en tu make.conf :

Code:
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/tmp"


?

saluetes
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
Darksidex25
Apprentice
Apprentice


Joined: 27 Feb 2006
Posts: 232

PostPosted: Thu Aug 14, 2008 12:01 pm    Post subject: Reply with quote

gringo wrote:
ummm, no sé si me he ido de listo ... que pasa si pones los siguiente en tu make.conf :

Code:
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/tmp"


?

saluetes


Por el momento parece que el "emerge --sync" aguanta. Parece que va, lo mantendré vigilado un par de días, a ver qué pasa.

Gracias y un saludo
_________________
Registered User #422798 - http://counter.li.org
Back to top
View user's profile Send private message
Darksidex25
Apprentice
Apprentice


Joined: 27 Feb 2006
Posts: 232

PostPosted: Sun Aug 17, 2008 12:44 pm    Post subject: Reply with quote

gringo wrote:
ummm, no sé si me he ido de listo ... que pasa si pones los siguiente en tu make.conf :

Code:
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/tmp"


?

saluetes


Muchas gracias gringo, parece que todo funciona de maravillas ahora :-)
_________________
Registered User #422798 - http://counter.li.org
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Tue Aug 19, 2008 3:57 pm    Post subject: Reply with quote

me alegro de que te funcione !

Realmente ya ves que tan sólo he añadido --exclude=/tmp al final del comando que portage ejecuta por defecto para sincronizar el árbol.
Te lo comento por si algo cambia en esta rutina en el futuro, si ves que repente portage no sincroniza o empieza a decir cosas raras, lo primero que deberías mirar es esta variable y comprobar la rutina de sincronización de portage ;)

saluetes
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
Coghan
l33t
l33t


Joined: 25 Jul 2007
Posts: 789
Location: Gran Canaria (Spain)

PostPosted: Tue Aug 19, 2008 4:21 pm    Post subject: Reply with quote

Para esto ya existe una variable a añadir en make.conf PORTAGE_RSYNC_EXTRA_OPTS, de esta manera nos olvidamos si hay cambios en el futuro. Además recomiendan no tocar PORTAGE_RSYNC_OPTS.
make.conf.example wrote:
# PORTAGE_RSYNC_EXTRA_OPTS can be used to feed additional options to the rsync
# command used by `emerge --sync`. This will not change the default options
# which are set by PORTAGE_RSYNC_OPTS (don't change those unless you know
# exactly what you're doing).
#PORTAGE_RSYNC_EXTRA_OPTS=""

_________________
Salu2.
Alguien, muy acertadamente, dijo una vez wrote:
'El buen informático es como un bibliotecario, no lo sabe todo, pero sabe donde buscarlo'
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Tue Aug 19, 2008 5:11 pm    Post subject: Reply with quote

Coghan wrote:
Para esto ya existe una variable a añadir en make.conf PORTAGE_RSYNC_EXTRA_OPTS, de esta manera nos olvidamos si hay cambios en el futuro. Además recomiendan no tocar PORTAGE_RSYNC_OPTS.
make.conf.example wrote:
# PORTAGE_RSYNC_EXTRA_OPTS can be used to feed additional options to the rsync
# command used by `emerge --sync`. This will not change the default options
# which are set by PORTAGE_RSYNC_OPTS (don't change those unless you know
# exactly what you're doing).
#PORTAGE_RSYNC_EXTRA_OPTS=""


pues asunto resuelto :)

saluetes
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum