<html><head></head><body>I generally prefer to use software RAID 1 for the physical devices. This creates a device such as /dev/md0<br><br>Then create a physical volume for LVM from /dev/md0<br><br>If you're using two identical drives in a server you can put /boot on /dev/md0, swap on /dev/md1 and then give everyone else to /dev/md2 and make that the LVM physical volume.<br><br>Hope that helps,<br>Ben<br><br><div class="gmail_quote">On 1 December 2021 19:44:25 GMT, bascule via Swlug <swlug@mailman.lug.org.uk> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre dir="auto" class="k9mail">i've just had my first ever sudden total failuer of a hard drive in decades, <br>in the past I always had some warning:)<br>since this drive was a 1tb partition full of stuff, it wasn't really backed <br>up, on account of that taking forever!<br>so,pending new drive arriving I thought i'd look at having my new drive <br>partition mirrored on a partition on another drive, the backup not being for <br>accidental deletion protection but device failure.<br>i thought that lvm might help and indeed there are tutorials on how to do <br>this, but none of them make clear or otherwise that each separate partition is <br>a moirror of the other.<br>all that is guaranteed is that there are two copies of the filesystem <br>somewhere in the logical volume.<br><br>assuming that i add two new identical physical volumes to a volume group and <br>make a logical volume using the -m 1 option, will each partition be a copy of <br>the other such that i can recover the data if one partition disappears due to <br>its device dying?<br><br>bascule<br><br><br><br><div class="k9mail-signature">-- <br>Swlug mailing list<br>Swlug@mailman.lug.org.uk<br><a href="https://mailman.lug.org.uk/mailman/listinfo/swlug">https://mailman.lug.org.uk/mailman/listinfo/swlug</a></div></pre></blockquote></div></body></html>