From owner-freebsd-fs@FreeBSD.ORG Fri Aug 17 16:18:30 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58A3B16A418 for ; Fri, 17 Aug 2007 16:18:30 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by mx1.freebsd.org (Postfix) with ESMTP id EAD4013C48E for ; Fri, 17 Aug 2007 16:18:29 +0000 (UTC) (envelope-from cracauer@koef.zs64.net) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by koef.zs64.net (8.14.1/8.14.1) with ESMTP id l7HFvrFE007717 for ; Fri, 17 Aug 2007 17:57:53 +0200 (CEST) (envelope-from cracauer@koef.zs64.net) Received: (from cracauer@localhost) by koef.zs64.net (8.14.1/8.14.1/Submit) id l7HFvqeS007716 for freebsd-fs@freebsd.org; Fri, 17 Aug 2007 11:57:52 -0400 (EDT) (envelope-from cracauer) Date: Fri, 17 Aug 2007 11:57:52 -0400 From: Martin Cracauer To: freebsd-fs@freebsd.org Message-ID: <20070817155741.GA6255@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Subject: Block device over network from Linux to FreeBSD X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Aug 2007 16:18:30 -0000 All right, here's a question that'll make your IQ drop by 5 points just from pondering it :-) What's the best way to provide, over the network, a block device on harddrives that live on a Linux box and "export" them to a FreeBSD machine? Aka I want a FreeBSD filesystem on harddrives that are physically in a Linux box. Long story: My backup strategy is a FreeBSD filesystem with snapshots on a bunch of harddrives that live on networked computers in the basement. All these computers boot diskless or disky into a variety of OSes, usually Linux or FreeBSD. It would be easy to just use ext2fs or another filesystem supported by both, but I'd really like ufs2 snapshots. So I need to access the disks in a box running Linux as a block device from a machine running FreeBSD. When the machine having the physical disks runs FreeBSD I want to access the same raw devices directly, of course. The brute-force approach would be: - ext2fs on disks - files inside ext2fs for use via mdconfig (and ccd) - then, depending on OSes booted, either: - export via NFS and mdconfig on NFS mounts on remote FreeBSD machine - direct FreeBSD mount (machine runs FreeBSD) Another alternative I see is VMware or if any of the free emulators can boot FreeBSD on Linux and use the disks directly in the guest OS. Linux has a network layer for block devices: http://www.it.uc3m.es/ptb/nbd/ . On first sight, it doesn't look too exiting nor does it look straightforward to implement a client in GEOM. It uses daemons on both ends, so failover will not exactly be an improvement over NFS. At least with NFS you know that a lot of other people depend on what you write being delivered eventually. Then there's ATA over Ethernet as an established protocol. Any other ideas? USB'ing the harddrives is not considered sportish :-) Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/