I think with samba if you have a file larger than 2 gig, you have to use the LFS (large file system) option on the mount command. We ran into a similar problem trying to do what you're doing. Steve G.
Jose Raul Baron <[EMAIL PROTECTED]> Sent by: Linux on 390 Port <[email protected]> 05/16/2006 01:17 PM Please respond to Linux on 390 Port To: [email protected] cc: Subject: Re: DB2 Backup into Samba Filesystem Not much: approx. 8 GB. There's plenty of space for it in my smbfs. I did the same backup in NFS filesystem and it worked fine. I just can't imagine why doesn't it work using smbfs. Saludos, José R. Barón Dpto. Sistemas CALCULO S. A. Tel. 91 330 86 44 e-mail: [EMAIL PROTECTED] -----Mensaje original----- De: Linux on 390 Port [mailto:[EMAIL PROTECTED] En nombre de Steve Gentry Enviado el: martes, 16 de mayo de 2006 21:09 Para: [email protected] Asunto: Re: DB2 Backup into Samba Filesystem How large is the file you're trying to copy? How many bytes? Jose Raul Baron <[EMAIL PROTECTED]> Sent by: Linux on 390 Port <[email protected]> 05/16/2006 01:08 PM Please respond to Linux on 390 Port To: [email protected] cc: Subject: Re: DB2 Backup into Samba Filesystem Here comes my mount command: mount -t smbfs -o username=myuser,workgroup=myusergroup //999.999.999.999/d$ /mnt/disco_smb It works fine. I have previously done: atlas:/mnt # umask 0000 then I have issued my mount command and then re-establish umask by issuing: atlas:/mnt # umask 0022 I have tested user db2inst1 to write files and directories in my smbfs and it worked fine (so the user has the privilege to write to this filesystem, that is, this is not due to a linux error such as lack of write-permission). and then I issued: db2 backup db <mydb> to /mnt/smb_disk compress SQL2025N An I/O error "4" occurred on media "/mnt/smb_disk/LNXE89.0.db2inst1.NODE0000.CATN0000.20060516182813.0" Saludos, José R. Barón Dpto. Sistemas CALCULO S. A. Tel. 91 330 86 44 e-mail: [EMAIL PROTECTED] -----Mensaje original----- De: Linux on 390 Port [mailto:[EMAIL PROTECTED] En nombre de Steve Gentry Enviado el: martes, 16 de mayo de 2006 20:56 Para: [email protected] Asunto: Re: DB2 Backup into Samba Filesystem Did you issue a mount command? If so, what was it? And how big is the file you're trying to backup? Steve G, Thomas David Rivers <[EMAIL PROTECTED]> Sent by: Linux on 390 Port <[email protected]> 05/16/2006 12:40 PM Please respond to Linux on 390 Port To: [email protected] cc: Subject: Re: DB2 Backup into Samba Filesystem Jose Raul Baron <[EMAIL PROTECTED]> wrote: > > Hi group, > > I am currently trying to backup a db into a smbfs via the command: > db2 backup db <mydb> to /mnt/smb_disk compress but I have the > following error: > > SQL2025N An I/O error "4" occurred on media > "/mnt/smb_disk/LNXE89.0.db2inst1.NODE0000.CATN0000.20060516182813.0". > Could that be errno #4 - which is EINTR? /* Interrupted system call */ EINTR can happen for a write() function according to the write() man page: EINTR The call was interrupted by a signal before any data was written. Perhaps the DB2 people could better explain the message and tell you what the "4" means? You may want to try and look up SQL2025N. From the IBM manual: ============================================== SQL2025N An I/O error "<code>" occurred on media "<dir/devices>". Cause: An I/O error occurred while accessing a file on the specified media. The utility stops processing. Action: Record the error return code. Determine whether the I/O error can be corrected. ============================================== It doesn't seem to tell you what the "code" could be. Also, I believe you can type: SQL2025N at the DB2 CLP prompt to get a description. Hope that helps. - Dave Rivers - -- [EMAIL PROTECTED] Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
