Interrupted Volume Conversion Process Using ‘lvconvert’ Cause Data Loss

133

There are various techniques available in order to safeguard your valuable data, and disk mirroring is the most popular among them. It is the process of create an exact replica of all the data stored on your hard drive.

You can easily convert your basic hard drive volumes to mirrored volumes, which replicates your data to prevent any sort of data loss situations. On Linux operating system-based computer, you can convert your linear logical hard drive volume to the mirror logical volume using ‘lvconvert’ utility. However, you should play safely while converting a Linux volume, as interruption to the process may cause hard drive failure and data loss situations. At this point of time, you need to opt for Linux data recovery solutions to get your precious data back.

The lvconvert is an inbuilt utility of Linux operating system that enables you to change a linear Linux hard drive volume to mirror logical volume. You can also use this utility to remove or add disk logs from the mirror devices. The command line utility supports various options or parameters to perform specific task. Some of the most common parameters of this utility are as given below:

1) -m, –mirrors Mirrors-

This option specifies degree of mirror that you want to create. For instance, ‘-m 1′ converts original Linux volume to mirror logical volume with one linear volume and one copy.

2) corelog-

This parameter tells the tool to switch mirror from employing a persistent (disk-based) log to in-memory log. It is possible only if –mirror argument is of same degree of mirror that you are modifying.

3 )  R, –regionsize MirrorLogRegionSize

– It divides the mirror into various regions of defined size in MB (megabyte).

4)  -s, –snapshot

– It creates the snapshot from an existing Linux volume using another volume with same origin.

5)  -Z, –zero y/n-

This option controls zeroing of first KB of information in snapshot. The snapshot is not zeroed if volume is set to read-only.