|A lack of disk space
||[Jul. 5th, 2007|11:18 pm]
The other day, I noticed that I was almost out of disk space on /var and /home on my home workstation, and the LVM group they were on. Given the rather large number and size of disks in the machine (2x120gb and 1x200gb), this was a bit of a surprise.|
Then I remembered that when I set the machine up, I had configured it for degraded RAID (since I only had the 1 disk at the time), put the 2nd disk in 2 weeks later, but forgot to enable it for RAID for another year. After that, I was less surprised at myself...
So, I decided to take a look at where all my space had gone. After a bit of poking, I found a version of windows (perhaps 2000, maybe NT) that I hadn't touched in many many years, and is probably from a different machine. Also there was a 10gb Fat32 partition with nothing on it, and several partitions copied by hand from my primary disk. There was also two copies of my music collection (one un-touched and un-mounted for ~8 months), and lots of things I now own on dvd. Oh, and lots of crap I just deleted.
Several hours of copying and LVMing later, and I had freed up two 70ish gb partitions, on two different disks. I could then build a second RAID array on them, chuck lvm on top, and shuffle /home off the smaller raid lvm. Finally, I had to reboot to single user mode, start RAID and LVM by hand (that was fun...), then I could lvm extend /usr and /var. Dropped back into runlevel 3, and I had lots of disk space again, and more importantly, disk space in the right place.
Now I just need to decide if I'm feeling lucky. If I am, I'll try an in-place migration of / to RAID, rather than the ad-hoc sync of it to the other disk I have now. If not, I'll just have to remember to sync it more often (I last did it 6 months back...)