From owner-freebsd-stable@FreeBSD.ORG Thu Jun 7 23:22:08 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FFDF16A468 for ; Thu, 7 Jun 2007 23:22:08 +0000 (UTC) (envelope-from daniel-dvorak@atlas.cz) Received: from pipa.vshosting.cz (pipa.vshosting.cz [81.0.201.10]) by mx1.freebsd.org (Postfix) with ESMTP id 2332913C44C for ; Thu, 7 Jun 2007 23:22:08 +0000 (UTC) (envelope-from daniel-dvorak@atlas.cz) Received: from localhost (localhost [127.0.0.1]) by pipa.vshosting.cz (Postfix) with ESMTP id B07371C982F for ; Fri, 8 Jun 2007 01:01:35 +0200 (CEST) Received: from pipa.vshosting.cz ([127.0.0.1]) by localhost (pipa [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00608-09 for ; Fri, 8 Jun 2007 01:01:30 +0200 (CEST) Received: from [10.40.8.101] (rikgw.hellteam.net [82.208.56.201]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pipa.vshosting.cz (Postfix) with ESMTP id 74F421C982B for ; Fri, 8 Jun 2007 01:01:30 +0200 (CEST) Message-ID: <46688E48.4040609@atlas.cz> Date: Fri, 08 Jun 2007 01:01:28 +0200 From: =?ISO-8859-2?Q?Daniel_Dvo=F8=E1k?= User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at pipa.vshosting.cz Subject: unionfs through whole / with upper layer on remote NFS directory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: daniel-dvorak@atlas.cz List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 23:22:08 -0000 Hi all, can you advise me if it is real and realizable what I plan ? Here it is, I have installed fbsd-6-stable pc with the last unionfs diff-19 patch and have a recompiled kernel with this new unionfs implementation and I would like this: - /dev/ad0s1a on CF card is read-only permanently - mdconfig is forbiden to create var and tmp ramdisks in rc.conf - to my custom directory for example /unionfs is mounted remote NFS directory with read-write rights and with no_all_squash or no_root_squash and sync options etc. - the upper layer of unionfs should be on this remote NFS directory - the lower layer of unionfs should be the whole mount point / the whole CF card with ro When I tried to start this command, new error message appeared and I do not know what to do with this probably because I do something wrong. The mount_unionfs utility attaches directory above uniondir in such a way that the contents of both directory trees remain visible. By default, directory becomes the upper layer and uniondir becomes the lower layer. So directory is /unionfs and lower layer is the whole / # mount -t unionfs /unionfs / mount_unionfs: /unionfs (/unionfs) and / (/) are not distinct paths the second try: # mount -t unionfs /unionfs /dev/ad0s1a like with cd-rom mount: /dev/ad0s1a: not a directory but with /var it is okay # mount -t unionfs /unionfs /var # mount /dev/ad0s1a on / (ufs, NFS exported, local) devfs on /dev (devfs, local) /dev/ad0s2a on /free (ufs, local, soft-updates) procfs on /proc (procfs, local) :/unionfs on /var (unionfs, local) NFS:/home/buffer on /unionfs (nfs) It seems that lower layer could not be the whole / or /dev/ad0s1a, doesn´t it ? Bye Dan