Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 10:47:02 -0600 (MDT)
From:      Randy Smith <randys@amigo.net>
To:        Paul Mather <paul@gromit.dlib.vt.edu>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: vinum question
Message-ID:  <20020619101609.O6594-100000@stalker.amigo.net>
In-Reply-To: <20020619160211.GA41355@gromit.dlib.vt.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 19 Jun 2002, Paul Mather wrote:

> Date: Wed, 19 Jun 2002 12:02:11 -0400
> From: Paul Mather <paul@gromit.dlib.vt.edu>
> To: Randy Smith <randys@amigo.net>
> Subject: Re: vinum question
>
> Randy,
>
> => 1 volumes:
> => V cgate                 State: up       Plexes:       1 Size:         34 GB
>
> It sure looks like vinum thinks you have a 34 GB volume.
>
> => # df (Other drives ommitted)
> => Filesystem          1K-blocks     Used    Avail Capacity  Mounted on
> => /dev/vinum/cgate     17368942 15736869   242558    98%    /drive1
>
> What is the output of "disklabel /dev/vinum/cgate"?  Does it show 34
> GB worth of sectors.  Here is the disklabel of a concat plex I have on my
> system (intended to work similar to yours):
>
> >>>>>
> V files                 State: up       Plexes:       1 Size:         69 GB
> P files.p0            S State: up       Subdisks:     2 Size:         69 GB
> S files.p0.s0           State: up       PO:        0  B Size:         34 GB
> S files.p0.s1           State: up       PO:      576 kB Size:         34 GB
>
> disklabel /dev/vinum/files
> # /dev/vinum/files:
> type: Vinum
> disk: vinum
> label: file
> flags:
> bytes/sector: 512
> sectors/track: 144877824
> tracks/cylinder: 1
> sectors/cylinder: 144877824
> cylinders: 1
> sectors/unit: 144877824
> rpm: 14400
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # milliseconds
> track-to-track seek: 0  # milliseconds
> drivedata: 0
>
> 3 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   a: 144877824        0    4.2BSD     1024  8192     0  # (Cyl.    0 - 0)
>   b: 144877824        0      swap                       # (Cyl.    0 - 0)
>   c: 144877824        0    unused        0     0        # (Cyl.    0 - 0)
> <<<<<
>
> If the disklabel for your /dev/vinum/cgate is < 34 GB, newfs will not
> be able to create a 34 GB filesystem on it.  (Did you remember to use
> "-v" for newfs?)
>

disklabel looks OK.

# /dev/vinum/cgate:
type: Vinum
disk: vinum
label: cgat
flags:
bytes/sector: 512
sectors/track: 71601049
tracks/cylinder: 1
sectors/cylinder: 71601049
cylinders: 1
sectors/unit: 71601049
rpm: 14400
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

3 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 71601049        0    4.2BSD     1024  8192     0   # (Cyl.    0 - 0)
  b: 71601049        0      swap                        # (Cyl.    0 - 0)
  c: 71601049        0    unused        0     0         # (Cyl.    0 - 0)

I'm a little tired but it looks like 34 MB to me.

I ran newfs -v on it when I first created the volume on vinumdisk0. I
didn't do it when I attached the second subdisk. (The volume has been in
use a while and wiping the FS is not really an option.)

vinum(8) says that "It is possible to increase the size of a concatenated
vinum plex ..." so I would think that it could handle it. Maybe I'm wrong.

-- 
Randy Smith
Amigo.Net Systems Administrator
1-719-589-6100 x 4185
http://www.amigo.net/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020619101609.O6594-100000>