<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4456&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4456</link>
		<description><![CDATA[The most recent posts in Can I share a "data" LVM logical volume in a multi-boot linux setup?.]]></description>
		<lastBuildDate>Thu, 19 Aug 2021 14:24:45 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31063#p31063</link>
			<description><![CDATA[<p>The commands I posted for you are from the release notes of refracta gnu/linux. I wrote that part about 10 years ago, and I&#039;ve used it multiple times over the years. It really is just like mounting any other data partition. </p><p>On the other hand, if you try to share system files between two different systems, you&#039;ll probably run into some interesting problems we&#039;ve never seen before. But that would happen with or without lvm.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 19 Aug 2021 14:24:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31063#p31063</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31060#p31060</link>
			<description><![CDATA[<p>Thanks to all who replied.</p><p>It seems that what I was specifically interested, i.e. sharing a logical volume between linux instances in a multi-boot arrangement in exactly the same way as a normal partition, hopping between instances as the mood or need dictates, is something that our community here has no experience of.</p><p>@fsmithred and @rolfie, you seem to be describing doing it once or twice and getting away with it, without catastrophe.<br />That is encouraging, so thanks for that. However, I would also have been interested to hear from people who do it regularly, as part of their standard operating procedure, but it seems that we don&#039;t do that sort of thing here.</p><p>It could be that the idea is so ridiculous that it is not discussed, or is so commonplace that it is quite unremarkable.<br />If I ever get around to the experiment, I should probably start off with data I to which I am not too attached.</p>]]></description>
			<author><![CDATA[dummy@example.com (entropyagent)]]></author>
			<pubDate>Wed, 18 Aug 2021 23:48:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31060#p31060</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31055#p31055</link>
			<description><![CDATA[<div class="quotebox"><cite>entropyagent wrote:</cite><blockquote><div><p>Interesting, thanks. Are these &#039;parts&#039; logical volumes?</p></div></blockquote></div><p>In my case, no. I have 3 encrypted partitions for the fixed data, volatile Beowulf and volatile Chimaera. </p><p>The main system is an encrypted LVM for / and swap.</p><p>As fsmithred I have opened LVM shares to fix problems with live systems like Knoppix or the rescue mode of a boot medium often enough to say that I never had any issues.</p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Wed, 18 Aug 2021 18:09:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31055#p31055</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31054#p31054</link>
			<description><![CDATA[<p>I&#039;ve booted a live-usb and mounted lvm many times. it&#039;s just like mounting any other block device, with a few extra commands. Once it&#039;s attached to the filesystem, you can read and write files as you normally would. </p><p>I&#039;ve also mounted lvm from another installation on a different hard drive in the same computer. It works the same way.</p><p>A few extra commands. (Leave out the cryptsetup lines if your lvm is not encrypted.)</p><div class="codebox"><pre><code>___ MOUNT/UNMOUNT ENCRYPTED LVM ___

sudo cryptsetup luksOpen /dev/sdxY label  # then run lvdisplay to get the vg name and lv name
sudo vgchange -a y &lt;volume_group_name&gt; 
mount /dev/mapper/&lt;vg_name-lv_name&gt;  &lt;mountpoint&gt; 

umount &lt;mountpoint&gt;
sudo vgchange -a n &lt;volume_group_name&gt;
sudo cryptsetup luksClose label</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 18 Aug 2021 01:46:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31054#p31054</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31053#p31053</link>
			<description><![CDATA[<p>Well, thanks for the feedback so far. However, I am not really hearing anyone saying that they have actually done this sharing with a logical volume. Nor am I hearing people assuring me that &quot;It&#039;s at least as safe as sharing a normal partition, everybody does it, without a second thought&quot; or&#160; &quot;We do it a lot, never had any problems&quot;</p><p>Can anyone help with that?</p>]]></description>
			<author><![CDATA[dummy@example.com (entropyagent)]]></author>
			<pubDate>Tue, 17 Aug 2021 23:50:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31053#p31053</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31052#p31052</link>
			<description><![CDATA[<p>The host system does not need to be lvm to mount the data lvm. You just need lvm2 to be installed, and you can open the volume and mount it with a few commands.</p><p>A howto on keeping the configs separate on a shared home would probably be useful for a lot of people.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 17 Aug 2021 18:50:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31052#p31052</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31051#p31051</link>
			<description><![CDATA[<p>Interesting, thanks. Are these &#039;parts&#039; logical volumes?</p><p>So there is an lv with &quot;office data&quot; which is mounted by a Beowulf LVM instance when Beowulf is running, and by the Chimaera LVM instance when Chimaera is running? This seems to be similar to what I am hoping to do. For how long has this polyamorous arrangement been on the go without crashing&amp;burning? (No H8, Love is Love, etc) </p><p>Splitting /home into generic/sharable and instance-specific seems like it&#039;s worth a separate tutorial(hint, hint)? Or maybe you could link to the guides/tutorials you followed?</p>]]></description>
			<author><![CDATA[dummy@example.com (entropyagent)]]></author>
			<pubDate>Tue, 17 Aug 2021 17:28:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31051#p31051</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31049#p31049</link>
			<description><![CDATA[<p>Sharing a LVM logical volume should work fine without any problems as long as its not used for distribution specific configuration data. LVM2 is mature, and there should be no major difference in the LVM implementation between distributions. Booting into one or the other should not matter for a data storage, and as long as you use a mature file system like ext4 on the share. </p><p>I have split my /home for my multiboot setup with Beowulf and Chimaera into a partition that holds all office data like pictures, LO files etc, and a distribution specific part that holds all the hidden config and cache files. The office share is linked into the distribution specific part during boot. </p><p>rolfie</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Tue, 17 Aug 2021 16:33:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31049#p31049</guid>
		</item>
		<item>
			<title><![CDATA[Can I share a "data" LVM logical volume in a multi-boot linux setup?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=31046#p31046</link>
			<description><![CDATA[<p>Can I share an lvm logical volume between linux instances in a linux-only dual-boot (OK, maybe multiple-boot) setup?</p><p>I&#160; understand that sharing such system-customised partitions as /boot or /home might cause confusion, but have on several occasions shared &quot;data&quot; partitions between linux instances (even ones that are running simultaneously, usually via NFS.) I have also served LVM LVs via NFS. Is native LVM different in this regard? Is there more of a risk of data corruption ?<br />Are there risks, gotchas, implications to consider?</p><p>For example, consider I set up:</p><p>Instance01....PV01_on_Inst01....VG01_on_Inst01....LV01_in_VG01_on_Inst01&#160; </p><p>Now on the same hardware. I set up the option to boot into another instance:</p><p>Instance02....PV01_on_Inst02....VG01_on_Inst02....LV01_in_VG01_on_Inst02</p><p>In this case &quot;LV01_in_VG01_on_Inst01&quot;&#160; and &quot;LV01_in_VG01_on_Inst02&quot;&#160; actually contain the same data, because they are the same &quot;logical volume&quot;/&quot;partition&quot;/thing.</p><p>Implications, risks, gotchas? Is it possible that this might actually be safe ONLY if the sharing instances never exist at the same time? If so, it&#039;s OK in a multi-boot setup on a single machine?</p><p>For example, I don&#039;t plan on doing this at present, but:</p><p>I have the idea that I can create a snapshot of an LV (in this case, say, on Instance01) and it will contain all changes made to the original since the creation of the snapshot. If a change happens while this LV is mounted on Instance02, are these changes lost? Will rebooting back into Instance01 cause a sudden rush of updates to the snapshot, or are the changes lost Will the snapshot be hopelesly corrupted?</p><p>Or have I completely misunderstood what LVM is about?</p>]]></description>
			<author><![CDATA[dummy@example.com (entropyagent)]]></author>
			<pubDate>Tue, 17 Aug 2021 14:31:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=31046#p31046</guid>
		</item>
	</channel>
</rss>
