<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Fixing pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2 umount error</title>
	<atom:link href="http://backdrift.org/fixing-pivotroot-pivot_rootsysrootsysrootinitrd-failed-2-umount-error/feed" rel="self" type="application/rss+xml" />
	<link>http://backdrift.org/fixing-pivotroot-pivot_rootsysrootsysrootinitrd-failed-2-umount-error</link>
	<description></description>
	<lastBuildDate>Sat, 21 Jan 2012 13:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kristian Reese</title>
		<link>http://backdrift.org/fixing-pivotroot-pivot_rootsysrootsysrootinitrd-failed-2-umount-error/comment-page-1#comment-328</link>
		<dc:creator>Kristian Reese</dc:creator>
		<pubDate>Thu, 20 May 2010 05:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://backdrift.org/?p=133#comment-328</guid>
		<description>I came across this problem as well with iscsi LUNs using qlogic HBA&#039;s.  The solution in a nutshell for me was to rebuild initrd with the new SCSI ID&#039;s of the LUNs and update the multipath configuration.  

boot from cdrom and linux rescue

mkdir /target
mount /dev/sda1 /target


SDA_ID=&quot;`/sbin/scsi_id -g -u -s /block/sda`&quot;
SDB_ID=&quot;`/sbin/scsi_id -g -u -s /block/sdb`&quot;
SDC_ID=&quot;`/sbin/scsi_id -g -u -s /block/sdc`&quot;

cp /target/root/multipath-files/multipath.conf /target/etc/multipath.conf
sed -i  -e &quot;s:@SDAID@:${SDA_ID}:g&quot; \
        -e &quot;s:@SDBID@:${SDB_ID}:g&quot; \
        -e &quot;s:@SDCID@:${SDC_ID}:g&quot; /taret/etc/multipath.conf

losetup /dev/loop1 /target/root/multipath-files/initrd.img

mkdir /target/root/multipath-files/tmp
mount /dev/loop1 /target/root/multipath-files/tmp
cp /target/etc/multipath.conf /target/root/multipath-files/tmp/etc/multipath.conf
umount /target/root/multipath-files/tmp
losetup -d /dev/loop1
rmdir /target/root/multipath-files/tmp

cp /target/root/multipath-files/initrd.img /target/root/multipath-files/initrd.img.tmp
gzip /target/root/multipath-files/initrd.img.tmp
mv /target/root/multipath-files/initrd.img.tmp.gz /target/boot/initrd-KERNEL_VERSION-mpath.img

--
Kristian Reese</description>
		<content:encoded><![CDATA[<p>I came across this problem as well with iscsi LUNs using qlogic HBA&#8217;s.  The solution in a nutshell for me was to rebuild initrd with the new SCSI ID&#8217;s of the LUNs and update the multipath configuration.  </p>
<p>boot from cdrom and linux rescue</p>
<p>mkdir /target<br />
mount /dev/sda1 /target</p>
<p>SDA_ID=&#8221;`/sbin/scsi_id -g -u -s /block/sda`&#8221;<br />
SDB_ID=&#8221;`/sbin/scsi_id -g -u -s /block/sdb`&#8221;<br />
SDC_ID=&#8221;`/sbin/scsi_id -g -u -s /block/sdc`&#8221;</p>
<p>cp /target/root/multipath-files/multipath.conf /target/etc/multipath.conf<br />
sed -i  -e &#8220;s:@SDAID@:${SDA_ID}:g&#8221; \<br />
        -e &#8220;s:@SDBID@:${SDB_ID}:g&#8221; \<br />
        -e &#8220;s:@SDCID@:${SDC_ID}:g&#8221; /taret/etc/multipath.conf</p>
<p>losetup /dev/loop1 /target/root/multipath-files/initrd.img</p>
<p>mkdir /target/root/multipath-files/tmp<br />
mount /dev/loop1 /target/root/multipath-files/tmp<br />
cp /target/etc/multipath.conf /target/root/multipath-files/tmp/etc/multipath.conf<br />
umount /target/root/multipath-files/tmp<br />
losetup -d /dev/loop1<br />
rmdir /target/root/multipath-files/tmp</p>
<p>cp /target/root/multipath-files/initrd.img /target/root/multipath-files/initrd.img.tmp<br />
gzip /target/root/multipath-files/initrd.img.tmp<br />
mv /target/root/multipath-files/initrd.img.tmp.gz /target/boot/initrd-KERNEL_VERSION-mpath.img</p>
<p>&#8211;<br />
Kristian Reese</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  backdrift.org/fixing-pivotroot-pivot_rootsysrootsysrootinitrd-failed-2-umount-error/feed ) in 0.31872 seconds, on Feb 5th, 2012 at 2:56 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 3:56 pm UTC -->
