Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default growfs

    On FreeBSD 5.3 I added disks to a disk array. The array contained two
    250 GB disks stripped (actually four mirrored and striped but it's all
    done in hardware). I added two more pairs to the virtual disk, rebooted
    the machine, rewrote the disklabel for the additional capacity and ran
    growfs. It would grow the filesystem to almost the end and reported
    growfs: rdfs: seek error: <some really large number 18 digits long>:
    unknown error: 0

    I ran growfs with progressively smaller -s options, but the same thing
    happens when it gets near the end of the new size of the file system.

    fdisk reports the new size for the disk in sectors on partition 1 and
    the cylinders, heads and sectors/track appear proper.

    the only odd thing I notice is that

    nfs2# fdisk -s /dev/da1s1
    /dev/da1s1: 121341 cyl 255 hd 63 sec
    Part Start Size Type Flags
    4: 0 50000 0xa5 0x80
    nfs2# fdisk -s /dev/da1
    /dev/da1: 121342 cyl 255 hd 63 sec
    Part Start Size Type Flags
    1: 63 1949359167 0xa5 0x80


    notice da1s1 lists part 4 as size 50000 (25 MB). da1 lists the
    propersize.

    disklabel looks right for da1s1

    nfs2# disklabel -r /dev/da1s1
    # /dev/da1s1:
    8 partitions:
    # size offset fstype [fsize bsize bps/cpg]
    c: 1949359167 0 unused 0 0 # "raw" part,
    don't edit
    d: 1949359167 0 4.2BSD 2048 16384 28552


    Now, I had gone through this process when upgrading from one pair to
    two without a problem. I'm not sure where to start looking for issues
    and am looking for a pointer of where to start looking or a better idea
    of what info I need to debug this. Does anyone see something completely
    out of whack?

    Michael Conlen Guest

  2. #2

    Default Re: growfs

    Sorry for the double post but I found a copy of the actual error...

    growfs: rdfs: seek error: 237231962044550260: Unknown error: 0


    On Feb 20, 2005, at 2:40 AM, Michael Conlen wrote:
    > On FreeBSD 5.3 I added disks to a disk array. The array contained two
    > 250 GB disks stripped (actually four mirrored and striped but it's all
    > done in hardware). I added two more pairs to the virtual disk,
    > rebooted the machine, rewrote the disklabel for the additional
    > capacity and ran growfs. It would grow the filesystem to almost the
    > end and reported growfs: rdfs: seek error: <some really large number
    > 18 digits long>: unknown error: 0
    >
    > I ran growfs with progressively smaller -s options, but the same thing
    > happens when it gets near the end of the new size of the file system.
    >
    > fdisk reports the new size for the disk in sectors on partition 1 and
    > the cylinders, heads and sectors/track appear proper.
    >
    > the only odd thing I notice is that
    >
    > nfs2# fdisk -s /dev/da1s1
    > /dev/da1s1: 121341 cyl 255 hd 63 sec
    > Part Start Size Type Flags
    > 4: 0 50000 0xa5 0x80
    > nfs2# fdisk -s /dev/da1
    > /dev/da1: 121342 cyl 255 hd 63 sec
    > Part Start Size Type Flags
    > 1: 63 1949359167 0xa5 0x80
    >
    >
    > notice da1s1 lists part 4 as size 50000 (25 MB). da1 lists the
    > propersize.
    >
    > disklabel looks right for da1s1
    >
    > nfs2# disklabel -r /dev/da1s1
    > # /dev/da1s1:
    > 8 partitions:
    > # size offset fstype [fsize bsize bps/cpg]
    > c: 1949359167 0 unused 0 0 # "raw"
    > part, don't edit
    > d: 1949359167 0 4.2BSD 2048 16384 28552
    >
    >
    > Now, I had gone through this process when upgrading from one pair to
    > two without a problem. I'm not sure where to start looking for issues
    > and am looking for a pointer of where to start looking or a better
    > idea of what info I need to debug this. Does anyone see something
    > completely out of whack?
    >
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to
    > "freebsd-questions-unsubscribe@freebsd.org"
    Michael Conlen Guest

  3. #3

    Default growfs

    Any idea why a growfs to this size works

    growfs: 493962.0MB (1011634176 sectors) block size 16384, fragment size
    2048
    using 2688 cylinder groups of 183.77MB, 11761 blks, 23552
    inodes.
    with soft updates
    super-block backups (for fsck -b #) at:
    1010881632, 1011257984

    but a growfs to

    server# growfs -s 1012220000 /dev/da1s1d
    We strongly recommend you to make a backup before growing the Filesystem

    Did you backup your data (Yes/No) ? Yes
    new file systemsize is: 253055000 frags
    Warning: 209472 sector(s) cannot be allocated.
    growfs: 494145.8MB (1012010528 sectors) block size 16384, fragment size
    2048
    using 2689 cylinder groups of 183.77MB, 11761 blks, 23552
    inodes.
    with soft updates
    super-block backups (for fsck -b #) at:
    1011634336
    growfs: rdfs: seek error: 237231962044550260: Unknown error: 0

    fails while there is plenty of disk space available. The error doesn't
    seem to make sense and I'm thinking there's some value that's flipped
    out.

    --
    Michael Conlen

    Michael E.Conlen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139