On Wed, Oct 07, 2009 at 12:03:01AM +0200, Wouter Verhelst wrote: > > with the raid1 setup below if the nbd-server stops nbd-client dies too, the > > /dev/nbd0 device > > disappears > > What do you mean by 'the device disappears'? The device node will not go > away; do you just mean to say that the connection is lost?
Sorry, I mean disappearing from /proc/partitions. > What happens if you wait "timeout" seconds and try to read from the > device manually (e.g., by doing "dd if=/dev/nbd0 of=/dev/zero count=1")? The nbd-client dies, and the partition is no longer in /proc/partitions. # dd if=/dev/nbd0 of=/dev/zero count=1 0+0 records in 0+0 records out 0 bytes (0 B) copied, 3.9789e-05 s, 0.0 kB/s dd on a never used /dev/nbd* device reports the same. -- Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224 Email: [email protected] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

