On Thu, 23 Feb 2012 16:18:22 +0100 Jean-Yves Moulin <j...@eileo.net> wrote:
> Hi everybody, > > I was using two 500Go disks on raid1 setup. One of my disk died. I > replace it with a bigger disk (600Go) and rebuilt raid. Then, the > second 500Go disk died. I replace it also with a 600go disk and > rebuilt raid. Now, I've two 600Go disk on my raid1 but size is always > shrunk to 500Go. I made a mistake when creating RAID label on 600Go > disks: It take entire disk. > > I want to know if I can recover my lost 100Go... > > disklabel for sd0: > a: 1172123505 63 RAID # (Cyl. > 0*- 101045*) disklabel for sd1: > a: 1172123505 63 RAID # (Cyl. > 0*- 101045*) disklabel for raid0: > d: 976772992 0 unused 0 0 # (Cyl. > 0 - 953879*) > > And raidframe message for shrinking: > Warning: truncating spare disk /dev/sd1a to 976772992 blocks (from > 1172123441) > > > I read that changing raid size is not possible. But can I change > label size for sd0a and sd1a to the same size as raid0d (from > 1172123505 to 976772992), and then, can I use the recovered space for > a second raid array ? I'd want to test this somewhere where the data doesn't matter as much, but yes, this should be doable. Note that you'd want to change the size from 1172123505 to 976773056 (not 976772992) because you need to leave room for the component label (64 reserved blocks at the beginning of the partition). Later... Greg Oster