2019-04-19 04:29:24 +08:00
|
|
|
==================================
|
2015-04-02 16:11:33 +08:00
|
|
|
Network Block Device (TCP version)
|
|
|
|
==================================
|
2013-02-28 09:05:27 +08:00
|
|
|
|
2015-04-02 16:11:33 +08:00
|
|
|
1) Overview
|
|
|
|
-----------
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2015-04-02 16:11:33 +08:00
|
|
|
What is it: With this compiled in the kernel (or as a module), Linux
|
|
|
|
can use a remote server as one of its block devices. So every time
|
|
|
|
the client computer wants to read, e.g., /dev/nb0, it sends a
|
|
|
|
request over TCP to the server, which will reply with the data read.
|
|
|
|
This can be used for stations with low disk space (or even diskless)
|
|
|
|
to borrow disk space from another computer.
|
|
|
|
Unlike NFS, it is possible to put any filesystem on it, etc.
|
|
|
|
|
|
|
|
For more information, or to download the nbd-client and nbd-server
|
2023-04-11 02:06:11 +08:00
|
|
|
tools, go to https://github.com/NetworkBlockDevice/nbd.
|
2015-04-02 16:11:33 +08:00
|
|
|
|
|
|
|
The nbd kernel module need only be installed on the client
|
|
|
|
system, as the nbd-server is completely in userspace. In fact,
|
|
|
|
the nbd-server has been successfully ported to other operating
|
|
|
|
systems, including Windows.
|
2015-04-02 16:11:34 +08:00
|
|
|
|
|
|
|
A) NBD parameters
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
max_part
|
|
|
|
Number of partitions per device (default: 0).
|
|
|
|
|
|
|
|
nbds_max
|
|
|
|
Number of block devices that should be initialized (default: 16).
|