NetworkBlockDevice / Nbd

Licence: gpl-2.0
Network Block Device

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Nbd

Rucio
Rucio - Scientific Data Management
Stars: ✭ 131 (-51.48%)
Mutual labels:  storage, network
Cash
HTTP response caching for Koa. Supports Redis, in-memory store, and more!
Stars: ✭ 122 (-54.81%)
Mutual labels:  storage, network
Distributedsystem Series
📚 深入浅出分布式基础架构,Linux 与操作系统篇 | 分布式系统篇 | 分布式计算篇 | 数据库篇 | 网络篇 | 虚拟化与编排篇 | 大数据与云计算篇
Stars: ✭ 1,092 (+304.44%)
Mutual labels:  storage, network
React Native Fetch Blob
This project was started in the cause of solving issue facebook/react-native#854, React Native's lacks of Blob implementation which results into problems when transferring binary data.
Stars: ✭ 2,593 (+860.37%)
Mutual labels:  storage, network
Invoke Piper
Forward local or remote tcp ports through SMB pipes.
Stars: ✭ 265 (-1.85%)
Mutual labels:  network
Networkcaptureself
基于OKHttp的实用抓包小工具,你值得拥有
Stars: ✭ 255 (-5.56%)
Mutual labels:  network
Arozos
General purposed Web Desktop Operating Platform / OS for Raspberry Pis, Now written in Go!
Stars: ✭ 252 (-6.67%)
Mutual labels:  storage
Naos
A mildly opiniated modern cloud service architecture blueprint + reference implementation
Stars: ✭ 19 (-92.96%)
Mutual labels:  storage
Awesome Go Storage
A curated list of awesome Go storage projects and libraries
Stars: ✭ 3,224 (+1094.07%)
Mutual labels:  storage
Gnte
simple Global Network Topology Emulator
Stars: ✭ 271 (+0.37%)
Mutual labels:  network
Shrine
File Attachment toolkit for Ruby applications
Stars: ✭ 2,903 (+975.19%)
Mutual labels:  storage
Netshoot
a Docker + Kubernetes network trouble-shooting swiss-army container
Stars: ✭ 3,709 (+1273.7%)
Mutual labels:  network
Embeddedsystem
📚 嵌入式系统基础知识与主流编程语言相关内容总结
Stars: ✭ 266 (-1.48%)
Mutual labels:  network
Network
Low-level networking interface
Stars: ✭ 255 (-5.56%)
Mutual labels:  network
Cotoami
Cotoami is a platform where people can weave a large network of wisdom from tiny ideas.
Stars: ✭ 271 (+0.37%)
Mutual labels:  network
vzvol
vzvol is a general use ZFS zvol management tool, that handles creation, destruction, listing, and formatting with various FSes, in an easy to use single program
Stars: ✭ 27 (-90%)
Mutual labels:  storage
Epiboard
Web Extension — A new tab page extension with material design and useful features 🆕 🎉
Stars: ✭ 262 (-2.96%)
Mutual labels:  storage
Blacknet
Free advanced and modern Windows botnet with a nice and secure PHP panel.
Stars: ✭ 271 (+0.37%)
Mutual labels:  network
Notehub
A pastebin for markdown pages.
Stars: ✭ 262 (-2.96%)
Mutual labels:  storage
Storage
An iOS library for fast, easy, and safe threaded disk I/O.
Stars: ✭ 259 (-4.07%)
Mutual labels:  storage

NBD README

Welcome to the NBD userland support files!

This package contains nbd-server and nbd-client.

To install the package, download the source and do the normal configure/make/make install dance. You'll need to install it on both the client and the server. Note that released nbd tarballs are found on sourceforge.

For compiling from git, do a checkout, install the SGML tools (docbook2man), and then run './autogen.sh' while inside your checkout. Then, see above.

Contributing

If you want to send a patch, please do not open a pull request; instead, send it to the mailinglist

Using NBD

NBD is quite easy to use. First, on the client, you need to load the module and, if you're not using udev, to create the device nodes:

# modprobe nbd
# cd /dev
# ./MAKEDEV nbd0

(if you need more than one NBD device, repeat the above command for nbd1, nbd2, ...)

Next, write a configuration file for the server. An example looks like this:

# This is a comment
[generic]
    # The [generic] section is required, even if nothing is specified
    # there.
    # When either of these options are specified, nbd-server drops
    # privileges to the given user and group after opening ports, but
    # _before_ opening files.
    user = nbd
    group = nbd
[export1]
    exportname = /export/nbd/export1-file
    authfile = /export/nbd/export1-authfile
    timeout = 30
    filesize = 10000000
    readonly = false
    multifile = false
    copyonwrite = false
    prerun = dd if=/dev/zero of=%s bs=1k count=500
    postrun = rm -f %s
[otherexport]
    exportname = /export/nbd/experiment
    # The other options are all optional

The configuration file is parsed with GLib's GKeyFile, which parses key files as they are specified in the Freedesktop.org Desktop Entry Specification, as can be found at http://freedesktop.org/Standards/desktop-entry-spec. While this format was not intended to be used for configuration files, the glib API is flexible enough for it to be used as such.

Now start the server:

nbd-server -C /path/to/configfile

Note that the filename must be an absolute path; i.e., something like /path/to/file, not ../file. See the nbd-server manpage for details on any available options.

Finally, you'll be able to start the client:

nbd-client <hostname> -N <export name> <nbd device>

e.g.,

nbd-client 10.0.0.1 -N otherexport /dev/nbd0

will use the second export in the above example (the one that exports /export/nbd/experiment)

nbd-client must be ran as root; the same is not true for nbd-server (but do make sure that /var/run is writeable by the server that nbd-server runs as; otherwise, you won't get a PID file, though the server will keep running).

There are packages (or similar) available for most current operating systems; see the "Packaging status" badge below for details.

For questions, please use the [email protected] mailinglist.

Badges

Download Network Block Device Coverity Scan Build Status CII badge Travis

Packaging status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].