Archive for May, 2008

Growing My RAID

Friday, May 23rd, 2008

The New Disk
Disk /dev/sdd: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x638212f6

Device Boot Start End Blocks Id System
/dev/sdd1 1 30401 244196001 fd Linux raid autodetect

The Old Disk(s)
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 fd Linux raid autodetect

They Match!

Time to add the new drive
mdadm --add /dev/md0 /dev/sdd1
mdadm: added /dev/sdd1

Now to grow the array
mdadm --grow /dev/md0 --raid-devices=4
mdadm: Need to backup 768K of critical section..
mdadm: ... critical section passed.

The growing/reshaping took 9 hours.

Time to check the integrity of the filesystem

fsck -f /dev/md0
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
RAID: 96834/61063168 files (31.4% non-contiguous), 104634355/122097920 blocks

Now to resize the filesystem

resize2fs /dev/md0
resize2fs 1.40.8 (13-Mar-2008)
Resizing the filesystem on /dev/md0 to 183146880 (4k) blocks.
The filesystem on /dev/md0 is now 183146880 blocks long.

Whoohoo!

Wow, I’m Neglient.

Saturday, May 17th, 2008

RAID has gone 695 days without being checked, check forced.

I think that’s the entire period of time that I’ve had my RAID running here at home. Woops.

I’ve decided against setting up a new raid for extra space, as that will cost $500 or so and I just don’t need the multi-terrabytes of storage that would give me. Instead I paid a premium for another 250GB drive and have decided to ‘grow’ the current RAID instead.

I could have purchased a larger drive (twice as large actually) for a mere $20 more, but that space would also be wasted considering the current RAID is 250GB drives. I suppose I could do the swap/rebuild business over and over again until the array is using larger drives. That’s a lot of work and I would rather not go through that trouble.

So, for now, hopefully growing the current array by one drive will do the trick. I will, eventually, probably upgrade to something more substantial, but I think an extra 250GB will do me quite nicely for a while. I’m not really the type to store the entire internet anyway (unlike my brother Matt, hah).