<?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=2510&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Refractasnapshot issue with lvm2 and gparted]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2510</link>
		<description><![CDATA[The most recent posts in Refractasnapshot issue with lvm2 and gparted.]]></description>
		<lastBuildDate>Thu, 06 Dec 2018 17:54:59 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Refractasnapshot issue with lvm2 and gparted]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13137#p13137</link>
			<description><![CDATA[<p>Good one to know. I never heard of multipath-tools and don&#039;t have it installed. Also never used dmsetup commands. Thanks for that!</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 06 Dec 2018 17:54:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13137#p13137</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refractasnapshot issue with lvm2 and gparted]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13132#p13132</link>
			<description><![CDATA[<p>Found the service that is mapping the drives!</p><p>/etc/init.d/multipath-tools</p><p>While this is running and mapping drives<br />1) Gparted can&#039;t scan or fix drives<br />2) Refracta Installer will be unable to install on the selected drives.</p><p>To Fix:<br />To be able to use Gparted and Refracta Installer:<br />1) Stop the service manually</p><div class="codebox"><pre><code>$ sudo service multipath-tools stop</code></pre></div><p>2) Find the drives:</p><div class="codebox"><pre><code>$ sudo dmsetup ls
ST3500630NS_5QG196JX-part4      (254:4)
ST3500630NS_5QG196JX-part3      (254:3)
ST3500630NS_5QG196JX-part2      (254:2)
ST3500630NS_5QG196JX-part1      (254:1)
ST3500630NS_5QG196JX</code></pre></div><p>Then remove the drives:</p><div class="codebox"><pre><code>$ sudo dmsetup remove ST3500630NS_5QG196JX-part{1,2,3,4}
$ sudo dmsetup remove ST3500630NS_5QG196JX</code></pre></div><p>Check the drives again:</p><div class="codebox"><pre><code># dmsetup ls
No devices found</code></pre></div><p>Stop this service from starting at boot with sysv-rc-conf.</p><div class="codebox"><pre><code>$ sudo sysv-rc-conf</code></pre></div><p>Scroll down to multipath-tools and delete &quot;X&quot; from all run levels<br />Reboot and enjoy the raw drives once again!</p><p>Great!<br />Now can get busy with Gparted and Refracta Installer!</p>]]></description>
			<author><![CDATA[dummy@example.com (rdav)]]></author>
			<pubDate>Thu, 06 Dec 2018 12:28:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13132#p13132</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refractasnapshot issue with lvm2 and gparted]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13036#p13036</link>
			<description><![CDATA[<p>Hi fsmithred, </p><p>Thanks for &quot;update-initramfs -u&quot;!</p><p>So I stopped the lvm, mdadm services, removed the partitions with dmsetup, and then removed and purged lvm2, mdadm and dmraid.<br />Ran &quot;update-initramfs -u&quot;, and &quot;update-grub&quot; and rebooted the host machine.<br />Still the /dev/mapper devices are there, so something else is starting the drive mapper. <br />Removed the mapped drives with &quot;dmsetup remove&#160; xxx&quot;&#160; and checked to see if the drives and partitions were active as &quot;raw&quot; devices in /dev/disk/by-id<br />then re-ran refractasnapshot and made a bootable USB stick.</p><p>On booting, gparted couldn&#039;t check a drive as said drive was already mounted. <br />By drive mapper as in /dev/disk/by-id/ xxxxx -&gt; /./dm-0<br />so located mapped drives with &quot;dmsetup ls&quot; and then removed the mapper drives with &quot;dmsetup remove xxxx&quot;<br />so gparted could then scan drives.</p><p>Next, I looked at removing dmsetup on the host machine and found a lot of packages depend on this, so maybe one of these are starting the drive mapper?</p><p>BTW, I found a different machine and installed a fresh copy of Devuan Ascii and found that all the drives and partitions were listed as &quot;raw&quot; devices in /dev/disks/by-id with out any dm-0 etc that the drive mapper was assigning on the host machine above.<br />This tells me that its some package I have installed after the initial Devuan Ascii install. <br />So I read about drive mapper over the weekend and test to if I can find the package(s) involved.</p><p>thanks again</p>]]></description>
			<author><![CDATA[dummy@example.com (rdav)]]></author>
			<pubDate>Fri, 30 Nov 2018 08:39:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13036#p13036</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refractasnapshot issue with lvm2 and gparted]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12995#p12995</link>
			<description><![CDATA[<p>Doh! You need to rebuild the initramfs without lvm support. I&#039;m not sure if disabling it in all runlevels before running <span class="bbc">update-initramfs -u</span> is enough. There may be a config file with a setting something like the one for mdadm. Another way to do it would be to remove lvm2 and mdadm, and the initramfs will be rebuilt automatically without those items.<br />.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 28 Nov 2018 19:05:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12995#p12995</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refractasnapshot issue with lvm2 and gparted]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12981#p12981</link>
			<description><![CDATA[<p>I don&#039;t know how that could happen. Are you making new snapshots or doing this on a persistent partition after making changes? Either of those ways should work.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 28 Nov 2018 13:43:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12981#p12981</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refractasnapshot issue with lvm2 and gparted]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12980#p12980</link>
			<description><![CDATA[<p>Hi fsmithred, </p><p>Thanks for the tips re lvm and mdadm</p><p>/dev/mapper persisted after services lvm2, mdadm were deactivated via sysv-rc-conf</p><p>In addition, I edited /etc/mdadm/mdadm.conf to prevent auto starting of any raid arrays<br />And removed the lvm partitions with dmsetup remove &lt;partition&gt; which got the system back to raw disks and enabled gparted to check the physical disks.&#160; </p><p>still after reboot the /dev/mapper persisted !!!</p><p>What else could be keeping /dev/mapper in place?<br />What else could be done to permanently remove /dev/mapper?</p><p>thanks in advance!</p><p>The details:...</p><div class="codebox"><pre class="vscroll"><code># fdisk -l
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors                                                       
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos      
Disk identifier: 0x000672f8              
                                              
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048  58593279  58591232    28G 83 Linux
/dev/sda2        58595326 488396799 429801474   205G  5 Extended
/dev/sda5        58595328 478515199 419919872 200.2G 83 Linux
/dev/sda6       478517248 488396799   9879552   4.7G 82 Linux swap / Solaris

Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes                         
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes                    
Disklabel type: dos           
Disk identifier: 0x00029c92                                  
                                                                        
Device     Boot Start       End   Sectors   Size Id Type       
/dev/sdb1          63 488392064 488392002 232.9G 83 Linux

Disk /dev/mapper/VB0250EAVER_S2A0GLHE: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes                  
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos                             
Disk identifier: 0x00029c92           
                                
Device                                 Boot Start       End   Sectors   Size Id Type
/dev/mapper/VB0250EAVER_S2A0GLHE-part1         63 488392064 488392002 232.9G 83 Linux</code></pre></div><p>so then I edited /etc/mdadm/mdadm to prevent the mounting of the raid at boot<br />adding:</p><div class="codebox"><pre><code># ignore all harddrives
ARRAY &lt;ignore&gt; UUID=00000000:00000000:00000000:00000000

# dont Autostart
AUTO -all</code></pre></div><p>rebooted and&#160; /dev/mapper persisted </p><p>then removed the lvm partition via dmsetup: </p><div class="codebox"><pre><code># dmsetup ls
VB0250EAVER_S2A0GLHE    (253:0)
VB0250EAVER_S2A0GLHE-part1      (253:1)

# dmsetup remove VB0250EAVER_S2A0GLHE-part1
# dmsetup remove VB0250EAVER_S2A0GLHE</code></pre></div><p>rebooted and the /dev/mapper was still there!!</p>]]></description>
			<author><![CDATA[dummy@example.com (rdav)]]></author>
			<pubDate>Wed, 28 Nov 2018 11:46:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12980#p12980</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refractasnapshot issue with lvm2 and gparted]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12971#p12971</link>
			<description><![CDATA[<p>I&#039;ve seen the same issue with mdadm and raid. To avoid having to manually unmount and close the volume group, you could disable the lvm2 service before making a snapshot. That can be done with update-rc.d or sysv-rc-conf. If you want to get fancy, you could have lvm enabled or disabled in different runlevels, and then make boot menu entries for the different levels. (There&#039;s already one for runlevel 3 as text mode in the stock refractasnapshot menu..) That way, it would be available if you need to boot live and access files in the lvm.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 27 Nov 2018 11:13:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12971#p12971</guid>
		</item>
		<item>
			<title><![CDATA[Refractasnapshot issue with lvm2 and gparted]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12970#p12970</link>
			<description><![CDATA[<p>A bootable USB stick made with Refractasnapshot (refractasnapshot-10.1.1 (20171213)) on Devuan Ascii<br />is unable to use gparted to check disks on a target machine.</p><p>Gparted complains that the disk on target machine are still in use.<br />Listing the device names for the partitions shows the partitions are mounted as logical volumes managed by lvm2</p><div class="codebox"><pre><code>ls -la /dev/disk/by-id                                              
total 0                                                                                                                                                         
..                                                                                                                   
..                                                                          
lrwxrwxrwx 1 root root    9 Nov 27 21:26 ata-VB0250EAVER_Z2AABSSW -&gt; ../../sda
lrwxrwxrwx 1 root root   10 Nov 27 21:26 ata-VB0250EAVER_Z2AABSSW-part1 -&gt; ../../sda1                                                                           
lrwxrwxrwx 1 root root   10 Nov 27 21:26 ata-VB0250EAVER_Z2AABSSW-part2 -&gt; ../../sda2
lrwxrwxrwx 1 root root   10 Nov 27 21:26 ata-VB0250EAVER_Z2AABSSW-part5 -&gt; ../../sda5                                                                           
lrwxrwxrwx 1 root root   10 Nov 27 21:26 ata-VB0250EAVER_Z2AABSSW-part6 -&gt; ../../sda6
lrwxrwxrwx 1 root root   10 Nov 27 21:02 dm-name-VB0250EAVER_S2A0GLHE -&gt; ../../dm-0
lrwxrwxrwx 1 root root   10 Nov 27 21:02 dm-name-VB0250EAVER_S2A0GLHE-part1 -&gt; ../../dm-1
lrwxrwxrwx 1 root root   10 Nov 27 21:02 dm-uuid-mpath-VB0250EAVER_S2A0GLHE -&gt; ../../dm-0
lrwxrwxrwx 1 root root   10 Nov 27 21:02 dm-uuid-part1-mpath-VB0250EAVER_S2A0GLHE -&gt; ../../dm-1</code></pre></div><p>So I stopped and removed the services lvm2, lvm2-lvmetad, lvm2-lvmpolld and reran refractasnapshot.</p><p>However, this wasn&#039;t enough as the partitions were still mounted as logical volumes and gparted was still unable to check the disks on the target machine.</p><p>How can refractasnapshot be configured to use &quot;plain vanilla&quot; physical volumes so gparted can do its work and check and partition disks on a target machine? </p><p>This would make it much easier to deploy Devuan at my workplace on existing machines.</p><p>thanks in advance!</p>]]></description>
			<author><![CDATA[dummy@example.com (rdav)]]></author>
			<pubDate>Tue, 27 Nov 2018 10:44:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12970#p12970</guid>
		</item>
	</channel>
</rss>
