[mythtv-users] Linux software raid question
drescherjm at gmail.com
Fri Jun 6 17:37:33 UTC 2008
> I've done it at least 3 or 4 times now. I use RAID + LVM + XFS.
> Rough procedure is:
> 1. add new larger disk to system. Partition it with partitions the
> same size or slightly larger
> than the disk you are replacing. Leave the extra space unused for
> now until you have migrated
> the existing data.
> 2. fail all the partitions of the physical disk you want to remove
> manually (mdadm --manage -f)
> 3. hot remove the failed partitions (mdadm --manage -r)
> 4. hot add all the partitions you removed using the new larger disk.
> (mdadm --manage -a). Let system
> rebuild the array with the new disk. This could take a long time.
> 5. rinse and repeat until all your old disks are replaced with new larger ones
> 6. create new partitions in the empty space on the new larger disks
> and raid them.
> 7. add new partitions to physical volumes (pvcreate)
> 8. add physical volumes to volume group (vgextend)
> 9. extend Logical Volume to use space in volume group (lvextend)
> 10. extend XFS (xfs_growfs)
That is basically what I have done. Only difference instead of failing
partition I hot remove the drives. Then hot add the new ones and caopy
the partition table using sfdisk.
More information about the mythtv-users