Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Weird Solaris/Tru64 NFS behaviour
@ 2000-09-21  4:00 srlnrow
  2000-09-21  4:00 ` Casper H.S. Dik - Network Security Engineer
  0 siblings, 1 reply; 4+ messages in thread
From: srlnrow @ 2000-09-21  4:00 UTC (permalink / raw)


Here's some Solaris/Tru64 NFS behaviour that I don't understand. We have
a filesystem on a Alphaserver running Tru64 v5.0A that is automounted on
a Sun system running Solaris 7 (32-bit). On the Sun, I try to use gzip to
compress a file on the (auto)mounted Alphaserver disk...

  sun% gzip afile
  afile.gz: Value too large for defined data type

  sun% ls -l afile*
  afile.gz: Value too large for defined data type
  -rw-rw-r--   1 user  group   37006 Sep 21 21:10 afile

Now, here's the view of the same fileystem on the Alphaserver..

   alpha% ls -l afile*
  -rw-rw-r--   1 user  group   37006 Sep 21 21:10 afile
  ----------   1 user  group       0 Mar 24  1964 afile.gz

Note the date on the zero-length afile.gz file. What's going on here?
Is this a 32/64-bit problem, an NFSv2/v3 problem, or what?

-- 
Roger Williams, Institute of Geological & Nuclear Sciences, New Zealand
R.Williams
@gns.cri.nz : DEC 3000/300 AXP - OpenVMS v6.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Weird Solaris/Tru64 NFS behaviour
  2000-09-21  4:00 Weird Solaris/Tru64 NFS behaviour srlnrow
@ 2000-09-21  4:00 ` Casper H.S. Dik - Network Security Engineer
  2000-09-22  2:26   ` srlnrow
  0 siblings, 1 reply; 4+ messages in thread
From: Casper H.S. Dik - Network Security Engineer @ 2000-09-21  4:00 UTC (permalink / raw)


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

srlnrow@read.the.sig writes:

>Now, here's the view of the same fileystem on the Alphaserver..

>   alpha% ls -l afile*
>  -rw-rw-r--   1 user  group   37006 Sep 21 21:10 afile
>  ----------   1 user  group       0 Mar 24  1964 afile.gz

The negative (1964) timestamp cannot be represented over
NFS.  Typically, these were send over the wire unconverted
but Solaris 7 no longer accepts them.

If you can, use SOlaris 8 and set nfs_allow_preepoch_time to 1.

>Note the date on the zero-length afile.gz file. What's going on here?
>Is this a 32/64-bit problem, an NFSv2/v3 problem, or what?


Look at how the file is created; trace the NFS packets.

It shouldn't have a negative timestamp.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Weird Solaris/Tru64 NFS behaviour
  2000-09-21  4:00 ` Casper H.S. Dik - Network Security Engineer
@ 2000-09-22  2:26   ` srlnrow
  2000-09-22  4:00     ` Casper H.S. Dik - Network Security Engineer
  0 siblings, 1 reply; 4+ messages in thread
From: srlnrow @ 2000-09-22  2:26 UTC (permalink / raw)


In Article <8qcsia$iuh$1@new-usenet.uk.sun.com>
Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer) writes:
..
>srlnrow@read.the.sig writes:
>
>>Now, here's the view of the same fileystem on the Alphaserver..
>
>>   alpha% ls -l afile*
>>  -rw-rw-r--   1 user  group   37006 Sep 21 21:10 afile
>>  ----------   1 user  group       0 Mar 24  1964 afile.gz
>
>The negative (1964) timestamp cannot be represented over
>NFS.  Typically, these were send over the wire unconverted
>but Solaris 7 no longer accepts them.

I'm not sure I understand what you're saying here. By "Solaris 7 no longer
accepts them" do you mean that's the cause of the "Value too large for defined
data type" error message and that's why the file with the negative time
is not seen in the ls -l listing on the Sun?

>If you can, use SOlaris 8 and set nfs_allow_preepoch_time to 1.

Solaris 8 is not yet an option for us.

>>Note the date on the zero-length afile.gz file. What's going on here?
>>Is this a 32/64-bit problem, an NFSv2/v3 problem, or what?
>
>Look at how the file is created; trace the NFS packets.

The file is being created by whatever code is in gzip - the source of which
was www.sunfreeware.com. Both version 1.2.4 and the trial 1.2.4.4294967298
behave the same. I'm not enough of a C programmer to read the code with
much understanding.

Mounting the Tru64 filesystem on the Sun with NFS v2 seems to make the problem
go away...!?

-- 
Roger Williams, Institute of Geological & Nuclear Sciences, New Zealand
R.Williams
@gns.cri.nz : DEC 3000/300 AXP - OpenVMS v6.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Weird Solaris/Tru64 NFS behaviour
  2000-09-22  2:26   ` srlnrow
@ 2000-09-22  4:00     ` Casper H.S. Dik - Network Security Engineer
  0 siblings, 0 replies; 4+ messages in thread
From: Casper H.S. Dik - Network Security Engineer @ 2000-09-22  4:00 UTC (permalink / raw)


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

srlnrow@read.the.sig writes:

>I'm not sure I understand what you're saying here. By "Solaris 7 no longer
>accepts them" do you mean that's the cause of the "Value too large for defined
>data type" error message and that's why the file with the negative time
>is not seen in the ls -l listing on the Sun?

Yes.  When Solaris 7 started using 64 bit timestamps they couldn't just
copy the 32 bit unsigned timestamp from over the wire into the 64 bit
timestamp.

If you run a 64 bit kernel, you can use a 64 bit ls but 32 bit
apps will not so those files.


>The file is being created by whatever code is in gzip - the source of which
>was www.sunfreeware.com. Both version 1.2.4 and the trial 1.2.4.4294967298
>behave the same. I'm not enough of a C programmer to read the code with
>much understanding.

Ok, so what NFS commands fly over the wire.

>Mounting the Tru64 filesystem on the Sun with NFS v2 seems to make the problem
>go away...!?


Ah; hm.  The NFS creat protocol is different between v2 and v3;
the fact that gzip uses O_CREAT|O_EXCL causes it to use new parts
of the V3 protocol and this includes some form of a cookie on create.

Perhaps this confuses the Tru64 unix server but it could of course
also be Sun's fault.

Whetever you may think of the 32 bit timestamp problem, files with negative
timestamps should not spring into existance in normal practice; so something
else is wrong too.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-09-22  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-21  4:00 Weird Solaris/Tru64 NFS behaviour srlnrow
2000-09-21  4:00 ` Casper H.S. Dik - Network Security Engineer
2000-09-22  2:26   ` srlnrow
2000-09-22  4:00     ` Casper H.S. Dik - Network Security Engineer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox