If using an NVMe initiator to connect to an NVMe target via NVMe-TCP, and the NVMe target node goes offline, resulting in the Paths in the subsystem displayed by nvme list-subsys being empty, how can I delete this subsystem? Or, what parameters should be provided during the connection to handle this situation?
# nvme list-subsys -o json
[
{
"HostNQN":"nqn.2014-08.org.nvmexpress:uuid:a48f0944-3ab0-4e5b-8019-79192500a44e",
"Subsystems":[
{
"Name":"nvme-subsys0",
"NQN":"nqn.2023-01.io.longhorn.spdk:pvc-4aa94de4-2f75-4cbb-855d-3737a488be50-e-0",
"IOPolicy":"numa",
"Paths":[]
}
]
}
]
I've tried the nvme disconnect function, but it doesn't work.
# nvme disconnect -n nqn.2023-01.io.longhorn.spdk:pvc-4aa94de4-2f75-4cbb-855d-3737a488be50-e-0
NQN:nqn.2023-01.io.longhorn.spdk:pvc-4aa94de4-2f75-4cbb-855d-3737a488be50-e-0 disconnected 0 controller(s)
# nvme list-subsys -o json
[
{
"HostNQN":"nqn.2014-08.org.nvmexpress:uuid:a48f0944-3ab0-4e5b-8019-79192500a44e",
"Subsystems":[
{
"Name":"nvme-subsys0",
"NQN":"nqn.2023-01.io.longhorn.spdk:pvc-4aa94de4-2f75-4cbb-855d-3737a488be50-e-0",
"IOPolicy":"numa",
"Paths":[]
}
]
}
]
dmesg
[ 1046.878470] nvme nvme1: failed to connect socket: -110
[ 1046.878493] nvme nvme1: Failed reconnect attempt 10
[ 1046.878496] nvme nvme1: Reconnecting in 2 seconds...
[ 1051.998732] nvme nvme1: failed to connect socket: -110
[ 1051.998750] nvme nvme1: Failed reconnect attempt 11
[ 1051.998752] nvme nvme1: Reconnecting in 2 seconds...
[ 1057.118953] nvme nvme1: failed to connect socket: -110
[ 1057.118978] nvme nvme1: Failed reconnect attempt 12
[ 1057.118981] nvme nvme1: Reconnecting in 2 seconds...
[ 1062.239224] nvme nvme1: failed to connect socket: -110
[ 1062.239255] nvme nvme1: Failed reconnect attempt 13
[ 1062.239258] nvme nvme1: Reconnecting in 2 seconds...
[ 1067.359552] nvme nvme1: failed to connect socket: -110
[ 1067.359578] nvme nvme1: Failed reconnect attempt 14
[ 1067.359581] nvme nvme1: Reconnecting in 2 seconds...
[ 1072.479843] nvme nvme1: failed to connect socket: -110
[ 1072.479869] nvme nvme1: Failed reconnect attempt 15
[ 1072.479872] nvme nvme1: Removing controller...
[ 1072.479893] nvme nvme1: Removing ctrl: NQN "nqn.2023-01.io.longhorn.spdk:pvc-4aa94de4-2f75-4cbb-855d-3737a488be50-e-0"
[ 1072.494892] nvme nvme1: Property Set error: 880, offset 0x14
If using an NVMe initiator to connect to an NVMe target via NVMe-TCP, and the NVMe target node goes offline, resulting in the Paths in the subsystem displayed by
nvme list-subsysbeing empty, how can I delete this subsystem? Or, what parameters should be provided during the connection to handle this situation?I've tried the
nvme disconnectfunction, but it doesn't work.dmesg