LinearTapeFileSystem / LinearTapeFileSystem/ltfs

PR key as option?

Open
#563 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C
Stars
352
Forks
110
Avg merge
2h 50m
Merged PRs (30d)
2

Description

We are trying to run LTFS in k8s pod, the IP of pod changes once the pod is recreated. The problem we hit is, when a POD is not stopped gracefully such as the node that running the POD hit a power outage, when this node is power back on, the LTFS that running in the recreated POD can not mount the tape, because the persistent reservation that placed by previous POD is IPv4 address of previous POD.

If we can pass key as command line option or an env var such as "LTFS_SG_PR_KEY", we can obtain the IP of node via downward API of k8s, so that we can mount the same tape in the same drive as previous POD since we have the same PR key as the one set in previous mount.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing where LTFS sets the persistent-reservation key during tape mounting and how command-line options or environment variables are parsed. Done means a caller can provide the key through the proposed option or LTFS_SG_PR_KEY and a recreated Kubernetes pod can mount the same tape and drive with that key.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.