Related doc:
https://longhorn.io/docs/1.10.0/v2-data-engine/features/
Tests Prerequisite
- Load the kernel modules on the each Longhorn node
modprobe uio modprobe uio_pci_generic modprobe vfio_pci modprobe nvme-tcp
Test Items
1. Support both AMD64 and AMD64
2. Block disk management
3. Orphaned replica management
Creating a v2 Orphan Replica in Longhorn
-
Execute the
go-spdk-helper
Command in the Instance Manager Pod:- Use the following
kubectl
command to execute thego-spdk-helper
tool directly within the specified instance manager pod. This command will create a new logical volume (LVOL) in the desired logical volume store (LVSTORE). - Command syntax:
kubectl -n longhorn-system exec -it <instance-manager-pod-name> -- /bin/bash -c "go-spdk-helper lvol create --lvs-name <DISK_NAME> --lvol-name <LVOL_NAME>-r-xxxxxxxx --size <LVOL_SIZE_IN_MIB>"
- Replace the placeholders with your specific values:
<instance-manager-pod-name>
: The name of your instance manager pod.<DISK_NAME>
: The name for the disk on the node.<LVOL_NAME>
: The name of the volume where the replica will be created.<LVOL_SIZE_IN_MIB>
: The size of the logical volume in MiB.
- Use the following
-
Example:
- Here’s an example where an LVOL named
test001
is created in the LVSTOREdisk-2
with a size of12400
MiB:kubectl -n longhorn-system exec -it instance-manager-cddd0dac94705fc3e267c2e157224257 -- /bin/bash -c "go-spdk-helper lvol create --lvs-name disk-2 --lvol-name test001-r-xxxxxxxx --size 12400"
- Here’s an example where an LVOL named
-
Verify the Creation:
- After executing the command, you should receive a JSON output similar to the following:
{ "alias": "disk-2/test001-r-xxxxxxxx", "uuid": "f4fa5b01-5171-4eaf-bf46-e62ea7236784" }
- This output confirms that the LVOL was successfully created with the specified alias and UUID.
- After executing the command, you should receive a JSON output similar to the following:
4. v2 volume live upgrade for data plane
Note:
In this item, it should be excluded.
Ref: https://github.com/longhorn/longhorn/issues/6001#issuecomment-2272532533