From 2d97be69867c1e57232df18e2421ba42585cc404 Mon Sep 17 00:00:00 2001 From: Wouter Verhelst Date: Fri, 26 May 2017 09:08:39 +0200 Subject: [PATCH] Document the waitfile option Signed-off-by: Wouter Verhelst --- man/nbd-server.5.in.sgml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/man/nbd-server.5.in.sgml b/man/nbd-server.5.in.sgml index fc6592d..99674de 100644 --- a/man/nbd-server.5.in.sgml +++ b/man/nbd-server.5.in.sgml @@ -984,6 +984,31 @@ manpage.1: manpage.sgml + + + + Optional; string. + When this option is set, nbd-server + will allow writes to this export, but not reads, until the + server is sent a SIGUSR1 command. Any writes to the export + will be stored in a diff file with the same algorithm as for + the copy-on-write option. In particular, this means that the + option is in effect for this option, + too. + The backend file (as per the exportname parameter) need + not exist until the SIGUSR1 signal is sent to the + server. + Once SIGUSR1 is received, nbd-server + will open the main export file, and start merging all + outstanding writes into it. Once this operation finishes, + the diff file will be removed, and the server will allow + normal use of the export. + This allows the out-of-band live migration of an export + from one server to another. + Note that this option cannot be combined with the + copy-on-write option itself. + + -- 2.11.4.GIT