View previous topic :: View next topic |
Author |
Message |
Darksidex25 Apprentice
Joined: 27 Feb 2006 Posts: 232
|
Posted: Sat Aug 09, 2008 2:30 pm Post subject: [Problema] Directorio tmp de portage se borra solo (resuelt) |
|
|
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 |
|
|
jgascon Apprentice
Joined: 08 Dec 2006 Posts: 252
|
Posted: Sat Aug 09, 2008 3:29 pm Post subject: |
|
|
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 |
|
|
Stolz Moderator
Joined: 19 Oct 2003 Posts: 3028 Location: Hong Kong
|
Posted: Sat Aug 09, 2008 6:13 pm Post subject: |
|
|
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 |
|
|
Darksidex25 Apprentice
Joined: 27 Feb 2006 Posts: 232
|
Posted: Sun Aug 10, 2008 7:00 pm Post subject: |
|
|
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 |
|
|
JotaCE l33t
Joined: 10 Jul 2007 Posts: 769 Location: SANTIAGO, CHILE!!!
|
Posted: Sun Aug 10, 2008 7:29 pm Post subject: |
|
|
/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 |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Mon Aug 11, 2008 9:26 am Post subject: |
|
|
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 |
|
|
Darksidex25 Apprentice
Joined: 27 Feb 2006 Posts: 232
|
Posted: Wed Aug 13, 2008 9:41 am Post subject: |
|
|
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? _________________ Registered User #422798 - http://counter.li.org |
|
Back to top |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Wed Aug 13, 2008 3:23 pm Post subject: |
|
|
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 |
|
|
Darksidex25 Apprentice
Joined: 27 Feb 2006 Posts: 232
|
Posted: Thu Aug 14, 2008 12:01 pm Post subject: |
|
|
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 |
|
|
Darksidex25 Apprentice
Joined: 27 Feb 2006 Posts: 232
|
Posted: Sun Aug 17, 2008 12:44 pm Post subject: |
|
|
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 |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Tue Aug 19, 2008 3:57 pm Post subject: |
|
|
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 |
|
|
Coghan l33t
Joined: 25 Jul 2007 Posts: 789 Location: Gran Canaria (Spain)
|
Posted: Tue Aug 19, 2008 4:21 pm Post subject: |
|
|
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 |
|
|
gringo Advocate
Joined: 27 Apr 2003 Posts: 3793
|
Posted: Tue Aug 19, 2008 5:11 pm Post subject: |
|
|
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 |
|
|
|