1847143 Members
6043 Online
110263 Solutions
New Discussion

Re: Problem with CIFS

 
Mariani Alberto
Frequent Advisor

Problem with CIFS

Hi, All!

I'm having a problem with cifs filesystems

I created a share on one of our windows 2000 server (some space on a SAN, actually) and mounted it on our HP-UX box.
I have to transfer large files to and from this share (it's used to backup our oracle datafiles).
When transferring from HP-UX to Windows everything goes well, but when doing the opposite does not work.
Specifically, files bigger than 4 GB get truncated, so that their final sizes are the original sizes modulo 4 GB .

Anybody has an idea on how to solve this problem ? (ok, i know that, since the win -> hu-ux transfer is just for restores i can get away with a simple ftp, but i still want to fix it)

Thank you,
Alberto

5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Problem with CIFS

Whats your transfer method. tar has some limits on how big the files can be.

Since the filesystem was set up by windows, you might have windows configuration or quota issues that is limiting maximum filesize.

You might simply need to update samba to the latest available version. I've had some issues with old versions and 3.x versions on HP-UX and Linux.

Client
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8724AA
Server
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

Technology preview:
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=CIFSTP3
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=CIFSTP22

SEP


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sundar_7
Honored Contributor

Re: Problem with CIFS

Files > 2GB <4GB are getting through without any problem ?

Could be that largefiles is not enabled for the HP-UX filesystem.

# fsadm -F vxfs /hpuxmountpoint

this will tell you if you have largefiles enabled.

But if the files >2GB<4GB are getting transferred without a glitch,then I would think problem is somewhere else. Start with the largefiles :-).
Learn What to do ,How to do and more importantly When to do ?
Mariani Alberto
Frequent Advisor

Re: Problem with CIFS

Steven:

A simple cp is what we use.
As i said, from HP-UX to Windows all goes well: if the file is 8 GB on the hp-ux box, it will be 8 GB on the Windows share.
When i do a transfer from Windows to HP-UX, files smaller than 4 GB get transferred ok, those larger than that get truncated.
As you can say by reading this, largefiles are enabled on the hp filesystem, as the transfer is directly to/from the mount point of the oracle production databases.
I might actually need to update cifs client but the link you provided allows me to "receive it for free", but not download it. Are there any other resource to get it from ?

Sundar:

I was under the impression that the filesize limit with largefiles disabled was 2 GB, not 4 and, indeed, transferring with ftp, i get the files exactly as they should be (to test the whole backup procedure, we even destroyed the db after saving it on the remote share, then we transferred it back and tried to mount it - it worked without a glitch).

Thank you,
Alberto
Darren Prior
Honored Contributor

Re: Problem with CIFS

Hi Alberto,

The "receive for free" button on the page mentioned earlier takes you to a registration screen. Once you've entered your details you can download the software.

An alternative is to look on your application cds, but the website will be more up to date than the cds.

regards,

Darren.
Calm down. It's only ones and zeros...
Stefan Schulz
Honored Contributor

Re: Problem with CIFS

Hello Alberto,

as far as i understand this you can copy your file bigger 4GB to this share. This file can then be accessed from your windows server and is totally intact.

BTW: you copy this file from unix with a normal cp command or do you write it directly to this mountpoint?

More important: how do you transfer this file from the windows share to your UNIX box. I assume you use normal cp. Have you tried to use cpio or anything else?

From the UNIX side did you check to see if this file is ok while it resides on the Windows share. As this is a mountpoint you should be able to read this file directly. Have you tried this? Is this file really ok?

When copying, did you get any error message on screen or in syslog or in the samba logfiles?

Perhaps examining this questions will help.

Regards Stefan

No Mouse found. System halted. Press Mousebutton to continue.