From 352ab9b5f03863b7a929ed169ab0f28326f4d49f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 27 Mar 2022 01:00:19 +0800 Subject: [PATCH] doc/dpdk: reword the root access part the root access to system is not a must have for running a DPDK application. so reword the "Configuring OSD DPDKStack" section. also, manually editing /etc/passwd is not encouraged, so use "usermod" instead. to add a directory after user's command interpreter in /etc/passwd does not make sense. see PASSWD(5). so drop the paragraph on editing /etc/passwd. Signed-off-by: Kefu Chai --- doc/dev/dpdk.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/dev/dpdk.rst b/doc/dev/dpdk.rst index 7c87931b4055e..cdc31a7c65255 100644 --- a/doc/dev/dpdk.rst +++ b/doc/dev/dpdk.rst @@ -48,11 +48,13 @@ Binding NICs to DPDK Applications: Configuring OSD DPDKStack ========================== -The DPDK RTE initialization process requires the root privileges. -Therefore, you need to grant the root permission to ceph. -modify ``/etc/passwd`` to give ceph user root privilege and ``/var/run`` folder write:: +By default, the DPDK RTE initialization process requires the root privileges +for accessing various resources in system. To grant the root access to +the ``ceph`` user: - ceph:x:0:0:Ceph storage service:/var/lib/ceph:/bin/false:/var/run +.. prompt:: bash # + + usermod -G root ceph The OSD selects the NICs using ``ms_dpdk_devs_allowlist``: -- 2.39.5