From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 20 17:51:11 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11A5916A41C for ; Mon, 20 Jun 2005 17:51:11 +0000 (GMT) (envelope-from gizmen@blurp.one.pl) Received: from blurp.one.pl (blurp.t2.ds.pwr.wroc.pl [156.17.224.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id B266343D1F for ; Mon, 20 Jun 2005 17:51:10 +0000 (GMT) (envelope-from gizmen@blurp.one.pl) Received: by blurp.one.pl (Postfix, from userid 1001) id BE519862; Mon, 20 Jun 2005 19:50:32 +0200 (CEST) Date: Mon, 20 Jun 2005 19:50:31 +0200 From: GiZmen To: hackers@freebsd.org Message-ID: <20050620175031.GA50395@procent.t2.ds.pwr.wroc.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Cc: Subject: instability with mount_nullfs and jails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 17:51:11 -0000 hi, I have problem with mount_nullfs and jails. My system FreeBSD 5.4-STABLE when have two jails and each of this jails has couple mount_nullfs freeze without kernel panic. It freezes out in random times. Sometimes it can run for couple days sometimes it freezes after couple hours. I have mount points like below: root@procent:~# mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local, multilabel) /dev/ad0s1e on /tmp (ufs, local, nodev, nosuid, nosymfollow, soft-updates, multilabel, acls) /dev/ad0s1f on /usr (ufs, local, nodev, soft-updates, multilabel, acls) /dev/ad0s1d on /var (ufs, local, nodev, nosuid, soft-updates, multilabel, acls) /usr/local/bandwidthd/htdocs on /usr/jails/httpd/www/traf (nullfs, local, nodev, noexec, nosuid, read-only) /usr/local/share/pear on /usr/jails/httpd/lib/php/pear (nullfs, local, nodev, noexec, nosuid, read-only) /usr/local/share/smarty on /usr/jails/httpd/lib/php/smarty (nullfs, local, nodev, noexec, nosuid, read-only) /usr/local/lib/php/20020429 on /usr/jails/httpd/lib/php/20020429 (nullfs, local, nodev, noexec, nosuid, read-only) /usr/local/libexec/apache on /usr/jails/httpd/libexec/apache (nullfs, local, nodev, noexec, nosuid, read-only) /usr/local/etc/php on /usr/jails/httpd/etc/php (nullfs, local, nodev, noexec, nosuid, read-only) /usr/local/bin on /usr/jails/httpd/bin (nullfs, local, nodev, nosuid, read-only) devfs on /usr/jails/httpd/dev (devfs, local, multilabel) /dev/ad0s1g.bde on /crypto (ufs, local, noatime, nodev, nosuid, synchronous, soft-updates, multilabel, acls) /dev/ad2s1a.bde on /crypto2 (ufs, local, noatime, nodev, nosuid, synchronous, soft-updates, multilabel, acls) /crypto/home on /usr/jails/users/home (nullfs, local, nodev) /crypto/home on /usr/jails/httpd/home (nullfs, local, nodev, noexec, nosuid) from fstab.sshd: /bin /usr/jails/users/bin nullfs ro,nosuid,nodev 0 0 /sbin /usr/jails/users/sbin nullfs ro,nodev 0 0 /usr/ports /usr/jails/users/usr/ports nullfs rw,nosuid,nodev 0 0 /usr/include /usr/jails/users/usr/include nullfs ro,nosuid,noexec,nodev 0 0 /usr/share /usr/jails/users/usr/share nullfs ro,nosuid,nodev,noexec 0 0 /usr/lib /usr/jails/users/usr/lib nullfs ro,nosuid,nodev 0 0 #/lib /usr/jails/users/lib nullfs ro,nosuid,nodev,noexec 0 0 #/libexec /usr/jails/users/libexec nullfs ro,nosuid,nodev 0 0 /usr/bin /usr/jails/users/usr/bin nullfs ro,nodev 0 0 /usr/sbin /usr/jails/users/usr/sbin nullfs ro,nodev 0 0 /usr/libexec /usr/jails/users/usr/libexec nullfs ro,nodev 0 0 When i start sshd jail with mount_nulls like above i will have crash after random period of time. Without this jail i have never had any freeze. home dir in users jail is mount_nulled from /crypto partition.Earlier my users jails didnt have mount_nulls, i have had copy of each dir. I could have uptime like 80 days. I dont know why it is so instabile? Could any one point me somehow ? Maybe i do someting wrong or someting? THX -- Best Regards: GiZmen UNIX is user-friendly; it's just picky about its friends UNIX is simple; it just takes a genius to understand its simplicity