Hello,

See thread at the bottom. I have also problems reading files while
mounting from Ubuntu. I cannot read files larger than +/- 18KB.

/etc/exports:
/home/pieter localhost 10.0.0.1 10.0.0.2 10.0.2.15

On Ubuntu:
$ sudo mount.nfs lilium:/home/pieter pieter_mount/ -w
$ cat pieter_mount/test.txt     # 17069 bytes
[ output ]
$ cat pieter_mount/test1.txt    # 18483 bytes
[ no output. cat keeps running; `ps aux | grep cat`
pieter 3095 0.0 0.0 3896 244 pts/15 D+ 15:35 0:00 cat pieter_mount/test1.txt ]

When I mount the same export on the OpenBSD machine it works fine:
$ sudo mount -t nfs localhost:/home/pieter/ /mount_test/
$ cat /mount_test/test1.txt
[output]

So could be an Ubuntu (and MacOS?) bug. I don't have another Unix/Linux
computer to try on right now.

Also, I'm not able to write on the exports. From both Ubuntu and
OpenBSD(localhost).

$ touch test
touch: cannot touch `test': Read-only file system

It says Read-only _file system_. Could this have anything to do with
file permissions or the -maproot -allmap options?

`portmap -d` and `mountd -d` gives no errors. I tried disabling pf. No
result. No interesting things in /var/log/messages

Regards,
 Pieter

OpenBSD lilium.garden 4.9 GENERIC#646 i386

[dmesg at bottom]

On Nov 28 00:19:42, Jason LaRiviere wrote:
Hello all,

Recently, my lazy ass went from 4.6-current snap to the most recent
4.8-current snap (#647: Fri Nov 26, amd64). Machine in question is
mostly a local file server, NFS to a few Macs. I say mostly, 'cause it
does some other stuff, and sits in a DMZ.

Since the upgrade to 4.8, I'm unable to read /some/ files from the nfs
server to the macs. I say some, because in testing I've been able to
ascertain the following:

1. I can write any size file from the mac to the nfs server. No issue. 2. I can write a small file (like 5 KiB), and read it back to the Mac. 3. I can write a large file (like 700 MiB), and cannot read it back to
the Mac.
4. I am unable to read any previously existing files on the NFS share
to
the Mac, whether they be large, or small.

Because the machine is in a DMZ, I made sure to disable the
DMZ->Internal filtering rules and stuff to rule out any stupidity.
Traffic dumps show no blocked packets.

While grasping at straws, I set vfs.nfs.iothreads=4. The
Mac is mounting the share as -o resvport,hard,intr,nolock.

The troubleshooting results thus far are just erratic enough to have
me
believe it's nothing I've done; nothing is making sense. I'm basically
looking for corroboration here. Can anyone else replicate this?

I am experiencing something similar on 4.8-current (server) and MacOSX
10.5.8 (client). I suspect the MacOSX to be the quilty one, as no other
NFS client shows any of these symptoms.

From the mac, I can write a file to the (auto)mounted share (/media)
and read it back, but I cannot read any of the files that existed there
before I mounted. A simple 'cat /media/.../file.txt' results in nothing
(the command is still running); after a while, a window pops up saying
'Server connection interrupted: media [Disconnect]'. I can _list_ the
content of the mounted share though.

I am (auto)mounting it with -resvport,noauto,nodev,noexec,noatime.
No filtering is done in between the boxes; they are on the same LAN,
pf is not running. I need to look at what exactly the mac firewall is
doing I guess.

        Jan

* http://marc.info/?t=129093271600004&r=1&w=2

OpenBSD 4.9-beta (GENERIC) #646: Tue Feb  1 19:02:04 MST 2011
    t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 500 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem  = 536440832 (511MB)
avail mem = 517533696 (493MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/70/03, BIOS32 rev. 0 @ 0xfac40
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0xa800
cpu0 at mainbus0: (uniprocessor)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
io address conflict 0x6100/0x100
io address conflict 0x6200/0x200
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 00:00:24:cd:7d:f8 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5, address 00:00:24:cd:7d:f9 ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9, address 00:00:24:cd:7d:fa ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12, address 00:00:24:cd:7d:fb ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034 glxpcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compat
ibility
wd0 at pciide0 channel 0 drive 1: <SAMSUNG HM160HI>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 15, version 1.0, legacy support
ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 15
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
biomask e5c5 netmask ffe5 ttymask ffff
mtrr: K6-family MTRR support (2 registers)
umass0 at uhub0 port 1 configuration 1 interface 0 "JMicron USB to ATA/ATAPI Bridge" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <WDC WD32, 00AAJS-08B4A0, 3A01> SCSI2 0/direct fixed
sd0: 305245MB, 512 bytes/sec, 625142448 sec total
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
pppoe (data): unknown version/type packet: 0x45
pppoe (data): unknown version/type packet: 0x45
pppoe (data): unknown version/type packet: 0x45
pppoe (data): unknown version/type packet: 0x45
pppoe (data): unknown version/type packet: 0x45
pppoe (data): unknown version/type packet: 0x45

Reply via email to