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

Reply via email to