Problems partitioning and mounting vnode filesystem(s)
John Fox
jjf at mind.net
Thu Apr 17 13:25:17 PDT 2003
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 <jjf at mind.net> | System Administrator | Internet Ventures Oregon |
+---------------------------------------------------------------------------+
More information about the freebsd-questions
mailing list