dbTalk Databases Forums  

[BUGS] storage sync failed on magnetic disk: Permission denied

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] storage sync failed on magnetic disk: Permission denied in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Valery Bondarenko
 
Posts: n/a

Default [BUGS] storage sync failed on magnetic disk: Permission denied - 11-12-2005 , 07:50 AM







When the cluster performs a massive disk operations (like nightly
vacuuming or smth)
I offten got such error in log file:

2005-11-12 14:52:29 LOG: could not fsync segment 0 of relation
1663/17735/210608: Permission denied
2005-11-12 14:52:29 ERROR: storage sync failed on magnetic disk:
Permission denied
2005-11-12 14:52:30 LOG: could not fsync segment 0 of relation
1663/17735/210608: Permission denied
2005-11-12 14:52:30 ERROR: storage sync failed on magnetic disk:
Permission denied
2005-11-12 14:52:31 LOG: could not fsync segment 0 of relation
1663/17735/210608: Permission denied
2005-11-12 14:52:31 ERROR: storage sync failed on magnetic disk:
Permission denied
2005-11-12 14:52:32 LOG: could not fsync segment 0 of relation
1663/17735/210608: Permission denied
2005-11-12 14:52:32 ERROR: storage sync failed on magnetic disk:
Permission denied
2005-11-12 14:52:33 LOG: could not fsync segment 0 of relation
1663/17735/210608: Permission denied
2005-11-12 14:52:33 ERROR: storage sync failed on magnetic disk:
Permission denied
2005-11-12 14:52:34 LOG: could not fsync segment 0 of relation
1663/17735/210608: Permission denied

The error exists for a few minutes then dissapears and cluster works
normally till next time.
(actually next night )
I had this situation few minutes ago on my Windows XP box and tryed to
look what was wrong with this file:
1663/17735/210608
1) File existed
2) It was locked (by somebody ??? ) during the error existance.
3) File dissapeared when the error had dissapered.
4) NTFS Permissions were set correctly.


This error was found on Windows 2000 Server SP4, Windows Proffesional and
a Windows XP HE.
On 8.0.0, 8.0.4 and 8.1 PostgreSQL servers.

Is it a windows bug?
It looked like as if somebody (not postgres) got an exclusive access to
that file.

Sorry about my english

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] storage sync failed on magnetic disk: Permission denied - 11-12-2005 , 09:52 AM






"Valery Bondarenko" <to_undead (AT) mail (DOT) ru> writes:
Quote:
When the cluster performs a massive disk operations (like nightly
vacuuming or smth)
I offten got such error in log file:
2005-11-12 14:52:29 LOG: could not fsync segment 0 of relation
1663/17735/210608: Permission denied

It looked like as if somebody (not postgres) got an exclusive access to
that file.
We've heard reports of various "antivirus" products doing that sort of
thing ... what third-party software do you have installed?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #3  
Old   
Qingqing Zhou
 
Posts: n/a

Default Re: [BUGS] storage sync failed on magnetic disk: Permission denied - 11-12-2005 , 12:30 PM




"Tom Lane" <tgl (AT) sss (DOT) pgh.pa.us> wrote
Quote:
When the cluster performs a massive disk operations (like nightly
vacuuming or smth)
I offten got such error in log file:
2005-11-12 14:52:29 LOG: could not fsync segment 0 of relation
1663/17735/210608: Permission denied

It looked like as if somebody (not postgres) got an exclusive access to
that file.

We've heard reports of various "antivirus" products doing that sort of
thing ... what third-party software do you have installed?

The strange thing is that this time it gets an EACCESS this time. What we
get before is "Invalid Argument" message which is a mis-translation of
ERROR_SHARING_VIOLATION. Let's see what he installed ...

Regards,
Qingqing



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
  #4  
Old   
Qingqing Zhou
 
Posts: n/a

Default Re: [BUGS] storage sync failed on magnetic disk: Permission denied - 11-12-2005 , 02:36 PM



"Valery Bondarenko" <to_undead (AT) mail (DOT) ru> wrote:
Quote:
Situation first occurs on _CLEAN_ Win2k server with 8.0.0 Installed by his
installer (woops ).
And it continues to...
Also I got it in a realy "dirty" environment with 8.1.

But in both cases there were no antiviruses and (AFAIK) no product which
could do such locking.
We have a loop in pgunlink/pgrename for Win32 since it is possible that some
other processes hold the opened file (without the required flags) when we
want to drop/rename it. Here seems comes the similar situation, but not sure
the exact reason that leads to it though ... The situtation has been there
for a while, check out this thread and see if you can catch the killer (the
analysis part is bogus according to Tom):

http://archives.postgresql.org/pgsql...8/msg00129.php


Regards,
Qingqing



---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.