<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "could not read block"]]></title>
		<link>http://forums.enterprisedb.com/posts/list/3.page</link>
		<description><![CDATA[Latest messages posted in the topic "could not read block"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>could not read block</title>
				<description><![CDATA[ Hi,<br /> <br /> What would be the reason for such errors:<br /> <br /> NOTICE:  -20000could not read block 11079 of relation 1228638/406241/1743636: read only 0 of 8192 bytes<br /> <br /> Is this because of any corrupted data inserted or bad block with hardware.<br /> <br /> Is there any way to resolve this kind of error. This is the problem getting while trying to retrieve data.<br /> <br /> Thanks,<br /> Venkat.]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7246.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7246.page</link>
				<pubDate><![CDATA[Wed, 21 Oct 2009 08:48:03]]> GMT</pubDate>
				<author><![CDATA[ Venkat_B]]></author>
			</item>
			<item>
				<title>could not read block</title>
				<description><![CDATA[ [quote=Venkat_B]Hi,<br /> <br /> What would be the reason for such errors:<br /> <br /> NOTICE:  -20000could not read block 11079 of relation 1228638/406241/1743636: read only 0 of 8192 bytes<br /> <br /> Is this because of any corrupted data inserted or bad block with hardware.<br /> [/quote]<br /> <br />    This is most usually seen when you have some kind of problem at the hardware level.<br /> <br /> <br /> [quote]<br /> Is there any way to resolve this kind of error. This is the problem getting while trying to retrieve data.<br /> <br /> Thanks,<br /> Venkat.[/quote]<br /> <br />   Well, what operation were you doing when this happened?  A select statement?<br /> ]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7247.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7247.page</link>
				<pubDate><![CDATA[Wed, 21 Oct 2009 08:50:55]]> GMT</pubDate>
				<author><![CDATA[ scottiebo]]></author>
			</item>
			<item>
				<title>Re:could not read block</title>
				<description><![CDATA[  Hi Venkat,<br /> <br />   This is most probably because of hardware issue. However, sometimes it happened because of overflow of data on the same <br />   disk or the disk is in read only mode. tRY to check it out with your SYS. admin. <br /> <br /> sam jas ]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7250.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7250.page</link>
				<pubDate><![CDATA[Thu, 22 Oct 2009 01:40:27]]> GMT</pubDate>
				<author><![CDATA[ sam_jass]]></author>
			</item>
			<item>
				<title>Re:could not read block</title>
				<description><![CDATA[ Hi Scottiebo and Sam,<br /> <br /> Thanks for your reply. I am running just count(*) when i got this error:<br /> (select count(*) from test_table where columnid between 10000 and 20000;)<br /> <br /> Is dropping the entire table and reloading is the only solution or do we have any other?<br /> <br /> Because if i have million of rows with table and i have this error ... then even reloading data will be hard.<br /> <br /> If it is like problem with hardware(disk in read-only mode) then it not suppose to retrieve data from other tables also.But we are  able to retrieve data from other tables which are stored in same disk.<br /> <br /> Thanks,<br /> Venkat]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7251.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7251.page</link>
				<pubDate><![CDATA[Thu, 22 Oct 2009 02:56:02]]> GMT</pubDate>
				<author><![CDATA[ Venkat_B]]></author>
			</item>
			<item>
				<title>Re:could not read block</title>
				<description><![CDATA[ I am running just count(*) when i got this error: <br /> (select count(*) from test_table where columnid between 10000 and 20000;) <br /> Is dropping the entire table and reloading is the only solution or do we have any other? <br /> Because if i have million of rows with table and i have this error ... then even reloading data will be hard. <br /> <br /> &gt;&gt; Have you configured HA solution in your environment ? Do you have a valid backup ? <br /> <br /> If it is like problem with hardware(disk in read-only mode) then it not suppose to retrieve data from other tables also.But we are able to retrieve data from other tables which are stored in same disk. <br /> <br /> &gt;&gt; then it is not the issue with whole disk. There may be some blocks on the disk is corrupted. ]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7270.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7270.page</link>
				<pubDate><![CDATA[Thu, 22 Oct 2009 09:33:15]]> GMT</pubDate>
				<author><![CDATA[ sam_jass]]></author>
			</item>
			<item>
				<title>Re:could not read block</title>
				<description><![CDATA[ [quote=sam_jass]I am running just count(*) when i got this error: <br /> (select count(*) from test_table where columnid between 10000 and 20000;) <br /> Is dropping the entire table and reloading is the only solution or do we have any other? <br /> Because if i have million of rows with table and i have this error ... then even reloading data will be hard. <br /> [/quote]<br /> <br />   I would reload from a backup into a new table:  create table test_table_load...<br /> <br />    Then, as far as finding data that may be recoverable, you're going to have to scan for different ranges of data looking for where your bad blocks are.<br /> <br /> [quote]<br /> If it is like problem with hardware(disk in read-only mode) then it not suppose to retrieve data from other tables also.But we are able to retrieve data from other tables which are stored in same disk. <br /> <br /> &gt;&gt; then it is not the issue with whole disk. There may be some blocks on the disk is corrupted. [/quote]<br /> <br /> +1 It's very a-typical that you lose a whole disk, usually just certain blocks at a time.<br /> ]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7275.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7275.page</link>
				<pubDate><![CDATA[Thu, 22 Oct 2009 10:56:39]]> GMT</pubDate>
				<author><![CDATA[ scottiebo]]></author>
			</item>
			<item>
				<title>Re:could not read block</title>
				<description><![CDATA[ [quote][b][color=brown]Have you configured HA solution in your environment ?[/color][/b][/quote]<br /> <br /> Can you please explain or give me some knowledge about this HA solution.... What exactly is this as i have no idea about HA solution.<br /> <br /> what my doubt is now we are getting error while querying between some range. What is the solution if i have the same with just select count(*) from test_table;<br /> <br /> How can i resolve if we found the particular range/records which is causing problem by checking with different ranges. <br /> <br /> Is the only solution to load table from backup / direct reloading or do we have any other possibilities where we can resolve the issue like moving the bad blocks data to other blocks....etc.,<br /> <br /> <br /> ---Venkat<br /> ]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7280.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7280.page</link>
				<pubDate><![CDATA[Fri, 23 Oct 2009 05:52:17]]> GMT</pubDate>
				<author><![CDATA[ Venkat_B]]></author>
			</item>
			<item>
				<title>Re:could not read block</title>
				<description><![CDATA[ [quote=Venkat_B][quote][b][color=brown]Have you configured HA solution in your environment ?[/color][/b][/quote]<br /> <br /> Can you please explain or give me some knowledge about this HA solution.... What exactly is this as i have no idea about HA solution.<br /> <br /> [/qote]<br /> <br />   If you had configured a PITR (point in time recovery mechanism) this would be much easier to do as we could "roll back" to the point in time just before the corruption.<br /> <br /> [quote]<br /> <br /> what my doubt is now we are getting error while querying between some range. What is the solution if i have the same with just select count(*) from test_table;<br /> [/quote]<br /> <br />   You may only have a bad block in the range that you specified before.  However it is likely that more relations are indeed damaged.<br /> <br /> [quote]<br /> How can i resolve if we found the particular range/records which is causing problem by checking with different ranges. <br /> [/quote]<br /> <br /> Write a script to go through the table in ranges until you encounter an error.<br /> <br /> i.e.<br /> [code]<br /> begin;    <br /> insert into save_table select * from test_table where id between 1 AND 200<br /> --No Error?<br /> commit;<br /> [/code]<br />      No error?  Good:<br /> <br /> [code]<br />      begin;<br />      insert into save_table select * from test_table where id between 201 AND 500<br />      ERROR<br />      rollback;<br /> [/code]<br /> <br /> [code]<br />      begin;<br />      insert into save_table select * from test_table where id between 501 AND 901<br /> [/code]<br /> <br /> etc...<br /> <br /> [quote]<br /> <br /> Is the only solution to load table from backup / direct reloading or do we have any other possibilities where we can resolve the issue like moving the bad blocks data to other blocks....etc.,<br /> <br /> <br /> ---Venkat<br /> [/quote]<br /> Reloading is the best way.<br /> <br /> If you want emergency recovery services (something EnterpriseDB has done in the past) I recommend emailing 'sales@enterprisedb.com'<br /> <br /> Good luck<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7285.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7285.page</link>
				<pubDate><![CDATA[Fri, 23 Oct 2009 07:25:00]]> GMT</pubDate>
				<author><![CDATA[ scottiebo]]></author>
			</item>
			<item>
				<title>Re:could not read block</title>
				<description><![CDATA[ Hi Venkat,<br /> <br /> Can you please explain or give me some knowledge about this HA solution.... What exactly is this as i have no idea about HA solution. <br /> <br /> &gt;&gt; HIGH AVAILABILITY solution, like SAN storage, replication, standby server.<br /> <br /> what my doubt is now we are getting error while querying between some range. What is the solution if i have the same with just select count(*) from test_table; <br /> <br /> How can i resolve if we found the particular range/records which is causing problem by checking with different ranges. <br /> <br /> Is the only solution to load table from backup / direct reloading or do we have any other possibilities where we can resolve the issue like moving the bad blocks data to other blocks....etc., <br /> <br /> &gt;&gt; The best way is to recover from valid backup. If it is not with you & you can bare with minimum loss of data then you can choose <br />       the option ZERO_DAMAGED_PAGES=on. Note that before set this parameter go through the following link. <br /> <br />       <a class="snap_shots" href="http://www.postgresql.org/docs/8.4/static/runtime-config-developer.html" target="_blank" rel="nofollow">http://www.postgresql.org/docs/8.4/static/runtime-config-developer.html</a><br /> <br /> &gt;&gt; If you are working on unix then run the fsck and in case of windows run the chkdisk will mark the bad block and move data to <br />       another block. <br /> <br /> &gt;&gt; Also you have a option to go for pg_fsck. You can download it from the pg_foundry. <br /> <br /> <br /> &gt;&gt; One more option, develop one function which will check the ctid if it found the correct ctid then it keep that data in one valid  <br />       table and if it is not exist then it go for exception. At the end of execution of function you have a valid ctid record.  Rest of the <br />       record insert manually or insert from the backup if you have.  <br />  <br /> <br /> Thanks <br /> Sam Jas<br /> ]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7287.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7287.page</link>
				<pubDate><![CDATA[Fri, 23 Oct 2009 07:32:03]]> GMT</pubDate>
				<author><![CDATA[ sam_jass]]></author>
			</item>
			<item>
				<title>Re:could not read block</title>
				<description><![CDATA[ Thanks for that.<br /> <br /> I think pg_fsck is not supported for Pg Plus 8.3 version. We check for the better possibilities which can minimize the administrator risks/tasks.<br /> <br /> --Venkat<br /> <br /> <br /> ]]></description>
				<guid isPermaLink="true">http://forums.enterprisedb.com/posts/preList/1988/7296.page</guid>
				<link>http://forums.enterprisedb.com/posts/preList/1988/7296.page</link>
				<pubDate><![CDATA[Fri, 23 Oct 2009 08:45:18]]> GMT</pubDate>
				<author><![CDATA[ Venkat_B]]></author>
			</item>
	</channel>
</rss>
