Today i was wondering when i found, my ubuntu server’s home partition is about to finish. It was having lots of projects we are working on. Replacing the old hardisk with the new of bigger size is one solution but it is so much time consuming. Ohhhh it is so scary. Copy every thing from old to new hard drive. Install every single application and library my scripts needed.
Obviously that is time consuming process. But thanks to Logical Volume Manager(LVM). Fortunately i have used LVM to configure my old hard drive and that really helped me to extend my “home” drive in minutes without copying and all boring stuff as i explained above. My old hard disk scheme was:
So i was going out of space. What i did, I purchased new 1TB WD sata hard drive. And configure that on secondary sata port. My ubuntu box detect the new hard drive. I make it sure by following command.
So this is how i extend all space. I noticed while extending i was able to access all projects from that extending drive. There was no crash or no restart (usually forced by windows for such tasks :) ). It means process is so efficient, you can use your disk even while making this arrangement to increase more space. Anyway, That how i get to work everything within 10 mins. It was really amazing experience.