Re: Resizing raid-1 on replacing failed disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guy wrote <snipped together from serveral replies>:

You will be replacing your boot disk (I think). This will be a grub
or lilo issue.

Thanks for your help! The array is not a boot disk (my bad - should have clarified)...

But I do have other notes: * logically remove the failed disk - "mdadm /dev/md0 -r /dev/hdc1"
* fail the smaller disk - "mdadm /dev/md0 -f /dev/hda1"
* wait a few seconds (was some issue with failing and removing too quickly)
* remove the smaller disk - "mdadm /dev/md0 -r /dev/hda1"

Thank you for this extra detail!

If you're partition is ext2 or ext3, you can use resize2fs. A word of
caution for you. I've used this utility many times, and it is
necessary to do a e2fsck -f on the partition to be resized BOTH
before and after.

And thanks again - this surely will help! It would perhaps be handy to have a tip on this (or more generally the resize array process) in the software-raid-faq (noting that e2fsck stuff is a file system rather than md issue). Perhaps I can contribute after completion.


Please wait for someone to help with this!  But not
me!  I don't trust my advice!  Other than my advice to wait for help.
:)

Could someone else please comment on the overall feasibility of resizing a raid-1 array to physically larger disks via this process?


- backup
* logically remove the failed disk - "mdadm /dev/md0 -r /dev/hdc1"
- physically remove the failed disk
- physically replace the failed disk with a larger disk
- add the new disk to the array and allow to resync
* fail the smaller disk - "mdadm /dev/md0 -f /dev/hda1"
* wait a few seconds (was some issue with failing and removing too quickly)
* remove the smaller disk - "mdadm /dev/md0 -r /dev/hda1"
- physically replace the active smaller disk with a larger disk
> ** e2fsck -f
- resize the ext3 partition
** e2fsck -f

Thanks and regards,

  matt



-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux