Date: Wed, 5 Sep 2007 14:01:29 +0300 From: Andrei Kolu <antik@bsd.ee> To: freebsd-geom@freebsd.org Subject: Re: ufs on zvol "Filesystem is not clean..." Message-ID: <200709051401.31018.antik@bsd.ee> In-Reply-To: <20070905100831.GD12013@garage.freebsd.pl> References: <20070120073117.GB60202@x12.dk> <200709051242.44620.antik@bsd.ee> <20070905100831.GD12013@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 05 September 2007 13:08:31 Pawel Jakub Dawidek wrote: > On Wed, Sep 05, 2007 at 12:42:44PM +0300, Andrei Kolu wrote: > > 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 > > Have you added it to /etc/fstab? First time I added it to fstab but system mount complained about inconsistent UFS filesystem. I removed it from fstab and entered single-user mode. "kldload zfs" and tried to fsck /dev/zvol/tank/jails/ftpjail- ZFS said that it can't start zvolume because other filesystem wrote something into zfs filesystem. first system drive: ad4: 152627MB <Hitachi HDS721616PLA380 P22OABEA> at ata2-master SATA300 raidz (tank): ad6: 305245MB <Hitachi HDT725032VLA360 V54OA7EA> at ata3-master SATA300 ad8: 305245MB <Hitachi HDT725032VLA360 V54OA7EA> at ata4-master SATA300 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709051401.31018.antik>