Should NVME_SC_INVALID_NS be translated to BLK_STS_IOERR instead of BLK_STS_NOTSUPP so that multipath(both native and dm) can failover on the failure?

Sagi Grimberg sagi at grimberg.me
Mon Dec 25 03:40:56 PST 2023


> hi all,
> 
> any updates about this case?

I think that we weren't able to find a suitable ANA status that
would cause the host to failover like you expect.

Perhaps nvmet should return NVME_SC_INTERNAL_PATH_ERROR ? Because
if the nvmet ns is disabled, it is somewhat equivalent at least
to some interpretation...

The only part that is unclear is what will the host do if it
gets an ana status but when reading the ana log page it will
see no change...

Did you test the patch I sent in one of the replies before?



More information about the Linux-nvme mailing list