Why LVM rocks!
- April 21st, 2009
- Write comment
Howdy,
Yesterday at work i had to extend a disk on a Lotus Domino server that i was not able to stop. Since the LUN was on a LVM group i knew i could extend the VG without disrupting the Domino server but i did not just want to add a new LUN to the VG since that tends to get messy after a while.
So i decided to try out pvmove. I had heard some horror stories that it would take ages etc, but since Red Hat supports the tool i decided to try it.
Amazingly i was able to add a new LUN to the VG (one without a partition for a easy resize experience later). The original PV was around 128GB, and it took about 25-35 minutes to move all the data of the PV!
While HP-UX administrators tend to tell you to just use mirroring instead of pvmove, and then just break the mirror and remove the smaller LUN, i found out that what pvmove really does is to create a mirror, and then copy the extends and in the end, remove the mirror. Just make sure you either background the pvmove task or run it in a screen session, preferably with -i 5!
I’m off to watch some telly….
Bgrds,
Finnzi