# Error Creating Snapshots with rocketduck/csi-plugin-nfs

**URL:** <https://discuss.hashicorp.com/t/error-creating-snapshots-with-rocketduck-csi-plugin-nfs/68734>\
**Category:** Nomad\
**Created:** [July 19, 2024, 10:06pm UTC](https://discuss.hashicorp.com/t/error-creating-snapshots-with-rocketduck-csi-plugin-nfs/68734 "2024-07-19T22:06:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YupaTT](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/yupatt/32/42056_2.png) [@YupaTT](https://discuss.hashicorp.com/u/YupaTT)\
**Post date:** [July 19, 2024, 10:06pm UTC](https://discuss.hashicorp.com/t/error-creating-snapshots-with-rocketduck-csi-plugin-nfs/68734/1 "2024-07-19T22:06:36Z")

</div>

Hello everyone,

I’m encountering an issue when trying to create snapshots using the `rocketduck/csi-plugin-nfs` CSI plugin for NFS in Nomad. Despite correctly configuring both the controller and the plugin node, I receive the following error when attempting to create a snapshot of a volume:

```auto
Error snapshotting volume: Unexpected response code: 500 (1 error occurred: * plugin "nfs-data" does not support snapshot)

```

**Configuration Details:**

1. **CSI Controller Configuration:**

```auto
job "storage-controller" {
  datacenters = ["dc1"]
  type = "service"

  group "controller" {
    task "controller" {
      driver = "docker"

      config {
        image = "registry.gitlab.com/rocketduck/csi-plugin-nfs:0.7.0"

        args = [
          "--type=controller",
          "--node-id=${attr.unique.hostname}",
          "--nfs-server=192.168.59.206:/srv/data", 
          "--mount-options=defaults",  
        ]

        network_mode = "host"  

        privileged = true
      }

      csi_plugin {
        id = "nfs-data"
        type = "controller"
        mount_dir = "/csi"
      }

      resources {
        cpu = 500
        memory = 256
      }

    }
  }
}

```

1. **CSI Node Configuration:**

```auto
job "storage-node" {
datacenters = ["dc1"]
type = "system"

group "node" {
  task "node" {
    driver = "docker"

    config {
      image = "registry.gitlab.com/rocketduck/csi-plugin-nfs:0.7.0"
      args = [
        "--type=node",
        "--node-id=${attr.unique.hostname}",
        "--nfs-server=192.168.59.206:/srv/data", 
        "--mount-options=defaults", 
      ]

      network_mode = "host"  

      privileged = true
    }

    csi_plugin {
      id = "nfs-data" 
      type = "node"
      mount_dir = "/csi"
    }

    resources {
      cpu = 500
      memory = 256
    }

  }
}
}

```

1. **Command Executed:**
  - The command used to create the snapshot is:

```bash
sudo nomad volume snapshot create volumen-postgres40 test-snapshot

```

**Problem Description:**  
The error message indicates that the `nfs-data` plugin does not support snapshot functionality. This suggests that snapshot support may not be implemented in the CSI plugin I am using.

I’m new to Nomad and am trying to learn it. I would appreciate any help or guidance, as my configurations are quite basic.

Thank you!

---

<div class="post-metadata">

**Author:** ![Kamilcuk](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@Kamilcuk](https://discuss.hashicorp.com/u/Kamilcuk)\
**Post date:** [July 25, 2024, 5:53am UTC](https://discuss.hashicorp.com/t/error-creating-snapshots-with-rocketduck-csi-plugin-nfs/68734/2 "2024-07-25T05:53:32Z")

</div>

Hi, I do not follow. What exactly is the issue? `rocketduck/csi-plugin-nf` is open source, feel free to implement snapshot functionality in it or consider supporting the author of the plugin.
