Closed zheliazkov closed 2 years ago
@ghernadi, fixed in
647cc87eef9013654baf4fd226cdc3012b2e3ebc
, alternate fixee39452e23363fe662b97e1378dda55d651f2f82
,
correction: 647cc87eef9013654baf4fd226cdc3012b2e3ebc
, alternate fix 32b9c9508faecab08c62eb15a37029eb24563daf
,
pick whichever you like better.
Not sure how it ended up there though, because the bug is triggered by currentSelection
being an empty set, and the code path is only entered if currentSelection.size() == replicaCount
, so that implies replicaCount == 0
. Doesn't seem to make a whole lot of sense, something shady might have happened before in the code that defines replicaCount and selects the storage pools. Recommend to double-check those code sections too.
Hello,
I'm running 3 node cluster with Linstor and wanted to remove one of the nodes then add the same node back with a new disks on a bare new lvm group.
That are the steps I did:
linstor n create THE-SAME-NODE-NAME
linstor sp c lvm NODE-NAME-AS-BEFORE THE_SAME_OLD_LINSTOR_SP_NAME LVM_VG_NAME
Currently I'm seeing all the drbd resources in the node but no one of the linstor client commands shows that they exists as diskless.
When I try to do any the following I had no success (unknown exceptions thrown... see below):
linstor r c NODE-NAME-AS-BEFORE RESOURCE-NAME
linstor r c NODE-NAME-AS-BEFORE RESOURCE-NAME --drbd-diskless
linstor resource toggle-disk NODE-NAME-AS-BEFORE RESOURCE-NAME --storage-pool STORAGE-POOL-NAME-AS-BEFORE
The exception is as follows (masked some values as ###):
Also tried to set a storage pool to the DfltRscGrp in which the resource I'm trying to replicate/create is in by running
linstor rg m DfltRscGrp --storage-pool POOL-NAME
but it don't make difference.And something in that context - The
linstor rg m --help
tells that the command should be likelinstor rg m --storage-pool POOL-NAME RESOURCE-GROUP
but in real it works only aslinstor rg m RESOURCE-GROUP --storage-pool POOL-NAME
The questions in my head are:
I can give more info if needed.
Thanks in advance.
BR, Plamen