[PATCH nvme-cli 0/2] add "State" field in command "nvme list"

Chengjike (ISSP) chengjike.cheng at huawei.com
Wed Sep 22 06:11:34 PDT 2021


在 2021/9/17 0:58, Chaitanya Kulkarni 写道:
> On 9/15/21 6:29 AM, chengjike wrote:
>> When NVMe Subsystem is connected with one or more controllers via fabric, such as NVMe-oF over RDMA,
>> if some links are down, some nvme disks on the host are faulty and they won't be deleted immediately.
>> But the "nvme list" command does not show these faulty disks.
>> So add "State" field  in command "nvme list", and display the status of each disk for users.
>> For example:
>> [root at localhost nvme-cli]# nvme list
>> Node        SN                   Model         Namespace Usage                    Format           FW Rev   Status
>> ----------- -------------------- ------------- --------- ------------------------ ---------------- -------- --------
>> nvme0n2     25658552656655456265 Huawei-XSG1   2         2.83  GB /  10.74  GB    512   B +  0 B   1000001  live
>> nvme0n1     25658552656655456265 Huawei-XSG1   1         2.78  GB /  10.74  GB    512   B +  0 B   1000001  faulty
>>
> what if namespace is non NVMeOF ? also you need to make the printing
> status optional.


Sorry for the late reply(we are on vacation in our country).
Yes. If namespace is non NVMeOF, the command of "nvme list"
also displays the status of each disk.




More information about the Linux-nvme mailing list