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

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


在 2021/9/19 22:05, Sagi Grimberg 写道:
>
>> 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
>> [root at localhost nvme-cli]#
>
> State is too generic, Maybe "Path Access" or something?
> The point here is to provide general feedback for the user to go and
> look in nvme list-subsys?
> .
Yes, I think "Path Access" is better appropriate than "State".

The purpose of this patch is to improve usability for users.
Indeed, when some links are down, We run "nvme list" and "nvme list-subsys"
to determine whether the disk is faulty or
has been deleted(the "nvme list" command does not show faulty disks).
After add "Path Access" field in command "nvme list",
the status of disk will be more intuitive for users
and just only run "nvme list".



More information about the Linux-nvme mailing list