Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a server with 2 hard drives mounted as raid 1 using Ubuntu 8.04.4 LTS

Filesystem            Size  Used Avail Use% Mounted on
/dev/md1              5.0G  5.0G     0 100% /
varrun                2.0G   92K  2.0G   1% /var/run
varlock               2.0G     0  2.0G   0% /var/lock
udev                  2.0G   36K  2.0G   1% /dev
devshm                2.0G     0  2.0G   0% /dev/shm
/dev/md2              688G  2.8G  651G   1% /home

How can I resize the / partition without having physical access to the server ? I read this is possible using a ubuntu disc .. but this is not an option for me.

share|improve this question
    
Oh I have a great memory of doing this...and then not updating the fstab before the next reboot. That was a nice 2 hour drive to the colo...taught me a lesson...all that said, be careful if you're creating additional partitions –  Jason Berg Jan 26 '11 at 2:53
add comment

1 Answer 1

As suggested, by this article, you can expand the ext3 partition online with sudo resize2fs /dev/md1. This requires that the /dev/md1 array have available unused space. If it does not, you will need to need to find someone with physical access to add an additional harddrive to the server, then add the new hard drive to the RAID array. Once the array is done rebuilding, you can then grow the ext3 partition as I described earlier. All of this can be done without rebooting the machine or taking any of the filesystems offline.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.