Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2009 13:49:36 -0500
From:      Vladislav Sekulic <vlad.sekulic@utoronto.ca>
To:        Jerry McAllister <jerrymc@msu.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Adding partitions to gmirror device
Message-ID:  <20090127134936.02bl16g2s4g4o8gw@webmail.utoronto.ca>
In-Reply-To: <20090127155314.GC91587@gizmo.acns.msu.edu>
References:  <20090126220411.b9c04ypy0wo04wkk@webmail.utoronto.ca> <20090127155314.GC91587@gizmo.acns.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

Thanks, Wojciech and Jerry, for your help.

Quoting Jerry McAllister <jerrymc@msu.edu>:

> First of all, you say that you have allocated 27GB of 238GB available.
> Is that 238GB in the existing slice - gm0s1 or is it outside of
> that slice?   (NOTE, the 's' in the device name stands for slice -
> so it is slice 1 of a possible 4).
>

It's 27GB used within the existing slice; gm0s1 spans the entire disk.

> It could be helpful if you posted you  /etc/fstab  file and also
> what is printed if you do:    bsdlabel gm0s1   or, if it is what
> they call 'dangerously dedicated'  do:  bsdlabel gm0
>

$ sudo bsdlabel /dev/mirror/gm0s1
# /dev/mirror/gm0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
   a:  1048576        0    4.2BSD     2048 16384     8
   b:  8320016  1048576      swap
   c: 488375937        0    unused        0     0         # "raw"  
part, don't edit
   d:  2097152  9368592    4.2BSD     2048 16384 28528
   e: 10485760 11465744    4.2BSD     2048 16384 28528
   f: 41943040 21951504    4.2BSD     2048 16384 28528

> If it is all in that gmos1 slice, then just use bsdlabel on that
> slice to add the rest to another partition within that slice.  Just
> boot from something other than that mirror, make sure nothing
> in gm0 is mounted and then do:   bsdlabel -e gm0s1  and fix it
> up as needed.
>

Great, makes sense.  I'll boot from the FreeBSD livecd and do this.

Thanks again!
Vlad

--
Vladislav Sekulic
Research Computing System Administrator
Systems and Networks Research Group
Dept. of Computer Science, University of Toronto
http://www.cs.toronto.edu/~pocsys




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