Mirroring using vinum+NFS

Peter Jeremy PeterJeremy at optushome.com.au
Sat Jul 12 00:59:13 PDT 2003


On Thu, Jul 10, 2003 at 01:38:21PM -0700, Joshua Oreman wrote:
>On Fri, Jul 11, 2003 at 06:10:13AM +1000 or thereabouts, Peter Jeremy wrote:
>> Consider system A as the server and system B as the mirror.  In theory,
>> on system A I should be able to:
>> 	mount B:/big/data/blob /remote
>> 	vnconfig /big/data/block as vn0
>> 	vnconfig /remote as vn1
>> 	vinum mirror vn0+vn1 as serverdata
>> 	mount /dev/vinum/serverdata /serverdata
>> 	export /serverdata
>
>This will not help you at all.
>Vnconfig only deals with *files*. Directories are outside its realm.

I suggest you re-read vnconfig(8).  vnconfig turns a file (local or
NFS mounted) into a device which can then be turned into a filesystem
- either directly or via a LVM (eg vinum).

>Since you have no direct write permission to the device over NFS, Vinum
>has no chance of working there.

There's no reference to remotely accessing a device.  The above
actually works perfectly in the case where both systems are up (modulo
using correct pathnames, some disklabeling and a newfs).  I think I'll
need to use 'mount -s' for the first mount to make it robust against
system B failing.

Peter


More information about the freebsd-hackers mailing list