Recover data after lvreduce on “/”

Posted on

Recover data after lvreduce on “/” – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, lvm, hard-drive, data-recovery, .

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?

Solution :

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.