Skip to content

Prevent NVMe-oF boot devices from being removed by disconnect-all #2913

@johnmeneghini

Description

@johnmeneghini

On systems that boot from SAN over NVMe-TCP or NVMe-FC, it is quite easy to make the system inoperable by issuing a 'nvme disconnect-all". For instance, after issuing the disconnect on a system which boots over NVMe-FC, the console reports the following:

[  103.827323] block nvme1n1: no available path - failing I/O 
[  103.827337] nvme1n1p4: writeback error on inode 67250623, offset 90112, sector 59489176 
[  103.827342] block nvme1n1: no available path - failing I/O 
[  103.827346] nvme1n1p4: writeback error on inode 67250623, offset 94208, sector 59489184 
[  103.832144] XFS (nvme1n1p2): Block device removal (0x20) detected at fs_bdev_mark_dead+0x43/0x60 (fs/xfs/xfs_super.c:1179).  Shutting down filesystem. 
[  103.832152] XFS (nvme1n1p2): Please unmount the filesystem and rectify the problem(s) 
[  103.832200] block nvme1n1: no available path - failing I/O 
[  103.832204] XFS (nvme1n1p4): log I/O error -5 
[  103.832206] XFS (nvme1n1p4): Filesystem has been shut down due to log error (0x2). 
[  103.832207] XFS (nvme1n1p4): Please unmount the filesystem and rectify the problem(s). 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions