LTO-9 READ_ATTRIBUTE and LOG_SENSE timeout values are too small
Los mantenedores suelen responder en 6 días
@piste-jp ya está trabajando en esto.
Desde el 17/4/2025.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- c
- Área
- operating-systems
Línea de trabajo
Comienza en src/tape_drivers/ibm_tape.c, cerca de la definición del timeout enlazada en el informe, y luego sigue todas las rutas de timeout de READ_ATTRIBUTE y LOG_SENSE para identificar por qué sigue existiendo un timeout de 60 segundos. Reproduce el comportamiento reportado de LTO-9 usando la salida de comandos proporcionada y el escenario de sincronización del medio. Se considera terminado cuando el timeout más largo acordado se aplica de forma consistente y ya no se produce el aborto a los 60 segundos durante la recuperación de la unidad.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Hello! We use LTFS 2.4.7.1 from GitHub (with Phobos) and IBM LTO-9 SAS drives. According to IBM, when a Read Attribute command is issued, the drive might generate an EOD and in our case, the drive was not able to set the write head position to the track (apparently a thing if the tape was calibrated using v21). The drive enters a recovery process of up to 10 x 12 seconds. It looks like in LTFS, the timeout for READ_ATTRIBUTE is hardcoded to 60s which is then too low in this case. IBM told us that "If the command was not aborted, the drive may be able to write the EOD to the tape."
This is why these timeout values should probably be set to either 120s or 132s (IBM did not exactly specify this yet, we're waiting to hear from them).
BTW, I tried to increase the value define here to 120 and recompiled LTFS but unfortunately I am still seeing occasional Read Attribute timeout occurrences still at 60s. I wonder why 60s is still used and what I missed... Any ideas?
[456431.184458] st 1:0:1:0: attempting task abort!scmd(0x000000008b10e4e8), outstanding for 62233 ms & timeout 60000 ms
[456431.184486] st 1:0:1:0: tag#4695 CDB: Read attributes 8c 00 00 00 00 00 00 00 00 09 00 00 00 0d 00 00
To Reproduce
Write files using LTFS 2.4 for example with Phobos (medium synchronization every 500 files / 16 GiB).
Expected behavior
Longer READ_ATTRIBUTE timeout to allow the drive doing its special recovery when an EOD is needed.
Additional context
OS is Rocky Linux 9.5
- Lenguaje dominante
- C
- Estrellas
- 358
- Forks
- 111
- Merge medio
- 5 d 1 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de LinearTapeFileSystem/ltfs
-
ltfs_ordered_copy: copying several files into a directory fails with 'Is a directory' since v2.4.9.0Posiblemente ocupada @MitchelTighe la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
LinearTapeFileSystem/ltfs#661 ·
Los mantenedores suelen responder en 6 días
-
2.4.9.1 mkltfs failedPosiblemente ocupada @madjesc la tomó hace 3 días. AbiertoInvestigating
LinearTapeFileSystem/ltfs#656 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 6 días
-
ltfs/mkltfs segfault when the drive INQUIRY vendor id is not IBM/HP/HPE/QUANTUM (NULL deref in _raw_open)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
LinearTapeFileSystem/ltfs#650 ·
Los mantenedores suelen responder en 6 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
LinearTapeFileSystem/ltfs#647 · 1 comentario ·
Los mantenedores suelen responder en 6 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
LinearTapeFileSystem/ltfs#643 ·
Los mantenedores suelen responder en 6 días
Todos los issues de LinearTapeFileSystem/ltfs
Issues similares
-
Weekly fuzz run failedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
kubernetes-sigs/security-profiles-operator#3597 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
AFLplusplus/AFLplusplus#2903 ·
-
Clean up stale and inaccurate comments in the platform screen and input filesPosiblemente ocupada @RichStephens la tomó hoy. Abierto
Dificultad 2/5 Medio día Aptitud para principiantes 88/100
FujiNetWIFI/fujinet-config#289 ·
Los mantenedores suelen responder en 1 día
-
[raylib] update to 6.2Abiertocategory:port-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
nasa/cFS-GroundSystem#272 ·