Today, I wanted to expand the storage. I had initially allocated 300GB to the logical volume. I have used over 50% of the storage volume already and before I dump anymore on it, I thought I'd expand the volume.
First some background: I have 4 x 320GB SATA drives. I use software RAID to create a RAID-5 partition and used Linux's Logical Volume Manager (LVM) to manage my volumes within the partition. I use the ext3 filesystem to store my files.
To expand the ext3 filesystem, there are three steps:
- Make sure you have space in the RAID Volume Group (VG).
- Use lvextend to extend the logical volume to whatever size that is available from the VG.
- Use resize2fs to resize the ext3 filesystem.
On to resize2fs. This command is a bit of a memory hog too. It was running for a while from the console until it gobbled up all memory and caused the kernel to panic and hang. Well, that could not be good. Here I had 150GB worth of files and was I about to lose all of it?
I knew I had more RAM somewhere at home so I went to an old machine and yanked out a bar of RAM. With an additional 256MB, my NAS was restarted. I re-executed resize2fs. It took its time ... did not crash ... it took more time ... still not crashing. The signs were good. It completed without any errors. It expanded the 300GB volume to about 600GB.
The ext3 filesystem has shown to me to be quite resilient to operational failure.
No comments:
Post a Comment