Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jun 2020 09:31:23 +0530
From:      Krishnamraju Eraparaju <ekraju@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   how to set up a nvme target over RAMDISK backend
Message-ID:  <CAC-Y4SRDUOTGcE1qMftmC4qQ4PMeE73EOfb=0ifzSiNba2Z%2Bcg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi All,


Could someone please help me in setting up a nvme target over RAMDISK
backend(or any pseudo disk).

Equivalent in Linux would be as below:

modprobe null_blk
modprobe nvmet
modprobe nvmet_rdma


mkdir /sys/kernel/config/nvmet/subsystems/nvme-ram0
mkdir /sys/kernel/config/nvmet/subsystems/nvme-ram0/namespaces/1

echo -n /dev/ram1
>/sys/kernel/config/nvmet/subsystems/nvme-ram0/namespaces/1/device_path
echo 1 > /sys/kernel/config/nvmet/subsystems/nvme-ram0/attr_allow_any_host
echo 1 > /sys/kernel/config/nvmet/subsystems/nvme-ram0/namespaces/1/enable



Thanks.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAC-Y4SRDUOTGcE1qMftmC4qQ4PMeE73EOfb=0ifzSiNba2Z%2Bcg>