Skip to content

[Feature request] Support for stratis pool and filesystem #1136

@folliehiyuki

Description

@folliehiyuki

This issue requests the support to provision block devices as stratis pool and mount filesystems in the stratis pool as xfs. NixOS provides basic options to configure stratisd (fileSystems.<name>.stratis.poolUuid and services.stratis.enable).

Since stratis is designed to be similar to zfs structurally, the configuration can look like this:

{
  disko.devices = {
    disk = {
      x = {
        type = "disk";
        device = "/dev/sda";
        content = {
          type = "gpt";
          partitions = {
            stratis = {
              size = "100%";
              content = {
                type = "stratis";
                pool = "spool";
              };
            };
          };
        };
      };
      
      stratis-pool.spool = {
        type = "stratis-pool";
        # Options passed to `stratis pool create`
        options = {};
        filesystems = {
          data = {
            type = "xfs";
            mountpoint = "/<some_mount_point>";
            # Options passed to `stratis filesystem create`
            options = {};
          };
        };
      };
    };
  };
}

Ref: https://stratis-storage.github.io/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions