How do I increase partition size in a RAID 1 array with minimal downtime?
May 4, 2012 6:08 AM Subscribe
RAID 1 Partition Filter: Physical capacity increased. How do we increase the partition size to match on a production machine? Details within.
We have a production server running Debian with a RAID 1. Yesterday, the 3ware RAID card showed that one of the 120 gig drives had become degraded and we replaced it with a 250 gig drive. After the array rebuilt, the tech on site decided to pull the other 120 gig drive and replace it with a 500 gig drive and increase the storage on the machine to 250 gigs. The array rebuilt again and all is running fine, however, the partition size remains at 120 gigs (minus swap, etc).
What's the best way to resize the partition with the least amount of downtime for the machine? Ideally, it would be on the fly. A few restarts would be ok. A backup/restore would probably be more trouble than it's worth, but if that's the only option, we'd like to hear about it anyways. The host handles mail and MySQL slave duties.
Snowflakery: Linux 3.1.0-1-amd64, Debian wheezy/testing, 3DM 2 version 2.07.00.003, ext3
Further info upon request. Thanks in advance.
posted by even butter to computers & internet (4 answers total) 2 users marked this as a favorite
Look at resize2fs to do this.
You'll need to unmount the partition to run it. This may or may not mean downtime, depending on how your server is configured.
Here's a bit more: http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html (that doc is about what to do after extending a LVM partition, which should be a similar enough situation to what you've done). There are other HOWTOs lying around the Interweb. Just search for "resize filesystem linux" or something like that.
posted by chengjih at 6:26 AM on May 4, 2012 [1 favorite]