If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Error backing up DB2 database on Linux to NFS system

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-20-07, 15:39
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
Error backing up DB2 database on Linux to NFS system

Hello,

I keep getting this error after trying to do an online backup of the DB2 database to an NFS filesystem:

SQL2025N An I/O error "6" occurred on media ...

Has anyone ever seen this error? Any idea on how to fix it?

I read somewhere on one of the posts here that it may be a locking issue. Here is a response to someone who had the same exact problem that I have:

That's an ENOLCK (errno = 37, or 25 hex). It means that DB2 is trying
to lock a file but can't. I suspect your nfs mounting options are not
allowing locking over nfs.

Here is the thread that has the above answer... I looked at the db2diag.log file and am getting the same errors too.

http://www.thescripts.com/forum/thread180582.html

If this is the solution, does anyone know how to enable locking over nfs? I have options in fstab set to default.

Thanks for the help!
Reply With Quote
  #2 (permalink)  
Old 11-22-07, 06:49
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
as I remember, this must be a local directory
"This target directory or device must exist on the database server" according the doc
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 11-22-07, 09:53
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I do backups to an NFS mount all the time on Linux. The instance owner id must be the owner (not just write permission) of the directory you are backing up to.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On