How can I create a soft link(symbolic link) under /sys/kernel/config/nvmet/ports?

Viewed 331

Since I am trying to configure the NVMet-RDMA target on the server, I want to create a symbolic link by the following command(according to https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_storage_devices/overview-of-nvme-over-fabric-devicesmanaging-storage-devices#setting-up-nvme-rdma-target-using-nvmetcli_nvme-over-fabrics-using-rdma):

sudo ln -s /sys/kernel/config/nvmet/subsystems/testnqn   /sys/kernel/config/nvmet/ports/1/subsystems/testnqn

but this command returns errors like "argument invalid". What should I do?

1 Answers

don't put the name of the file in the target link argument:

sudo ln -s /sys/kernel/config/nvmet/subsystems/testnqn   /sys/kernel/config/nvmet/ports/1/subsystems/

it will have the same name of the original.

Related