1 What: /sys/class/rnbd-client 2 Date: Feb 2020 3 KernelVersion: 5.7 4 Contact: Jack Wang <jinpu.wang@cloud.ion 5 Description: Provide information about RNBD 6 All sysfs files that are not r 7 8 Example:: 9 10 # cat /sys/class/rnbd-clie 11 12 > Usage: echo "sessname=<n 13 > [path=<[srcaddr,]dstaddr 14 > [access_mode=<ro|rw|migr 15 > 16 > addr ::= [ ip:<ipv4> | i 17 18 What: /sys/class/rnbd-client/ctl/map 19 Date: Feb 2020 20 KernelVersion: 5.7 21 Contact: Jack Wang <jinpu.wang@cloud.ion 22 Description: Expected format is the followi 23 24 sessname=<name of the rtrs 25 path=<[srcaddr,]dstaddr> [ 26 device_path=<full path on 27 [access_mode=<ro|rw|migrat 28 29 Where: 30 31 sessname: 32 accepts a string not bigge 33 a given session on the cli 34 I.e. "clt_hostname-srv_hos 35 36 path: 37 describes a connection bet 38 specifying destination and 39 The addresses are to be pr 40 41 ip:<IPv6> 42 ip:<IPv4> 43 gid:<GID> 44 45 for example:: 46 47 path=ip:10.0.0.66 48 49 The single addr is treated as 50 The connection will be establi 51 52 :: 53 54 path=ip:10.0.0.66,ip:10.0. 55 56 First addr is the source addre 57 58 If multiple "path=" options ar 59 will be established and data w 60 the selected multipath policy 61 62 device_path: 63 Path to the block device o 64 relative to the directory 65 'dev_search_path' module p 66 The rnbd_server prepends t 67 with <dev_search_path> and 68 <dev_search_path>/<device_ 69 a /dev/rnbd<N> device file 70 directory and an entry in 71 will be created. 72 73 If 'dev_search_path' contains 74 have different devices namespa 75 the following parameter "dev_s 76 client has this string "sessna 77 will try to open: /run/rnbd-de 78 79 access_mode: 80 the access_mode parameter 81 mapped as "ro" read-only o 82 a device to be exported in 83 access mode has to be spec 84 mode is desired. 85 86 By default "rw" is used. 87 88 nr_poll_queues 89 specifies the number of poll 90 the block-layer will send th 91 For fast network and device 92 IO handling because it saves 93 another process, handling th 94 issuing process. 95 96 Set -1 if you want to set it 97 By default rnbd client creat 98 99 NOTICE: MUST make a unique s 100 101 Exit Codes: 102 103 If the device is already mappe 104 has an invalid format it will 105 be found on the server, it wil 106 107 Finding device file after mapp 108 ------------------------------ 109 110 After mapping, the device file 111 o The symlink /sys/class/rnbd< 112 points to /sys/block/<dev-name 113 is the same as the device name 114 path the path to the device /d 115 116 * /dev/block/$(cat /sys/class/< 117 118 How to find the <device_id> of 119 section. 120 121 What: /sys/class/rnbd-client/ctl/dev 122 Date: Feb 2020 123 KernelVersion: 5.7 124 Contact: Jack Wang <jinpu.wang@cloud.ion 125 Description: For each device mapped on the 126 /sys/class/rnbd-client/ctl/dev< 127 to the block device created by 128 The <device_id> of each device 129 130 - If the 'device_path' provide 131 they are replaced by exclama 132 <device_id>. Otherwise, the 133 "device_path" provided.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.