From owner-freebsd-geom@FreeBSD.ORG Wed Sep 5 10:05:42 2007 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A79116A469 for ; Wed, 5 Sep 2007 10:05:42 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from zzz.ee (kalah.zzz.ee [194.204.30.253]) by mx1.freebsd.org (Postfix) with ESMTP id C9D8913C45B for ; Wed, 5 Sep 2007 10:05:41 +0000 (UTC) (envelope-from antik@bsd.ee) Received: by zzz.ee (Postfix, from userid 3019) id 76013198412; Wed, 5 Sep 2007 12:42:50 +0300 (EEST) Received: from [192.168.1.26] (adsl215.uninet.ee [194.204.62.215]) by zzz.ee (Postfix) with ESMTP id 96B0B198439 for ; Wed, 5 Sep 2007 12:42:48 +0300 (EEST) From: Andrei Kolu To: freebsd-geom@freebsd.org Date: Wed, 5 Sep 2007 12:42:44 +0300 User-Agent: KMail/1.9.7 References: <20070120073117.GB60202@x12.dk> <20070312142846.GA3747@garage.freebsd.pl> <45F6CEB5.7030305@barryp.org> In-Reply-To: <45F6CEB5.7030305@barryp.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709051242.44620.antik@bsd.ee> X-Spam-Checker-Version: SpamAssassin on spamassassin.zzz.ee X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_55 Subject: ufs on zvol "Filesystem is not clean..." X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2007 10:05:42 -0000 Hello! I am not sure I did everything correctly by creating UFS filesystem ontop of zpool. Should I make 10GB UFS on free space or like I did on following example? # zfs create -V 10g tank/jails/ftpjail # newfs /dev/zvol/tank/ftpjail # mount /dev/zvol/tank/jails/ftpjail /usr/jails/ftpjail/ No complains from ZFS side- maybe it should say something like "You, stupid! You can't do that!" I can create jail with ezjail: # ezjail-admin create ftpjail 192.168.1.112 # jail /usr/jails/ftpjail ftpjail.example.com 192.168.1.112 /bin/csh Everything works fine with jails so far until I reboot system.... Sep 5 12:18:45 freebsd7 kernel: ZFS filesystem version 6 Sep 5 12:18:45 freebsd7 kernel: ZFS storage pool version 6 Sep 5 12:18:45 freebsd7 savecore: no dumps found Sep 5 12:18:46 freebsd7 root: /etc/rc.d/jail: WARNING: devfs_domount(): Unable to mount devfs on /usr/jails/ftpjail/dev Sep 5 12:18:46 freebsd7 root: /etc/rc.d/jail: WARNING: devfs_mount_jail: devfs was not mounted on /usr/jails/ftpjail/dev Sep 5 12:24:13 freebsd7 kernel: WARNING: R/W mount of /usr/jails/ftpjail denied. Filesystem is not clean - run fsck # mount /dev/zvol/tank/jails/ftpjail /usr/jails/ftpjail/ mount: /dev/zvol/tank/jails/ftpjail : Operation not permitted # mount /dev/ad4s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad4s1e on /tmp (ufs, local, soft-updates) /dev/ad4s1f on /usr (ufs, local, soft-updates) /dev/ad4s1d on /var (ufs, local, soft-updates) tank on /tank (zfs, local, noatime) tank/usr on /tank/usr (zfs, local, noatime) tank/jails on /usr/jails (zfs, local, noatime) tank/usr/ports on /usr/ports (zfs, local, noatime) tank/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, noatime) /usr/jails/basejail on /usr/jails/apachejail/basejail (nullfs, local, read-only) devfs on /usr/jails/apachejail/dev (devfs, local) fdescfs on /usr/jails/apachejail/dev/fd (fdescfs) procfs on /usr/jails/apachejail/proc (procfs, local) freebsd7# zpool status pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1 ONLINE 0 0 0 ad6 ONLINE 0 0 0 ad8 ONLINE 0 0 0 errors: No known data errors