Adding partitions to gmirror device

Vladislav Sekulic vlad.sekulic at utoronto.ca
Tue Jan 27 10:49:42 PST 2009


Thanks, Wojciech and Jerry, for your help.

Quoting Jerry McAllister <jerrymc at 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



More information about the freebsd-questions mailing list