From owner-freebsd-stable Thu Jun 13 8:13:37 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mirage.nlink.com.br (mirage.nlink.com.br [200.249.195.3]) by hub.freebsd.org (Postfix) with SMTP id 432A437B40E for ; Thu, 13 Jun 2002 08:13:27 -0700 (PDT) Received: (qmail 41959 invoked by uid 501); 13 Jun 2002 15:13:25 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 13 Jun 2002 15:13:25 -0000 Date: Thu, 13 Jun 2002 12:13:24 -0300 (BRT) From: Paulo Fragoso To: freebsd-stable@freebsd.org Subject: /etc/rc for jail envirotment Message-ID: <20020613115503.Y95940-100000@mirage.nlink.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, We have a jail enviroment running fine. The host have mount this partitions: Filesystem Size Used Avail Capacity Mounted on /dev/da0s1a 93M 40M 46M 46% / /dev/da0s2h 463M 17M 409M 4% /home /dev/da0s3e 98M 25M 66M 27% /j /dev/da0s4g 24G 3.2G 19G 15% /j/home /dev/da0s3f 252M 7.3M 224M 3% /j/tmp /dev/da0s3h 2.0G 1014M 841M 55% /j/usr /dev/da0s3a 1.4G 318M 981M 24% /j/usr/local /dev/da0s3g 252M 100M 132M 43% /j/var /dev/da0s4e 1008M 423M 504M 46% /j/var/qmail /dev/da0s4f 1008M 80M 847M 9% /j/var/spool /dev/da0s2e 252M 7.1M 225M 3% /tmp /dev/da0s2g 2.5G 1.0G 1.3G 45% /usr /dev/da0s2f 252M 16M 216M 7% /var procfs 4.0K 4.0K 0B 100% /proc which /j/... are for jail enviroment, /j/home have "userquota" option. All work fine, but in the jail enviroment we can't run repquota so we've decided to put one single line in the fstab of jail, after that we can run repquota command: jail's fstab: /dev/null /home ufs rw,userquota 2 2 The problem occours after reboot, the /j/home is umounted when starting jail script. We dicover this happen because there is a umount in the /etc/rc in the jail. After commented out this line we can do everthing without problem. Our suggestion is to put something like this in the /etc/rc: case ${jail_fstab} in [Nn][Oo]) umount -a >/dev/null 2>&1 esac and in the /etc/default/rc.conf: jail_fstab="NO" # Set to YES if you are using fstab in the jail # enviroment Is it possible? Is this malling list correct to post this suggestion? Thanks, Paulo. -- __O _-\<,_ Why drive when you can bike? (_)/ (_) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message