Recover data after lvreduce on "/"

James Feiner asked:

I accidentally ran lvreduce on / instead of “/home” on a RHEL 5.9 system that unfortunately had a lot of code that was not backed up, and the system will not boot now obviously.

What is the best way to go about trying to recover files from the disk. Can I mount the other logical volumes especially /home, /etc, /var, /opt in single user mode?

My answer:

Who cares about /? All your important stuff should be in the other logical volumes, and as long as you never touched those, you should be able to access them without issue from a rescue CD.

Of course, you’re lucky this time. Next time, you may not be. Before you do anything else beyond this, get backups in place.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.