Koozali.org: home of the SME Server

Shrink raid 1 array

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Shrink raid 1 array
« on: January 31, 2006, 02:14:44 PM »
Hi,

I'm busy experimenting with a software raid 1.

I've successfully added a spare, used it, failed drives, etc.

I've now grown the array from 2 to 3 partitions, which worked well. Now when I try and shrink it by doing mdadm --grow /dev/md1 --raid-disks=2, I get a resource busy on /dev/md1.

I've gone down to runlevel 1, with no luck. What should I do to get it to go back down to 2 partitions again?

Alex
......

Offline Alex Schaft

  • ****
  • 97
  • +0/-0
Solved that too
« Reply #1 on: January 31, 2006, 02:21:27 PM »
I always seem to solve these questions after asking them :).

Turns out I needed to fail, remove and add partitions so that my first two partitions take up postion 0 and 1 in the array
......