From owner-freebsd-questions@FreeBSD.ORG Thu Apr 17 13:25:16 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A59B037B401 for ; Thu, 17 Apr 2003 13:25:16 -0700 (PDT) Received: from morpheus.mind.net (morpheus.mind.net [69.9.130.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C5E043FBD for ; Thu, 17 Apr 2003 13:25:16 -0700 (PDT) (envelope-from jfox@morpheus.mind.net) Received: from morpheus.mind.net (localhost [127.0.0.1]) by morpheus.mind.net (8.12.6/8.12.6) with ESMTP id h3HKPFMf088779 for ; Thu, 17 Apr 2003 13:25:16 -0700 (PDT) (envelope-from jfox@morpheus.mind.net) Received: (from jfox@localhost) by morpheus.mind.net (8.12.6/8.12.6/Submit) id h3HKPFN2088778 for freebsd-questions@freebsd.org; Thu, 17 Apr 2003 13:25:15 -0700 (PDT) Date: Thu, 17 Apr 2003 13:25:15 -0700 From: John Fox To: freebsd-questions@freebsd.org Message-ID: <20030417202515.GQ85962@mind.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Beautiful-Thought: No more stinky HTML emails! Subject: Problems partitioning and mounting vnode filesystem(s) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2003 20:25:17 -0000 Hello, all. I'm having a bit of a problem working with a vnode filesystem, and have finally hit the point where I ask for help. :) The intent was to create a large vn-filesystem and break it into four partitions, for mounting within a jail. DEVICE SIZE (approx.) vn0a 500MB vn0d 1000MB vn0e 1000MB vn0f 2500MB It seemed to go well; I configured a file for use as vn filesystem, and edited its disklabel (see below) to get the partitions I wanted with no problems. But I ran into a problem -- the system appears to recognize only the 500MB partition, regardless of which is mounted (see below, after the disk label). I *could* just do this by creating vn0, vn1, vn2, and vn3, I guess, but I want to know what I'm doing wrong. ---- BEGIN PASTED TEXT: [systems-temp:~]# disklabel -r vn0 # /dev/vn0c: type: unknown disk: amnesiac label: flags: bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 5000 sectors/unit: 10240000 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 976562 0 4.2BSD 2048 16384 91 # (Cyl. 0 - 476*) c: 10240000 0 unused 0 0 # (Cyl. 0 - 4999) d: 1953125 976562 4.2BSD 2048 16384 91 # (Cyl. 476*- 1430*) e: 1953125 2929687 4.2BSD 2048 16384 91 # (Cyl. 1430*- 2384*) f: 4882812 4882812 4.2BSD 2048 16384 89 # (Cyl. 2384*- 4768*) [systems-temp:~]# mount vn0a /mnt && df -h /mnt && umount /mnt Filesystem Size Used Avail Capacity Mounted on /dev/vn0a 469M 135M 297M 31% /mnt [systems-temp:~]#@mount /dev/vn0a /mnt && df -h /mnt && df -h /mnt && umount /mnt Filesystem Size Used Avail Capacity Mounted on /dev/vn0d 469M 135M 297M 31% /mnt [systems-temp:~]# mount /dev/vn0d /mnt && df -h /mnt && umount /mnt Filesystem Size Used Avail Capacity Mounted on /dev/vn0e 469M 135M 297M 31% /mnt [systems-temp:~]# mount /dev/vn0e /mnt && df -h /mnt && umount /mnt Filesystem Size Used Avail Capacity Mounted on /dev/vn0f 469M 135M 297M 31% /mnt ---- END PASTED TEXT I took a look in this machines '/dev' directory, and saw that there exists "/dev/vn0s1a" through "/dev/vn0s1f". Should I be using these 's1' devices? I'm very excited about using these vnode fileystems, so I'll be very appreciative of any advice! Thank you, -- John +---------------------------------------------------------------------------+ | "I can't believe I'm back on Mars. Three times before this place almost | | killed me. I swore I would never give it another chance to complete | | the job. Humans got no business being here. No business at all." | | -- Michael Garibaldi, _Babylon 5_, "The Exercise of Vital Powers | +---------------------------------------------------------------------------+ | John Fox | System Administrator | Internet Ventures Oregon | +---------------------------------------------------------------------------+