Solved

K10 Disaster Recovery fills NFS share



Show first post

26 comments

Hello, I have a similar issue with the NFS mount FileStore policy.

I wasnt able to find any documentation relating to this matter, however I discovered that the permissions of the create-repo-pod didn’t seem to match up with my NFS export permissions:

```
cause:
  cause:
    cause:
      cause:
        Code: 1
        Err: {}
      file: kasten.io/k10/kio/kopia/repository.go:528
      function: kasten.io/k10/kio/kopia.ConnectToKopiaRepository
      linenumber: 528
      message: Failed to connect to the backup repository
    fields:
      - name: appNamespace
        value: backup
    file: kasten.io/k10/kio/exec/phases/phase/export.go:210
    function: kasten.io/k10/kio/exec/phases/phase.prepareKopiaRepoIfExportingData
    linenumber: 210
    message: Failed to create Kopia repository for data export
  file: kasten.io/k10/kio/exec/phases/phase/export.go:132
  function: kasten.io/k10/kio/exec/phases/phase.(*exportRestorePointPhase).Run
  linenumber: 132
  message: Failed to copy artifacts
message: Job failed to be executed
fields: []
```

Additionally, changing my NFS directory to be chmod 777 allowed the repository to be created and written, however it writes it as nobody/nogroup. When I attempt to delete snapshots/exports it fails to delete the NFS exported files (due to permissions). Only after chmoding the directory to be 777 did it allow deletion.

Is there any way to configure the `kopia` command to provide gid/uid https://kopia.io/docs/reference/command-line/common/repository-connect-filesystem/?

```
c [0] tcp.0: [1646973928.325036348, {"Command"=>"kopia --log-level=error --config-file=/tmp/kopia-repository --log-dir=/tmp/kopia-log --password=<****> repository connect --no-check-for-updates --cache-directory=/tmp/kopia-cache --content-cache-size-mb=0 --metadata-cache-size-mb=500 --override-hostname=create-repo-pod --override-username=k10-admin filesystem --path=/mnt/data/default/repo/662b98ec-f136-4957-a100-2075a642f128/", "File"=>"kasten.io/k10/kio/kopia/kopia.go", "Function"=>"kasten.io/k10/kio/kopia.stringSliceCommand", "Level"=>"info", "Line"=>132, "Message"=>"kopia command", "Time"=>"2022-03-11T04:45:28.109692023Z", "cluster_name"=>"625a2a72-f41b-4697-8b55-7ab69805021f", "hostname"=>"executor-svc-b549cbdfc-jkvpd", "version"=>"4.5.10"}]
```

 

Comment