<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SupportSages &#187; restoration</title>
	<atom:link href="http://www.supportsages.com/blog/tag/restoration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Thu, 05 Jan 2012 03:05:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>MSSQL &#8211; Two common issues while restoring a backup and it&#8217;s solutions</title>
		<link>http://www.supportsages.com/blog/2010/02/mssql-two-common-issues-while-restoring-a-backup-and-its-solutions/</link>
		<comments>http://www.supportsages.com/blog/2010/02/mssql-two-common-issues-while-restoring-a-backup-and-its-solutions/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 02:35:54 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[backup restoration]]></category>
		<category><![CDATA[database backup restoration]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[restoration]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=625</guid>
		<description><![CDATA[There are two most common issues while restoring the database (usually ending in .bak format).


<strong>First error</strong>
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing '<strong>user_database</strong>' database. (Microsoft.SqlServer.Express.Smo)


<strong>Solution for First error</strong>
	<li>Connect to the database server</li>
<a href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot.png"><img class="alignnone size-full wp-image-626" title="Logging in" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot.png" alt="Logging in to the web server" width="368" height="273" /></a>
	<li>Go to the restore option and select Restore Database

<a href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-1.png"><img class="alignnone size-full wp-image-627" title="Screenshot-1" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-1.png" alt="" /></a></li>
	<li>On the Restore page that loads up, make sure that the <strong>Destination for restore</strong> has the database you want to restore and in the<strong> Source for Restore</strong>, choose<strong> From device:</strong> ...]]></description>
			<content:encoded><![CDATA[<p>There are two most common issues while restoring the database (usually ending in .bak format).</p>
<p><strong>First error</strong><br />
System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing &#8216;<strong>user_database</strong>&#8216; database. (Microsoft.SqlServer.Express.Smo)</p>
<p><strong>Solution for First error</strong></p>
<li>Connect to the database server</li>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot.png" class="thickbox no_icon" rel="gallery-625" title="Logging in"><img class="alignnone size-full wp-image-626" title="Logging in" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot.png" alt="Logging in to the web server" width="368" height="273" /></a></p>
<li>Go to the restore option and select Restore Database
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-1.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-1"><img class="alignnone size-full wp-image-627" title="Screenshot-1" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-1.png" alt="" /></a></li>
<li>On the Restore page that loads up, make sure that the <strong>Destination for restore</strong> has the database you want to restore and in the<strong> Source for Restore</strong>, choose<strong> From device:</strong> And browse by clicking<strong> [..] </strong>and Add the file location there, the location where your database backup resides. You may need to browse the backup. If you get permission denied, copy the bak in the MSSQL folder.
<p><div id="attachment_629" class="wp-caption alignnone" style="width: 610px"><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-2.png" class="thickbox no_icon" rel="gallery-625" title="Attaching the database backup file"><img class="size-medium wp-image-629 " title="Attaching the database backup file" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-2.png" alt="Attaching the database backup file" width="600" height="252" /></a><p class="wp-caption-text">Attaching the database backup file</p></div></li>
<li>Restore it. Make sure that the <strong>Restore Checkbox is selected</strong>. And Click <strong>OK</strong>. And get ready for the error <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-3.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-3"><img class="alignnone size-full wp-image-630" title="Screenshot-3" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-3.png" alt="" /></a></li>
<li>Here comes the first error<strong>System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing &#8216;user_database&#8217; database. (Microsoft.SqlServer.Express.Smo)</strong><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-5.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-5"><img class="alignnone size-full wp-image-631" title="Screenshot-5" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-5.png" alt="" /></a><br />
And the solution is to go to <strong>Options </strong>-&gt; <strong>Overwrite Existing Database</strong> . But if you aren&#8217;t so lucky, you will be welcomed by another error as seen below. where it&#8217;s solution is to edit the path from D:\ to C:\ or whichever Drive, where your MSSQL is installed.</p>
<p><strong>System.Data.SqlClient.SqlError: Directory lookup for the file &#8220;D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\user_database.mdf&#8221; failed with the operating system error 3(The system cannot find the path specified.). (Microsoft.SqlServer.Express.Smo)</strong></p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-6.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-6"><img class="alignnone size-full wp-image-632" title="Screenshot-6" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-6.png" alt="" /></a></li>
<li>Both THE Solutions are in a single screen shot. The final screenshot <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-4.png" class="thickbox no_icon" rel="gallery-625" title="Screenshot-4"><img class="alignnone size-full wp-image-633" title="Screenshot-4" src="http://www.supportsages.com/blog/wp-content/uploads/2010/02/Screenshot-4.png" alt="" /></a></li>
<li>
Just edit D:\ProgramFiles\Microsoft&#8230; to C:\ProgramFiles\Microsoft or whichever directory where you installed the MSSQL server. Don&#8217;t keep database server on your system drive C: though.</li>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=MSSQL+-+Two+common+issues+while+restoring+a+backup+and+it%27s+solutions+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F625" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=MSSQL+-+Two+common+issues+while+restoring+a+backup+and+it%27s+solutions+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F625" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/02/mssql-two-common-issues-while-restoring-a-backup-and-its-solutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mount a LVM from a crashed and backup drive to the new HD to restore data</title>
		<link>http://www.supportsages.com/blog/2009/08/how-to-mount-a-lvm-from-a-crashed-and-backup-drive-to-the-new-hd-to-restore-data/</link>
		<comments>http://www.supportsages.com/blog/2009/08/how-to-mount-a-lvm-from-a-crashed-and-backup-drive-to-the-new-hd-to-restore-data/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 20:02:22 +0000</pubDate>
		<dc:creator>arnold</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup disk]]></category>
		<category><![CDATA[LVM crash]]></category>
		<category><![CDATA[restoration]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=529</guid>
		<description><![CDATA[<strong>Situation &#38; Requirement
</strong>

Server crashed and had to be reinstalled. OS along with cPanel was re-installed on a fresh hard disk. Needed to restore the cPanel backup from old LVM hard disk to the new hard disk. That process wasn't simple as I was getting unrecognised file system errors.

<strong>Solution</strong>

Made sure that the lvm tools are installed and available in the server. After that issued the following command
<blockquote>lvm vgchange --ignorelockingfailure -P -a y</blockquote>
The -P (Partial) will make logical volumes which are missing one of their disks available too.

vgchange -- Change attributes of a volume group

--ignorelockingfailure -- This lets you proceed with read-only ...]]></description>
			<content:encoded><![CDATA[<p><strong>Situation &amp; Requirement<br />
</strong></p>
<p>Server crashed and had to be reinstalled. OS along with cPanel was re-installed on a fresh hard disk. Needed to restore the cPanel backup from old LVM hard disk to the new hard disk. That process wasn&#8217;t simple as I was getting unrecognised file system errors.</p>
<p><strong>Solution</strong></p>
<p>Made sure that the lvm tools are installed and available in the server. After that issued the following command</p>
<blockquote><p>lvm vgchange &#8211;ignorelockingfailure -P -a y</p></blockquote>
<p>The -P (Partial) will make logical volumes which are missing one of their disks available too.</p>
<p>vgchange &#8212; Change attributes of a volume group</p>
<p>&#8211;ignorelockingfailure &#8212; This lets you proceed with read-only metadata operations such as lvchange  -ay and vgchange -ay even if the locking module fails. One use for this is in a system init script if the  lock  directory is mounted read-only when the script runs</p>
<p>-a &#8212; active or available</p>
<blockquote><p>lvm lvs</p></blockquote>
<p>The above command gives you output showing the name of the Volume Group and the name of the Logical Volume. The device entry will be created like /dev/VolGroup00/LogVol00/ and /dev/VolGroup00/LogVol01 etc. Finally run a fsck command to make it free of file system errors.</p>
<blockquote><p>fsck /dev/VolGroup00/LogVol00</p></blockquote>
<p>You are all set to go from here. As long as the lvm partition isn&#8217;t corrupt, following commands will get the oldhdd mounted to /oldhdd</p>
<blockquote><p>mkdir /oldhdd<br />
mount /dev/VolGroup00/LogVol00 /oldhdd</p></blockquote>
<p>This isn&#8217;t my tutorial. &#8220;Shamelessly&#8221; leeched from <a  title="TechBytes Canada" href="http://www.techbytes.ca/techbyte118.html" target="_blank">http://www.techbytes.ca/techbyte118.html</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=How+to+mount+a+LVM+from+a+crashed+and+backup+drive+to+the+new+HD+to+restore+data+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F529" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=How+to+mount+a+LVM+from+a+crashed+and+backup+drive+to+the+new+HD+to+restore+data+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F529" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/08/how-to-mount-a-lvm-from-a-crashed-and-backup-drive-to-the-new-hd-to-restore-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

