Skip to content

exited 1: local erasure endpoints must use distinct physical disks #162

Description

@Nightsee

I have deployed a rustfs tenancy using the rustfs operator, But I am getting the error below, it is preventing the pods from starting.

exited 1: Initializing data directories: Initializing log directory: /logs Starting: /usr/bin/rustfs [FATAL] Server encountered an error and is shutting down: local erasure endpoints must use distinct physical disks; detected shared devices [sdg => /data/rustfs0, /data/rustfs1, /data/rustfs2, /data/rustfs3]. validation diagnostics: [path='/data/rustfs0', canonical='/data/rustfs0', st_dev='8:96', device_ids=[sdg]; path='/data/rustfs1', canonical='/data/rustfs1', st_dev='8:96', device_ids=[sdg]; path='/data/rustfs2', canonical='/data/rustfs2', st_dev='8:96', device_ids=[sdg]; path='/data/rustfs3', canonical='/data/rustfs3', st_dev='8:96', device_ids=[sdg]]. Set RUSTFS_UNSAFE_BYPASS_DISK_CHECK=true only for local testing or CI to bypass this safety check

Note: I am using Directpv as a csi in my cluster to provision the necessary pvs on local disks. I have looked for a way to make directpv distribute the pvs accross disks reliably, but I couldn't find anything really usefull.

I see there in the logs I can skip the check by setting the RUSTFS_UNSAFE_BYPASS_DISK_CHECK=true env variable. But I don't see exactly where on the config.
can you please provide more details on where I should set that ?

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