https://bugzilla.novell.com/show_bug.cgi?id=865237
https://bugzilla.novell.com/show_bug.cgi?id=865237#c2
Jigish Gohil changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|cyberorg@opensuse.org |
--- Comment #2 from Jigish Gohil 2014-02-24 09:43:45 UTC ---
There is no default name, however we can use this setup:
cat /etc/nbd-server/config
# This is a comment
[generic]
includedir = /etc/nbd-server/conf.d/
prime:~ # cat /etc/nbd-server/conf.d/swap.conf
[swap]
prerun = /usr/sbin/nbdswapd %s
exportname = /tmp/nbd-swap/%s
postrun = rm -f %s
prime:~ # cat /etc/nbd-server/conf.d/system.conf
[system]
exportname = /srv/system/%s
With the above setup when a client connects it expects the images as below:
For swap doing this on the server for each client(we have a script that does
this automatically, via prerun):
dd if=/dev/zero of=/tmp/nbd-swap/$IPaddressofclient bs=1M count=0 seek=512
chmod 600 /tmp/nbd-swap/$IPaddressofclient
mkswap /tmp/nbd-swap/$IPaddressofclient
For the system image, each of the client will look for:
/srv/system/$IPaddressofclient
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.