Koozali.org: home of the SME Server

resize array

Offline wjp79

  • *
  • 17
  • +0/-0
Re: resize array
« Reply #15 on: April 20, 2011, 03:45:11 PM »
Ok, raised a bug.

http://bugs.contribs.org/show_bug.cgi?id=6602

Tnx for you effort.

WJ


Offline MSmith

  • *
  • 675
  • +0/-0
Re: resize array
« Reply #16 on: April 21, 2011, 05:01:00 PM »
Poof, "closed, notabug."  I don't know what would fix the OP's issue, but one approach going forward would be to back up to USB drive, then reformat & restore.  And just for safety, perhaps do the fresh install on only one of the 500GB drives until you're sure the restore went OK, then wipe the other 500GB drive and use the built-in SME tool to add it to the array.
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: resize array
« Reply #17 on: April 22, 2011, 08:48:28 PM »
the resizing has failed.. I don't know why

It looks to me that there is substantial unpartitioned space on the drives. /dev/sda2 and /dev/sdb2 are < 10k cylinders, but there are more than 60k cylinders to the drives. LVM is using all of the RAID, but the RAID is not using all of the drives.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: resize array
« Reply #18 on: April 22, 2011, 08:57:37 PM »
It looks to me that there is substantial unpartitioned space on the drives. /dev/sda2 and /dev/sdb2 are < 10k cylinders, but there are more than 60k cylinders to the drives. LVM is using all of the RAID, but the RAID is not using all of the drives.

this is the problem :-)

with the
Code: [Select]
mdadm --grow /dev/md2 --size=max

raid should grow and use all the disk space.. I did use that command many times without any problem

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: resize array
« Reply #19 on: April 23, 2011, 04:44:28 PM »
with the
Code: [Select]
mdadm --grow /dev/md2 --size=max

raid should grow and use all the disk space.. I did use that command many times without any problem

I think that will only work if /dev/sda2 and /dev/sdb2 span the remainder of the disk. I don't think that mdadm will change the partition sizes and repartition the disk. It will only 'grow' to use unused space within the partitions.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: resize array
« Reply #20 on: April 23, 2011, 04:53:51 PM »
I think that will only work if /dev/sda2 and /dev/sdb2 span the remainder of the disk. I don't think that mdadm will change the partition sizes and repartition the disk. It will only 'grow' to use unused space within the partitions.

Charlie.. I've used many (dozen) times this procedure.. and it simply worked flawlessy for me.. without touching partitions..

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: resize array
« Reply #21 on: April 23, 2011, 05:27:25 PM »
Charlie.. I've used many (dozen) times this procedure.. and it simply worked flawlessy for me.. without touching partitions..

Interesting. Would be good to see the fdisk output before and after "mdadm --grow" is run.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: resize array
« Reply #22 on: April 23, 2011, 06:42:30 PM »
I'll create a VM this night to test and post here the result

Offline slords

  • *****
  • 235
  • +3/-0
Re: resize array
« Reply #23 on: April 23, 2011, 09:29:28 PM »
The issue is the instructions on the wiki were not followed.  If the instructions were followed then the partitions on the drives would be different (the second partition would take up the entire drive).

Please explain exactly how you replaced the 80G drives with the 500G drives.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

Offline johnp

  • *****
  • 312
  • +0/-0
Re: resize array
« Reply #24 on: April 24, 2011, 02:39:12 AM »
Here's a link to the instructions Shad referred to http://wiki.contribs.org/Raid

Offline p-jones

  • *
  • 594
  • +0/-0
Re: resize array
« Reply #25 on: April 24, 2011, 07:34:12 AM »
Quote
Here's a link to the instructions Shad referred to http://wiki.contribs.org/Raid

Wonder what specific part of this Document Shad is reffering to ? It is a long document.....

The instructions wjp79 is using are also contained in this link/document and like Stefano, I have used those instructions a number of times and they have "just worked"
...

Offline slords

  • *****
  • 235
  • +3/-0
Re: resize array
« Reply #26 on: April 24, 2011, 04:08:28 PM »
I'm referring to the very first part of "Upgrading the Hard Drive Size".  If you don't do the first part of the procedure correct then nothing else beyond that matters.  All of the instructions given here so far assume that was done correctly when it wasn't.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook