GEOM Gate.
Pawel Jakub Dawidek
nick at garage.freebsd.pl
Thu Aug 14 04:03:24 PDT 2003
Hello hackers...
I've done something what will be called GEOM Gate.
This software provide disk devices mounting through the network.
http://garage.freebsd.pl/geom_gate.tbz
Installation is quite trivial:
# tar -jvxf geom_gate.tbz
# cd geom_gate
# make
# make install
For example we got two machine: 'client' and 'server' and we want to mount
device /dev/ad0s1a from 'server' machine on 'client' machine.
server# ggd -f /dev/ad0s1a
client# kldload geom_gate
client# ggc -a -h 'server' -s sizeof(/dev/ad0s1a) -u 5
client# mount /dev/gg5 /mnt/foo
And that's all.
Of course we can also export files and treat them as devices:
server# truncate -s 256M test.img
server# ggd -f ./test.img -p 1234
client# ggc -a -h 'server' -p 1234 -s 256M -u 6
client# newfs -O2 -U /dev/gg6
client# mount /dev/gg6 /mnt/bar
This isn't finished yet, so it also isn't bugs free.
For example don't try to run client and server stuff on this same machine,
this could case a deadlock.
Comments, etc. are of course welcome.
--
Pawel Jakub Dawidek pawel at dawidek.net
UNIX Systems Programmer/Administrator http://garage.freebsd.pl
Am I Evil? Yes, I Am! http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030814/bb67d5db/attachment.bin
More information about the freebsd-hackers
mailing list