<html><head></head><body>Terrible autocorrect error:<br><br>I mistakenly wrote:<br><br>> You can't do what you originally suggested, but you might be making it more complicated than it needs to be.<br><br>This should say, you **can** do what you originally suggested.<br><br>Apologies for the Confucious.<br><br>Ben<br><br><div class="gmail_quote">On 1 December 2021 21:18:45 GMT, Ben Tullis 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;">
Hi bascule,<br><br>This is why I would use LVM on top of MD raid.<br><br>Let's say you have two 1TB drives in your host system.<br><br>Take 10 GB from each to mirror /boot. (That's very generous). Let's call this /dev/md0<br><br>Take another 10 GB to mirror swap. (That's probably over-generous and <br>assumes you can hot-swap. You could use RAID 0 and get 20 GB of faster swap instead, but that's not important right now. Let's call this /dev/md1<br><br>Then you have 980 GB to mirror the remainder of the drive. Let's call this device /dev/md2<br><br>Do a pvcreate /dev/md2<br><br>Create a volume group using /dev/md2 - Let's call this volume group vg-mirror<br><br>Create a logical volume on this volume group for your Windows VM. Give it 100 GB or whatever. Let's call this logical volume vg-mirror/lv-windows<br><br>You still have 880 GB on your vg-mirror volume group, in which you can create other mirrored logical volumes. You can use this for lv-root, lv-home and so on.<br><br>Hope that makes sense. I'm not near a computer at the moment, or I'd copy and paste some LVM commands to demonstrate.<br><br>You can't do what you originally suggested, but you might be making it more complicated than it needs to be.<br><br>Kind regards,<br>Ben<br><br><div class="gmail_quote">On 1 December 2021 20:48:26 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">thanks Matt and Ben, the usage would be to house an ntfs volume for my win10 <br>vm, i wouldn't want to use a whole drive, just two partitions each on a <br>separate drive, would this be ok using mdraid?<br><br>bascule<br><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></blockquote></div></body></html>