Nbd

From Halfface
Revision as of 22:55, 10 February 2015 by Ekaanbj (talk | contribs) (Created page with "=network block device= ==install== yum -y install nbd ==create nbd device== dd if=/dev/zero of=/ssd/nbd/nbd1 bs=1M count=128 mkfs.ext4 /ssd/nbd/nbd1 ==configure server== [...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

network block device

install

yum -y install nbd

create nbd device

dd if=/dev/zero of=/ssd/nbd/nbd1 bs=1M count=128
mkfs.ext4 /ssd/nbd/nbd1

configure server

[generic]
  allowlist = true
[nbd1]
  exportname = /ssd/nbd/nbd1

mount nbd

sudo nbd-client -N nbd1 10.111.222.1  /dev/nbd

unmount

sudo nbd-client -d  /dev/nbd1