[Swlug] using lvm for mirror

bascule asura at theexcession.co.uk
Wed Dec 1 19:45:19 UTC 2021


i've just had my first ever sudden total failuer of a hard drive in decades, 
in the past I always had some warning:)
since this drive was a 1tb partition full of stuff, it wasn't really backed 
up, on account of that taking forever!
so,pending new drive arriving I thought i'd look at having my new drive 
partition mirrored on a partition on another drive, the backup not being for 
accidental deletion protection but device failure.
i thought that lvm might help and indeed there are tutorials on how to do 
this, but none of them make clear or otherwise that each separate partition is 
a moirror of the other.
all that is guaranteed is that there are two copies of the filesystem 
somewhere in the logical volume.

assuming that i add two new identical physical volumes to a volume group and 
make a logical volume using the -m 1 option, will each partition be a copy of 
the other such that i can recover the data if one partition disappears due to 
its device dying?

bascule





More information about the Swlug mailing list