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 > DB2 on RHEL4 via NFS on Netapp filer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-10, 12:23
phobic phobic is offline
Registered User
 
Join Date: Jun 2010
Posts: 4
DB2 on RHEL4 via NFS on Netapp filer

Hello everybody,

I have a problem creating a db2 database on a Netapp filer (3000 series) with exported nfs share.
Writing on the share is no problem from the database machine. I also triplechecked the permissions. Everything on the share is owned by the db2 instance owner. He can create and delete files on the share with no problems.
When i try to create a new database, use db2sample or restore an online backup from another machine i always get the following error:

SQL10004C An I/O error occurred while accessing the database directory.
SQLSTATE=58031

My OS version is RHEL 4u8. My DB2 version is 9.1 7a Workstation. I also tried with RHEL 5u5 with no success.

I use the following options to mount the nfs share from my database machine:
bg,rw,hard,nointr,tcp,vers=3,rsize=32768,wsize=327 68,timeo=600

I also tried: ATTACH TO db2inst1
UPDATE DBM CFG USING DIAGLEVEL 4

In db2diag log i noticed some too many files were opened error before i get the io error on the shell, so i tried to increase the open files limit of the operating system via sysctl.conf (ulimit -n now shows a value of 100000)
This also did not help...

When i unmount the nfs share and create a db locally everything works fine...

I already opened up support tickets with ibm and netapp (about one week ago). But both of them don't seem to know what is wrong... Please somebody help me ...

Tanks a lot,
Phobic
Reply With Quote
  #2 (permalink)  
Old 06-09-10, 19:56
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Make sure NFS lock deamons are started
Reply With Quote
  #3 (permalink)  
Old 06-10-10, 02:54
phobic phobic is offline
Registered User
 
Join Date: Jun 2010
Posts: 4
already did that

already did that on the client as well as as the server ... Sadly this makes no difference.

Any other ideas?
Reply With Quote
  #4 (permalink)  
Old 06-10-10, 03:51
phobic phobic is offline
Registered User
 
Join Date: Jun 2010
Posts: 4
Sorry, i forgot to mention... I also tried to get DB2 running on an nfs share on a normal server machine... I get exactly the same errors so the error is not netapp related, i guess...
Reply With Quote
  #5 (permalink)  
Old 06-10-10, 08:37
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
What are the exact errors in the db2diag.log? Are there any errors in the Linux system message log?
Reply With Quote
  #6 (permalink)  
Old 06-16-10, 05:49
phobic phobic is offline
Registered User
 
Join Date: Jun 2010
Posts: 4
ok... i finally found the solution:
First start /etc/init.d/nfs
then start /etc/init.d/nfslock
then execute /sbin/rpc.lockd by hand
For me it only works if i do it exactly in that order...
Thanks to db2girl for your hints...
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