FreeBSD 5.3 gvinum and growfs

From: Ean Kingston (ean_at_hedron.org)
Date: 03/19/05

  • Next message: John A.: "Re: Ethernet issue: works one way but not another"
    Date: Fri, 18 Mar 2005 19:09:25 -0500
    To: questions@freebsd.org
    
    

    Hi,

    How do I make growfs actually grow a gvinum disk on FreeBSD 5.3? I've
    read the man pages, the Handbook, and done some searching with no luck.

    To help understand what I'm trying to accomplish here, I've created a
    filesystem that mounts to /export on a gvinum volume. The volume is
    configured as a mirror. I want to double it's size. To do this I used
    gvinum to add a subdisk to each plex of the mirror (this worked fine).
    gvinum now reports the volume as 32GB (it used to be 16GB).

    The filesystem is still 16GB. When I unmount the filesystem and run
    growfs on the device it claims there is no space to grow:

    # growfs -s 33554432 /dev/gvinum/export
    growfs: we are not growing (8388608 -> 8388608)

    And yet

    # disklabel /dev/gvinum/export
    # /dev/gvinum/export:
    3 partitions:
    # size offset fstype [fsize bsize bps/cpg]
       a: 33554432 0 4.2BSD 2048 16384 0
       b: 33554432 0 swap
       c: 33554432 0 unused 0 0 # "raw" part,
    don't edit
    disklabel: partition c doesn't cover the whole unit!
    disklabel: An incorrect partition c may cause problems for standard
    system utilities

    better still:
    # gvinum list
    2 drives:
    D a State: up /dev/ad1s1g A: 58662/108326
    MB (54%)
    D b State: up /dev/ad0s1g A: 58662/108326
    MB (54%)

    5 volumes:
    ...
    V export State: up Plexes: 2 Size:
    32 GB

    8 plexes:
    ...
    P export.p1 C State: up Subdisks: 2 Size:
    32 GB
    P export.p0 C State: up Subdisks: 2 Size:
    32 GB

    12 subdisks:
    ...
    S export.p1.s0 State: up D: b Size:
    16 GB
    S export.p0.s0 State: up D: a Size:
    16 GB
    S export.p0.s1 State: up D: a Size:
    16 GB
    S export.p1.s1 State: up D: b Size:
    16 GB

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: John A.: "Re: Ethernet issue: works one way but not another"

    Relevant Pages

    • How do I get growfs to work on a gvinum mirror?
      ... How do I make growfs actually grow a gvinum disk on FreeBSD 5.3? ... filesystem that mounts to /export on a gvinum volume. ... disklabel: partition c doesn't cover the whole unit! ... An incorrect partition c may cause problems for standard ...
      (freebsd-questions)
    • Re: Panics with 5-stable - vinum? raid5?
      ... strongly suggest migrating to gvinum if you can. ... Unfortnately since you've elected to share vinumdrive0 with your root ... If you switched to gvinum now your root partition would ... gvinum generally expects to have the whole disk to itself. ...
      (freebsd-stable)
    • Re: (g)vinum with 5.3
      ... >b) Check your vinum partitions with bsdlabel. ... partition c: partition extends past end of unit ... This is because the new versions together cant deal with every config, ... Of course I tried to use gvinum right from the start. ...
      (freebsd-stable)
    • /dev/gvinum missing, ideas please. .
      ... I'm doing something wrong b/c /dev/gvinum isn't being created. ... Modified the partition I want to use for gvinum. ... bsd# bsdlabel -e /dev/da0s1 ...
      (freebsd-questions)