Re: NFSv4 - how to set up at FreeBSD 8.1 ?

2011-01-04 Thread Jean-Yves Avenard
Hi

On 4 January 2011 10:50, Rick Macklem rmack...@uoguelph.ca wrote:

 If the above 2 lines are in your /etc/exports file and / is a ufs
 file system, then the above should work. For a zfs / you must either:
 - export / as well as /data
 or
 - use v4: /data so that the nfsv4 root is at /data

 Also, make sure you are running the experimental server:
 - either start both mountd and nfsd with the -e option or specify
 nfsv4_server_enable=YES
 nfs_server_enable=YES

 in your /etc/rc.conf.

 Also, you need to create an empty /var/db/nfs-stablerestart file before
 the experimental NFS server will start up the first time. (A fix for that
 is in the works, but isn't even in head yet.)

 Try looking at man nfsv4 and checking that the daemons are running and
 that nothing got logged in /var/log/messages when they started up.

 Good luck with it, rick


After reading this thread, I tried NFSv4 today..

Whenever I tried to mount from a linux client, I get:
 mount -o vers=4 server4:/pool/backup/sites/m /mnt
NFS compound failed for server server4: error 7 (RPC: Authentication error)
NFS compound failed for server server4: error 7 (RPC: Authentication error)
NFS compound failed for server server4: error 7 (RPC: Authentication error)
NFS compound failed for server server4: error 7 (RPC: Authentication error)
NFS compound failed for server server4: error 7 (RPC: Authentication error)
NFS compound failed for server server4: error 7 (RPC: Authentication error)
nfs mount: mount: /mnt: Permission denied

with NFS v3 it mounts just fine

any ideas?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: NFSv4 - how to set up at FreeBSD 8.1 ?

2011-01-04 Thread Rick Macklem
 
 
 After reading this thread, I tried NFSv4 today..
 
 Whenever I tried to mount from a linux client, I get:
 mount -o vers=4 server4:/pool/backup/sites/m /mnt
 NFS compound failed for server server4: error 7 (RPC: Authentication
 error)
 NFS compound failed for server server4: error 7 (RPC: Authentication
 error)
 NFS compound failed for server server4: error 7 (RPC: Authentication
 error)
 NFS compound failed for server server4: error 7 (RPC: Authentication
 error)
 NFS compound failed for server server4: error 7 (RPC: Authentication
 error)
 NFS compound failed for server server4: error 7 (RPC: Authentication
 error)
 nfs mount: mount: /mnt: Permission denied
 
 with NFS v3 it mounts just fine
 
 any ideas?

Hmm, try adding sec=sys and a network specification to the V4: line
in /etc/exports. I had thought the default was sec=sys and the world,
but maybe I'm wrong w.r.t. the defaults. (I always specify them in my
V4: lines.) For example:
V4: / -sec=sys -network 192.168.138.0 -netmask 255.255.255.0

(You'll need to send a HUP signal to mountd after the change.)

If that doesn't work, capture a packet trace of the mount attempt via:
  tcpdump -s 0 -w xxx host server4
and email me xxx (or look at it yourself with wireshark) to see what
Linux is attempting that is failing. (If for some reason Linux is trying
to use krb5, that would also explain the failure. I have no idea if Linux
might decide krb5 should be the default for NFSv4.)

Good luck with it and let us know how it goes, rick
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


spontaneous reboots on 8.2-PRERELEASE

2011-01-04 Thread Petr Holub
Hi list,

I've installed PC-BSD 8.2-BETA1 aka FreeBSD 8.2-PRERELEASE on a machine
that was running FreeBSD 7.3 rock solid and now I get random reboots
of the machine, mostly when under the load. ACPI/no ACPI makes no difference
and unfortunately, I'm unable to get reliable thermal readings (apci_thermal
doesn't get loaded and healthd tends to give some bogus occasionaly, thus
not very reliable source either). Sometimes, I also get some USB-related
errors like this:
usbus4: port reset timeout
usbd_req_re_enumerate: addr=3, port reset failed, USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=3, port reset failed, USB_ERR_TIMEOUT
ugen4.3: Unknown at usbus4 (disconnected)
uhub_reattach_port: could not allocate new device
ugen4.3: Unknown at usbus4 (disconnected)
uhub_reattach_port: could not allocate new device
ugen4.3: Unknown at usbus4 (disconnected)
uhub_reattach_port: could not allocate new device
usbus4: port reset timeout
usbd_req_re_enumerate: addr=3, port reset failed, USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=3, port reset failed, USB_ERR_TIMEOUT

and

Root mount waiting for: usbus4

dumpdev=AUTO and getting nothing in /var/crash, just plain reboots.
Any clues how to debug this_ Dmesg is below.

Thanks,
Petr

---

Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.2-PRERELEASE #3: Mon Dec 13 08:50:49 PST 2010

r...@build8x32.pcbsd.org:/usr/obj/usr/local_storage/pcbsd-build82/fbsd-source/8.2/sys/PCBSD
 i386
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (3412.09-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf43  Family = f  Model = 4  Stepping = 3
 
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,
DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x649dSSE3,DTES64,MON,DS_CPL,EST,CNXT-ID,CX16,xTPR
  AMD Features=0x2000LM
  TSC: P-state invariant
real memory  = 1073741824 (1024 MB)
avail memory = 1018896384 (971 MB)
MPTable: INTEL
ioapic0: Assuming intbase of 0
ioapic1: Assuming intbase of 24
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic1 Version 2.0 irqs 24-47 on motherboard
Cuse4BSD v0.1.13 @ /dev/cuse
kbd1 at kbdmux0
cryptosoft0: software crypto on motherboard
pcib0: MPTable Host-PCI bridge pcibus 0 on motherboard
pci0: PCI bus on pcib0
pcib1: MPTable PCI-PCI bridge irq 16 at device 1.0 on pci0
pci6: PCI bus on pcib1
vgapci0: VGA-compatible display port 0xcc00-0xcc7f mem
0xfd00-0xfdff,0xd000-0xdfff,0xfc00-0xfcff irq 16 at 
device 0.0 on pci6
nvidia0: GeForce 7900 GT/GTO on vgapci0
vgapci0: child nvidia0 requested pci_enable_busmaster
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia0: [ITHREAD]
pci0: multimedia, HDA at device 27.0 (no driver attached)
pcib2: PCI-PCI bridge irq 16 at device 28.0 on pci0
pci4: PCI bus on pcib2
pcib3: MPTable PCI-PCI bridge at device 0.0 on pci4
pci5: PCI bus on pcib3
em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.3 port 0xbc00-0xbc3f mem
0xfa9e-0xfa9f,0xfa98-0xfa9b irq 24 at device 1.0 on pci5
em0: [FILTER]
em0: Ethernet address: 00:04:23:c3:90:83
pcib4: MPTable PCI-PCI bridge irq 16 at device 28.4 on pci0
pci3: PCI bus on pcib4
mskc0: Marvell Yukon 88E8062CU Gigabit Ethernet port 0xa800-0xa8ff mem 
0xfa7fc000-0xfa7f irq
16 at device 0.0 on pci3
msk0: Marvell Technology Group Ltd. Yukon XL Id 0xb3 Rev 0x01 on mskc0
msk0: Ethernet address: 00:15:f2:eb:7d:f4
miibus0: MII bus on msk0
e1000phy0: Marvell 88E1112 Gigabit PHY PHY 0 on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-master,
1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
msk1: Marvell Technology Group Ltd. Yukon XL Id 0xb3 Rev 0x01 on mskc0
msk1: Ethernet address: 00:15:f2:eb:7d:f5
miibus1: MII bus on msk1
e1000phy1: Marvell 88E1112 Gigabit PHY PHY 0 on miibus1
e1000phy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-master,
1000baseT-FDX, 1000baseT-FDX-master, auto
mskc0: [ITHREAD]
pcib5: MPTable PCI-PCI bridge irq 17 at device 28.5 on pci0
pci2: PCI bus on pcib5
atapci0: Marvell 88SX6141 UDMA133 controller port
0x9c00-0x9c07,0x9880-0x9883,0x9800-0x983f,0x9480-0x949f mem 
0xfa6ffc00-0xfa6f irq 17 at device
0.0 on pci2
atapci0: [ITHREAD]
ahci0: Marvell 88SX6141 AHCI SATA controller on atapci0
ahci0: [ITHREAD]
ahci0: AHCI v1.00 with 4 3Gbps ports, Port Multiplier supported
ahcich0: AHCI channel at channel 0 on ahci0
ahcich0: [ITHREAD]
ahcich1: AHCI channel at channel 1 on ahci0
ahcich1: [ITHREAD]
ahcich2: AHCI channel at channel 2 on ahci0
ahcich2: [ITHREAD]
ahcich3: AHCI channel at channel 3 on ahci0
ahcich3: [ITHREAD]
ata2: ATA channel 0 on atapci0
ata2: [ITHREAD]
uhci0: Intel 82801G (ICH7) USB controller USB-A port 

Re: Virtio drivers for FreeBSD on KVM

2011-01-04 Thread Pete French
 With more cloud infrastructure providers using KVM than ever before, the
 importance of having FreeBSD performant as a guest on these
 infrastructures [1], [2], [3] is increasing. It seems that using Virtio
 drivers give a pretty significant performance boost [4], [5].

 There was a NetBSD driver, and there seems to (have been) some work
 happening to port this to DragonFly BSD at [6] and [7] -- does anyone
 know if this code is stable, or if it has stalled, or if anyone's
 working on it?

Are the virtio devices provided by Linux KVM the same as those
provided by VirtualBox ? Certainly their website says that the
networking one is. How about giving the drivers provided by
/usr/ports/emulators/virtualbox-ose-additions a try and see
if they will work with KVM ?

-pete.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Virtio drivers for FreeBSD on KVM

2011-01-04 Thread Pete French
Actually, it does look like virtio is more than just for
networking...

http://vbox.innotek.de/pipermail/vbox-dev/2009-November/002053.html
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


gstripe/gpart problems.

2011-01-04 Thread Daniel Braniss
Hi,
I have 2 ada disks striped:

# gstripe list
Geom name: s1
State: UP
Status: Total=2, Online=2
Type: AUTOMATIC
Stripesize: 65536
ID: 2442772675
Providers:
1. Name: stripe/s1
   Mediasize: 1000215674880 (932G)
   Sectorsize: 512
   Stripesize: 65536
   Stripeoffset: 0
   Mode: r0w0e0
Consumers:
1. Name: ada0
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r0w0e0
   Number: 0
2. Name: ada1
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r0w0e0
   Number: 1

boot complains:

GEOM_STRIPE: Device s1 created (id=2442772675).
GEOM_STRIPE: Disk ada0 attached to s1.
GEOM: ada0: corrupt or invalid GPT detected.
GEOM: ada0: GPT rejected -- may not be recoverable.
GEOM_STRIPE: Disk ada1 attached to s1.
GEOM_STRIPE: Device s1 activated.

# gpart show
=34  1953546173  stripe/s1  GPT  (932G)
  34 128  1  freebsd-boot  (64K)
 162  1953546045 - free -  (932G)
# gpart show
=34  1953546173  stripe/s1  GPT  (932G)
  34 128  1  freebsd-boot  (64K)
 162  1953546045 - free -  (932G)

# gpart add -t freebsd-ufs -s 20g stripe/s1
GEOM: ada0: corrupt or invalid GPT detected.
GEOM: ada0: GPT rejected -- may not be recoverable.
stripe/s1p2 added
# gpart show
=34  1953546173  stripe/s1  GPT  (932G)
  34 128  1  freebsd-boot  (64K)
 16241943040  2  freebsd-ufs  (20G)
41943202  1911603005 - free -  (912G)

if I go the MBR road, all seems ok, but as soon as I try to write
the boot block (boot0cfg -B /dev/stripe/s1) again the kernel
starts to complain about corrupted GEOM too.

any ideas?
thanks,
danny


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


8.2-PRERELEASE and Flash

2011-01-04 Thread ben paley

Hello,

I've been using FreeBSD since 3.4 but I've been away for a while. Now 
I've put 8.2 on an old laptop, and everything's lovely except power 
management (I'll get round to that eventually) and the Flash plug in.


I've followed the steps at 
http://www.freebsd.org/doc/handbook/desktop-browsers.html without any 
errors, except that neither Firefox nor any other browser will play 
flash movies. about:plugins doesn't show a flash plugin.


I've spent a while googling and all I can find is variations on the 
instructions from the handbook. I don't know where to start looking for 
the problem.


I'd be really grateful to whoever could point me in the right direction.

Thanks a lot,
Ben
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: 8.2-PRERELEASE and Flash

2011-01-04 Thread Chris Brennan
On Tue, Jan 4, 2011 at 10:16 AM, ben paley ben.pyttipa...@spooty.netwrote:

 Hello,

 I've been using FreeBSD since 3.4 but I've been away for a while. Now I've
 put 8.2 on an old laptop, and everything's lovely except power management
 (I'll get round to that eventually) and the Flash plug in.

 I've followed the steps at
 http://www.freebsd.org/doc/handbook/desktop-browsers.html without any
 errors, except that neither Firefox nor any other browser will play flash
 movies. about:plugins doesn't show a flash plugin.

 I've spent a while googling and all I can find is variations on the
 instructions from the handbook. I don't know where to start looking for the
 problem.

 I'd be really grateful to whoever could point me in the right direction.


Did you try symlinking nsplugin.so to $HOME/.mozilla/plugins ? this is
usually what I end up doing to make it work. I forget if 64bit flash was
fixed or not, if it wasn't you may need nswrapper or the like to run the
32bit plugin binaries.

hth/c-
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: 8.2-PRERELEASE and Flash

2011-01-04 Thread Marco van Tol
On Tue, Jan 04, 2011 at 03:16:26PM +, ben paley wrote:
 Hello,
 
 I've been using FreeBSD since 3.4 but I've been away for a while. Now 
 I've put 8.2 on an old laptop, and everything's lovely except power 
 management (I'll get round to that eventually) and the Flash plug in.
 
 I've followed the steps at 
 http://www.freebsd.org/doc/handbook/desktop-browsers.html without any 
 errors, except that neither Firefox nor any other browser will play 
 flash movies. about:plugins doesn't show a flash plugin.
 
 I've spent a while googling and all I can find is variations on the 
 instructions from the handbook. I don't know where to start looking for 
 the problem.
 
 I'd be really grateful to whoever could point me in the right direction.

What I usually do is install the freebsd native firefox through
/usr/ports/www/firefox, and plug flash into it using:
  /usr/ports/www/nspluginwrapper
  /usr/ports/www/linux-f10-flashplugin10

Further details about this can be found at:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html

On that page search for 6.2.3 Firefox and Macromedia

I am currently using this on 8.2-prerelease, and have been using it this
way for the passed year or so.  It works great.  The only caveat is that
sometimes you have to pkill npviewer.  You'll know when to do that by
seeing your browser become very sluggish.  Doesn't happen as often as it
did anymore.

Marco

-- 
Micro$oft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


ums0 diconnections

2011-01-04 Thread Barbara


Sometimes my mouse seems frozen, then it become responsive again after few 
seconds.
The following lines are added in /var/log/messages:

Jan  4 16:52:59 satanasso kernel: ugen1.2: Logitech at usbus1 (disconnected)
Jan  4 16:52:59 satanasso kernel: ums0: at uhub1, port 2, addr 2 
(disconnected)
Jan  4 16:52:59 satanasso hald[1508]: 16:52:59.420 [W] hf-devd.c:379: 
malformed devd event: 
Jan  4 16:52:59 satanasso hald[1508]: 16:52:59.435 [W] hf-devd.c:379: 
malformed devd event: 
Jan  4 16:53:01 satanasso kernel: ugen1.2: Logitech at usbus1
Jan  4 16:53:01 satanasso kernel: ums0: Logitech Optical USB Mouse, class 
0/0, rev 2.00/3.40, addr 2 on usbus1
Jan  4 16:53:01 satanasso kernel: ums0: 3 buttons and [XYZ] coordinates ID=0
Jan  4 16:53:02 satanasso hald[1508]: 16:53:02.439 [W] hf-devd.c:379: 
malformed devd event: 
Jan  4 16:53:02 satanasso hald[1508]: 16:53:02.440 [W] hf-devd.c:379: 
malformed devd event: 

As far as I can remember, this is happening since about a month.
I don't think that it's a hw problem, could it be a sw one?
BTW, I see similar error from hald when, for example, I plug in USB drives.

Thanks
Barbara

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: 8.2-PRERELEASE and Flash

2011-01-04 Thread Alex Goncharov
[ Suggest not to cc: freebsd-stable@ from this point on; freebsd-ports@
is added ]

,--- You/ben (Tue, 04 Jan 2011 15:16:26 +) *
| I've followed the steps at 
| http://www.freebsd.org/doc/handbook/desktop-browsers.html without any 
| errors, except that neither Firefox nor any other browser will play 
| flash movies. about:plugins doesn't show a flash plugin.

| I've spent a while googling and all I can find is variations on the 
| instructions from the handbook. I don't know where to start looking for 
| the problem.

I play Flash in Firefox, (native) Opera and Chrome -- perfectly now.

For Firefox, the instructions in the Handbook worked for me.

| I'd be really grateful to whoever could point me in the right direction.

Search freebsd-ports@ for opera, flash and my name -- I was a part of
a conversation about it, some three months ago.

Running Opera with -debugplugin helps.

-- Alex -- alex-goncha...@comcast.net --

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: NFSv4 - how to set up at FreeBSD 8.1 ?

2011-01-04 Thread Freddie Cash
On Tue, Jan 4, 2011 at 3:42 AM, Jean-Yves Avenard jyaven...@gmail.com wrote:
 On 4 January 2011 10:50, Rick Macklem rmack...@uoguelph.ca wrote:
 After reading this thread, I tried NFSv4 today..

 Whenever I tried to mount from a linux client, I get:
  mount -o vers=4 server4:/pool/backup/sites/m /mnt
 NFS compound failed for server server4: error 7 (RPC: Authentication error)
 NFS compound failed for server server4: error 7 (RPC: Authentication error)
 NFS compound failed for server server4: error 7 (RPC: Authentication error)
 NFS compound failed for server server4: error 7 (RPC: Authentication error)
 NFS compound failed for server server4: error 7 (RPC: Authentication error)
 NFS compound failed for server server4: error 7 (RPC: Authentication error)
 nfs mount: mount: /mnt: Permission denied

 with NFS v3 it mounts just fine

 any ideas?

NFSv4 mounts are relative to the filesystem being exported.  NFSv3
mounts are absolute paths on the server.

IOW, if you export /pool/backup/sites/m/ on the server, then the mount
line on the client is just:
  mount -o vers=4 server4:/ /mnt

If you export / on the server, then the mount line on the client would be:
  mount -o vers=4 server4:/pool/backup/sites/m/ /mnt

This tripped me up when I tried converting my NFSv3 setup at home to NFSv4.


-- 
Freddie Cash
fjwc...@gmail.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: 8.2-PRERELEASE and Flash

2011-01-04 Thread George Liaskos
On Tue, Jan 4, 2011 at 5:16 PM, ben paley ben.pyttipa...@spooty.net wrote:
 Hello,

 I've been using FreeBSD since 3.4 but I've been away for a while. Now I've
 put 8.2 on an old laptop, and everything's lovely except power management
 (I'll get round to that eventually) and the Flash plug in.

 I've followed the steps at
 http://www.freebsd.org/doc/handbook/desktop-browsers.html without any
 errors, except that neither Firefox nor any other browser will play flash
 movies. about:plugins doesn't show a flash plugin.

 I've spent a while googling and all I can find is variations on the
 instructions from the handbook. I don't know where to start looking for the
 problem.

 I'd be really grateful to whoever could point me in the right direction.

 Thanks a lot,
 Ben

One common mistake is running nspluginwrapper -v -a -i as root.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: slow ZFS on FreeBSD 8.1

2011-01-04 Thread Freek van Hemert
Thank you mailinglist,

That was a lot of info. First of all, I don't think this is a cpu issue
since the cpu is mostly idle while copying.
Second, I tried the hacks in loader.conf and the other ones mentioned in the
beginning of the thread. Allthough perfomance is somewhat increased, it is
still horribly slow at something like 2.6MB/sec (my internet is faster.)

For the moment I will put my FreeBSD plans back in the fridge, I thought ZFS
would bring me instant performance and data safety without having to spend
too much time. I'll move back to Arch Linux and just setup a rsync between
the disks on ext4 or perhaps later I will move to btrfs. When 8,2 is stable
who knows I might just switch again although as the disks fill it will be
harder and harder...

I will definitely revisit FreeBSD and zfs but this was not the time for me.
Have a happy new year and thanks for all the comments.

Freek.




On 2 January 2011 12:33, Dan Langille d...@langille.org wrote:

 On 12/31/2010 6:47 PM, Jeremy Chadwick wrote:

 On Sat, Jan 01, 2011 at 10:33:43AM +1100, Peter Jeremy wrote:


  Based on my experiences at home, I converted my desktop at work to
 pure ZFS.  The only issues I've run into have been programs that
 extensively use mmap(2) - which is a known issue with ZFS.


 Is your ZFS root filesystem associated with a pool that's mirrored or
 using raidzX?  What about mismatched /boot content (ZFS vs. UFS)?  What
 about booting into single-user mode?

 http://wiki.freebsd.org/ZFSOnRoot indirectly hints at these problems but
 doesn't outright admit them (yet should), so I'm curious to know how
 people have solved them.  Remembering manual one-offs for a system
 configured this way is not acceptable (read: highly prone to
 error/mistake).  Is it worth the risk?  Most administrators don't have
 the tolerance for stuff like that in the middle of a system upgrade or
 what not; they should be able to follow exactly what's in the handbook,
 to a tee.

 There's a link to www.dan.me.uk at the bottom of the above Wiki page
 that outlines the madness that's required to configure the setup, all
 of which has to be done by hand.  I don't know many administrators who
 are going to tolerate this when deploying numerous machines, especially
 when compounded by the complexities mentioned above.


 This basically outlines the reason why I do not use ZFS on root.


 --
 Dan Langille - http://langille.org/
 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: ZFS - hot spares : automatic or not?

2011-01-04 Thread John Hawkes-Reed

On 04/01/2011 03:08, Dan Langille wrote:

Hello folks,

I'm trying to discover if ZFS under FreeBSD will automatically pull in a
hot spare if one is required.

This raised the issue back in March 2010, and refers to a PR opened in
May 2009

* http://lists.freebsd.org/pipermail/freebsd-fs/2010-March/007943.html
* http://www.freebsd.org/cgi/query-pr.cgi?pr=134491

In turn, the PR refers to this March 2010 post referring to using devd
to accomplish this task.

http://lists.freebsd.org/pipermail/freebsd-stable/2010-March/055686.html

Does the above represent the the current state?

I ask because I just ordered two more HDD to use as spares. Whether they
sit on the shelf or in the box is open to discussion.


As far as our testing could discover, it's not automatic.

I wrote some Ugly Perl that's called by devd when it spots a drive-fail 
event, which seemed to DTRT when simulating a failure by pulling a drive.



--
JH-R
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: ums0 diconnections

2011-01-04 Thread Damien Fleuriot
I would suggest the following 2 very quick tests:


1/ swap for another mouse, see if you have the problem with this one

2/ check mouse batteries if wireless, one never knows


On 1/4/11 5:11 PM, Barbara wrote:
 
 
 Sometimes my mouse seems frozen, then it become responsive again after few 
 seconds.
 The following lines are added in /var/log/messages:
 
 Jan  4 16:52:59 satanasso kernel: ugen1.2: Logitech at usbus1 (disconnected)
 Jan  4 16:52:59 satanasso kernel: ums0: at uhub1, port 2, addr 2 
 (disconnected)
 Jan  4 16:52:59 satanasso hald[1508]: 16:52:59.420 [W] hf-devd.c:379: 
 malformed devd event: 
 Jan  4 16:52:59 satanasso hald[1508]: 16:52:59.435 [W] hf-devd.c:379: 
 malformed devd event: 
 Jan  4 16:53:01 satanasso kernel: ugen1.2: Logitech at usbus1
 Jan  4 16:53:01 satanasso kernel: ums0: Logitech Optical USB Mouse, class 
 0/0, rev 2.00/3.40, addr 2 on usbus1
 Jan  4 16:53:01 satanasso kernel: ums0: 3 buttons and [XYZ] coordinates ID=0
 Jan  4 16:53:02 satanasso hald[1508]: 16:53:02.439 [W] hf-devd.c:379: 
 malformed devd event: 
 Jan  4 16:53:02 satanasso hald[1508]: 16:53:02.440 [W] hf-devd.c:379: 
 malformed devd event: 
 
 As far as I can remember, this is happening since about a month.
 I don't think that it's a hw problem, could it be a sw one?
 BTW, I see similar error from hald when, for example, I plug in USB drives.
 
 Thanks
 Barbara
 
 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: New ZFSv28 patchset for 8-STABLE

2011-01-04 Thread Attila Nagy

 On 01/03/2011 10:35 PM, Bob Friesenhahn wrote:


After four days, the L2 hit rate is still hovering around 10-20 
percents (was between 60-90), so I think it's clearly a regression in 
the ZFSv28 patch...

And the massive growth in CPU usage can also very nicely be seen...

I've updated the graphs at (switch time can be checked on the zfs-mem 
graph):

http://people.fsn.hu/~bra/freebsd/20110101-zfsv28-fbsd/

There is a new phenomenom: the large IOPS peaks. I use this munin 
script on a lot of machines and never seen anything like this... I'm 
not sure whether it's related or not.


It is not so clear that there is a problem.  I am not sure what you 
are using this server for but it is wise 

The IO pattern has changed radically, so for me it's a problem.
to consider that this is the funny time when a new year starts, SPAM 
delivery goes through the roof, and employees and customers behave 
differently.  You chose the worst time of the year to implement the 
change and observe behavior.
It's a free software mirror, ftp.fsn.hu, and I'm sure that it's (the 
very low hit rate and the increased CPU usage) not related to the time 
when I made the switch.


CPU use is indeed increased somewhat.  A lower loading of the l2arc is 
not necessarily a problem.  The l2arc is usually bandwidth limited 
compared with main store so if bulk data can not be cached in RAM, 
then it is best left in main store.  A smarter l2arc algorithm could 
put only the data producing the expensive IOPS (the ones requiring a 
seek) in the l2arc, lessening the amount of data cached on the device.
That would make sense, if I wouldn't have 100-120 IOPS (for 7k2 RPM 
disks, it's about their max, gstat tells me the same) on the disks, and 
as low as 10 percents of L2 hit rate.
What's smarter? Having 60-90% hit rate from the SSDs and moving the slow 
disk heads less, or having 10-20 percent of hit rate and kill the disks 
with random IO?
If you are right, ZFS tries to be too smart and falls on its face with 
this kind of workload.


BTW, I've checked the v15-v28 patch for arc.c, and I can't see any L2ARC 
related change there. I'm not sure whether the hypothetical logic would 
be there, or a different file, I haven't read it end to end.


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: bge driver regression in 7.4-PRERELEASE, Tyan S4881

2011-01-04 Thread Pyun YongHyeon
On Sat, Jan 01, 2011 at 03:43:09PM -0500, Michael L. Squires wrote:
 
 
 On Thu, 30 Dec 2010, Jeremy Chadwick wrote:
 
 Please provide output from the following command, as root:
 
 pciconf -lbvc
 
 And only include the bge1 and bge0 devices in your output.  Thanks.
 
 
 This is the output, as root, using the kernel with the 10/7/2010 bge code
 (which works for me).  I can provide the code with the 7.4-PRERELEASE
 kernel if you want that.
 
 OS is compiled as amd64.
 
 b...@pci0:17:2:0:   class=0x02 card=0x164814e4 chip=0x164814e4 
 rev=0x03
 hdr=0x00
 vendor = 'Broadcom Corporation'
 device = 'NetXtreme Dual Gigabit Adapter (BCM5704)'
 class  = network
 subclass   = ethernet
 bar   [10] = type Memory, range 64, base 0xd011, size 65536, enabled
 bar   [18] = type Memory, range 64, base 0xd010, size 65536, enabled
 cap 07[40] = PCI-X 64-bit supports 133MHz, 2048 burst read, 1 split 
 transact
 ion
 cap 01[48] = powerspec 2  supports D0 D3  current D0
 cap 03[50] = VPD
 cap 05[58] = MSI supports 8 messages, 64 bit
 b...@pci0:17:2:1:   class=0x02 card=0x164814e4 chip=0x164814e4 
 rev=0x03
 hdr=0x00
 vendor = 'Broadcom Corporation'
 device = 'NetXtreme Dual Gigabit Adapter (BCM5704)'
 class  = network
 subclass   = ethernet
 bar   [10] = type Memory, range 64, base 0xd013, size 65536, enabled
 bar   [18] = type Memory, range 64, base 0xd012, size 65536, enabled
 cap 07[40] = PCI-X 64-bit supports 133MHz, 2048 burst read, 1 split 
 transact
 ion
 cap 01[48] = powerspec 2  supports D0 D3  current D0
 cap 03[50] = VPD
 cap 05[58] = MSI supports 8 messages, 64 bit
 
 This is a hobby system supporting a home server,
 so it's not mission-critical and my current hack is working properly.
 
 Thanks to both of you for your assistance.
 

FYI: Patch committed to HEAD(r216970).
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: gstripe/gpart problems.

2011-01-04 Thread Clifton Royston
On Tue, Jan 04, 2011 at 04:21:31PM +0200, Daniel Braniss wrote:
 Hi,
 I have 2 ada disks striped:
 
 # gstripe list
 Geom name: s1
 State: UP
 Status: Total=2, Online=2
 Type: AUTOMATIC
 Stripesize: 65536
 ID: 2442772675
 Providers:
 1. Name: stripe/s1
Mediasize: 1000215674880 (932G)
Sectorsize: 512
Stripesize: 65536
Stripeoffset: 0
Mode: r0w0e0
 Consumers:
 1. Name: ada0
Mediasize: 500107862016 (466G)
Sectorsize: 512
Mode: r0w0e0
Number: 0
 2. Name: ada1
Mediasize: 500107862016 (466G)
Sectorsize: 512
Mode: r0w0e0
Number: 1
 
 boot complains:
 
 GEOM_STRIPE: Device s1 created (id=2442772675).
 GEOM_STRIPE: Disk ada0 attached to s1.
 GEOM: ada0: corrupt or invalid GPT detected.
 GEOM: ada0: GPT rejected -- may not be recoverable.
 GEOM_STRIPE: Disk ada1 attached to s1.
 GEOM_STRIPE: Device s1 activated.
 
 # gpart show
 =34  1953546173  stripe/s1  GPT  (932G)
   34 128  1  freebsd-boot  (64K)
  162  1953546045 - free -  (932G)
 # gpart show
 =34  1953546173  stripe/s1  GPT  (932G)
   34 128  1  freebsd-boot  (64K)
  162  1953546045 - free -  (932G)
 
 # gpart add -t freebsd-ufs -s 20g stripe/s1
 GEOM: ada0: corrupt or invalid GPT detected.
 GEOM: ada0: GPT rejected -- may not be recoverable.
 stripe/s1p2 added
 # gpart show
 =34  1953546173  stripe/s1  GPT  (932G)
   34 128  1  freebsd-boot  (64K)
  16241943040  2  freebsd-ufs  (20G)
 41943202  1911603005 - free -  (912G)
 
 if I go the MBR road, all seems ok, but as soon as I try to write
 the boot block (boot0cfg -B /dev/stripe/s1) again the kernel
 starts to complain about corrupted GEOM too.

So are you trying to partition the drives and then stripe the
partitions within the drives, or are you trying to partition the
stripe?

It seems here as though you might be trying to first partition the
drives (not clear on that) then stripe the whole drives - which will
mean the partition info is wrong for the resulting striped drive set -
and then repartition the striped drive set, and neither is ending up
valid.

If what you are intending is to partition after striping the raw
drives, then you are doing the right steps, but when the geom layer
tries to look at the info on the individual drives as at boot, it will
find it invalid.  If it the gpart layer is actually refusing to write
partition info to the drives which is wrong for the drives taken
individually, that would account for your problems.

One valid order to do things in would be partition the drives with
gpart, creating identical sets of partitions on both drives, then
stripe the partitions created within them (syntax not exact):
 
gpart add -t freebsd-ufs0 -s 10g ada0
gpart add -t freebsd-ufs1 -s 10g ada1
gstripe label freebsd-ufs freebsd-ufs0 freebsd-ufs1

That would give you a 20GB stripe, with valid partition info on each
drive.

If this will be your boot drive, depending on how much needs to be read
from the drive before the geom_stripe kernel module gets loaded, I
would think there could also be a problem booting from the drive.  This
is not like gmirroring two drives or partitions, where the info read
from either disk early in boot will be identical, and identical (except
for the last block of the partition) to what the OS sees later after
the mirror is formed.

I assume you're bearing in mind that if you lose either drive to a
hardware fault you lose the whole thing, and consider the risk worth
the potential speed/size gain.
  -- Clifton

-- 
Clifton Royston  --  clift...@iandicomputing.com / clift...@lava.net
   President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Build Broken: /usr/src/usr.bin/netstat/inet.c

2011-01-04 Thread Dan Allen
I just did a csup of stable, and the build is broken.

In function protopr various struct members are not defined.  The build halts.

First compile error is at /usr/src/usr.bin/netstat/inet.c line 462

Dan

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Build Broken: /usr/src/usr.bin/netstat/inet.c

2011-01-04 Thread John Nielsen
On Jan 4, 2011, at 3:40 PM, Dan Allen wrote:

 I just did a csup of stable, and the build is broken.
 
 In function protopr various struct members are not defined.  The build halts.
 
 First compile error is at /usr/src/usr.bin/netstat/inet.c line 462

Me too. It seems r216964 is the culprit. See my response on the SVN lists.

JN___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: NFSv4 - how to set up at FreeBSD 8.1 ?

2011-01-04 Thread Marek Salwerowicz

Hi,

so it slowly starts working:

nfs4-server# cat /etc/exports
V4: /
/ -maproot=root -network 192.168.183.0 -mask 255.255.255.0
nfs4-server#

nfs4-server# ps aux | grep mountd
root857  0.0  0.6  3348  1520  ??  Is   11:53PM   0:00.01 
/usr/sbin/mountd -e -r

nfs4-server# ps aux | grep nfsd
root   1303  0.0  0.5  3288  1324  ??  Is   12:04AM   0:00.03 nfsd: master 
(nfsd)
root   1304  0.0  0.5  3288  1260  ??  S12:04AM   0:00.02 nfsd: server 
(nfsd)

nfs4-server#


I am able to mount the root '/' from nfs4-server:

nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/ /marek_nfs4/
nfs4-client# ls /marek_nfs4/
.cshrc  cdrom   homeprocusr
.profilecompat  lib rescue  var
.snap   dev libexec root
COPYRIGHT   distmedia   sbin
bin entropy mnt sys
bootetc pliktmp
nfs4-client# mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/ad0s1e on /tmp (ufs, local, soft-updates)
/dev/ad0s1f on /usr (ufs, local, soft-updates)
/dev/ad0s1d on /var (ufs, local, soft-updates)
192.168.183.131:/ on /marek_nfs4 (newnfs)
nfs4-client#

it works also on different partition:

nfs4-server# cat /etc/exports
V4: /usr
/usr/home -maproot=root -network 192.168.183.0 -mask 255.255.255.0
nfs4-server#


nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/home /marek_nfs4/
nfs4-client# ls /marek_nfs4/
marek
nfs4-client#


What I noticed is that in 'V4: ' line we have to specify the mount point of 
the WHOLE partition we want to export


Regards

--
Marek Salwerowicz





___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: NFSv4 - how to set up at FreeBSD 8.1 ?

2011-01-04 Thread Rick Macklem
 Hi,
 
 so it slowly starts working:
 
 nfs4-server# cat /etc/exports
 V4: /
 / -maproot=root -network 192.168.183.0 -mask 255.255.255.0
 nfs4-server#
 
 nfs4-server# ps aux | grep mountd
 root 857 0.0 0.6 3348 1520 ?? Is 11:53PM 0:00.01
 /usr/sbin/mountd -e -r
 nfs4-server# ps aux | grep nfsd
 root 1303 0.0 0.5 3288 1324 ?? Is 12:04AM 0:00.03 nfsd: master
 (nfsd)
 root 1304 0.0 0.5 3288 1260 ?? S 12:04AM 0:00.02 nfsd: server
 (nfsd)
 nfs4-server#
 
 
 I am able to mount the root '/' from nfs4-server:
 
 nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/ /marek_nfs4/
 nfs4-client# ls /marek_nfs4/
 .cshrc cdrom home proc usr
 .profile compat lib rescue var
 .snap dev libexec root
 COPYRIGHT dist media sbin
 bin entropy mnt sys
 boot etc plik tmp
 nfs4-client# mount
 /dev/ad0s1a on / (ufs, local)
 devfs on /dev (devfs, local, multilabel)
 /dev/ad0s1e on /tmp (ufs, local, soft-updates)
 /dev/ad0s1f on /usr (ufs, local, soft-updates)
 /dev/ad0s1d on /var (ufs, local, soft-updates)
 192.168.183.131:/ on /marek_nfs4 (newnfs)
 nfs4-client#
 
 it works also on different partition:
 
 nfs4-server# cat /etc/exports
 V4: /usr
 /usr/home -maproot=root -network 192.168.183.0 -mask 255.255.255.0
 nfs4-server#
 
 
 nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/home /marek_nfs4/
 nfs4-client# ls /marek_nfs4/
 marek
 nfs4-client#
 
 
 What I noticed is that in 'V4: ' line we have to specify the mount
 point of
 the WHOLE partition we want to export
 
Yes, the NFSv4 protocol does not use the mount protocol (mountd) and
only handles a single exported tree (with the root defined at the
location specified by the V4: line). The protocol has an Op called
Put Root File Handle, which sets the RPC to the location of the root
and then Lookup Ops traverse down from there.

Early in NFSv4 development, one of the authors said NFSv4 is NFS in
name only and that is fairly accurate, imho. For example, one of the
fundamental principals for NFSv2, 3 was a stateless server, whereas
NFSv4 uses a statefull server and does lock state recovery after a
server crash.

rick
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: NFSv4 - how to set up at FreeBSD 8.1 ?

2011-01-04 Thread Rick Macklem
 Hi,
 
 so it slowly starts working:
 
 nfs4-server# cat /etc/exports
 V4: /
 / -maproot=root -network 192.168.183.0 -mask 255.255.255.0
 nfs4-server#
 
 nfs4-server# ps aux | grep mountd
 root 857 0.0 0.6 3348 1520 ?? Is 11:53PM 0:00.01
 /usr/sbin/mountd -e -r
 nfs4-server# ps aux | grep nfsd
 root 1303 0.0 0.5 3288 1324 ?? Is 12:04AM 0:00.03 nfsd: master
 (nfsd)
 root 1304 0.0 0.5 3288 1260 ?? S 12:04AM 0:00.02 nfsd: server
 (nfsd)
 nfs4-server#
 
 
 I am able to mount the root '/' from nfs4-server:
 
 nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/ /marek_nfs4/
 nfs4-client# ls /marek_nfs4/
 .cshrc cdrom home proc usr
 .profile compat lib rescue var
 .snap dev libexec root
 COPYRIGHT dist media sbin
 bin entropy mnt sys
 boot etc plik tmp
 nfs4-client# mount
 /dev/ad0s1a on / (ufs, local)
 devfs on /dev (devfs, local, multilabel)
 /dev/ad0s1e on /tmp (ufs, local, soft-updates)
 /dev/ad0s1f on /usr (ufs, local, soft-updates)
 /dev/ad0s1d on /var (ufs, local, soft-updates)
 192.168.183.131:/ on /marek_nfs4 (newnfs)
 nfs4-client#
 
 it works also on different partition:
 
 nfs4-server# cat /etc/exports
 V4: /usr
 /usr/home -maproot=root -network 192.168.183.0 -mask 255.255.255.0
 nfs4-server#
 
 
 nfs4-client# mount_nfs -o nfsv4 192.168.183.131:/home /marek_nfs4/
 nfs4-client# ls /marek_nfs4/
 marek
 nfs4-client#
 
You can also do the following:
For /etc/exports
V4: /
/usr/home -maproot=root -network 192.168.183.0 -mask 255.255.255.0

Then mount:
# mount_nfs -o nfsv4 192.168.183.131:/usr/home /marek_nfs4/
(But only if the file system for / is ufs and not zfs and, admittedly
there was a debate that has to be continued someday that might make it
necessary to export / as well for ufs like zfs requires.)

rick
ps: And some NFSv4 clients can cross server mount points, unlike NFSv2, 3.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: NFSv4 - how to set up at FreeBSD 8.1 ?

2011-01-04 Thread Rick Macklem
 On Tue, Jan 4, 2011 at 3:42 AM, Jean-Yves Avenard
 jyaven...@gmail.com wrote:
  On 4 January 2011 10:50, Rick Macklem rmack...@uoguelph.ca wrote:
  After reading this thread, I tried NFSv4 today..
 
  Whenever I tried to mount from a linux client, I get:
   mount -o vers=4 server4:/pool/backup/sites/m /mnt
  NFS compound failed for server server4: error 7 (RPC: Authentication
  error)
  NFS compound failed for server server4: error 7 (RPC: Authentication
  error)
  NFS compound failed for server server4: error 7 (RPC: Authentication
  error)
  NFS compound failed for server server4: error 7 (RPC: Authentication
  error)
  NFS compound failed for server server4: error 7 (RPC: Authentication
  error)
  NFS compound failed for server server4: error 7 (RPC: Authentication
  error)
  nfs mount: mount: /mnt: Permission denied
 
  with NFS v3 it mounts just fine
 
  any ideas?
 
 NFSv4 mounts are relative to the filesystem being exported. NFSv3
 mounts are absolute paths on the server.
 
Well, they are actually relative to where the NFSv4 root is specified
in the V4: line. For ZFS, the entire server file tree from that point
down must be exported (each volume requiring at least one line in /etc/exports).
For UFS, it can traverse down to the exported volume, but only by
specifying the path to the exported volume in the mount command.
(This may someday change, since it is questionable that it should have
 different behaviour than ZFS and could be argued a security risk.)

Since there can only be one root point specified by the V4: line,
you can get to multiple volumes, but they must be within the subtree.
For example, if the following three directories are roots of mounted
volumes on the server:
/usr
/usr/home
/usr/sub1

and the exports file looks like:
/usr -maproot=root -network 131.104.48.0 -mask 255.255.255.0
/usr/home -maproot=root -network 131.104.48.0 -mask 255.255.255.0
/usr/sub1 -maproot=root -network 131.104.48.0 -mask 255.255.255.0
V4: /usr

Then anywhere within /usr, /usr/home and /usr/sub1 can be mounted,
but the client specifies a path relative to /usr, such as:
# mount -t nfs -o nfsv4 server:/home /home
to mount /usr/home on the client.

By using:
V4: /
you can make the client mount paths look like what would be done
for NFSv3, but if the / file system isn't UFS, you must export
it as well as all the others or it can't be traversed.

rick

 IOW, if you export /pool/backup/sites/m/ on the server, then the mount
 line on the client is just:
 mount -o vers=4 server4:/ /mnt
 
 If you export / on the server, then the mount line on the client would
 be:
 mount -o vers=4 server4:/pool/backup/sites/m/ /mnt
 
 This tripped me up when I tried converting my NFSv3 setup at home to
 NFSv4.
 
Just trying to clarify what was good useful information, rick
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: NFSv4 - how to set up at FreeBSD 8.1 ?

2011-01-04 Thread Jean-Yves Avenard
Hi

On 5 January 2011 12:09, Rick Macklem rmack...@uoguelph.ca wrote:

 You can also do the following:
 For /etc/exports
 V4: /
 /usr/home -maproot=root -network 192.168.183.0 -mask 255.255.255.0

 Then mount:
 # mount_nfs -o nfsv4 192.168.183.131:/usr/home /marek_nfs4/
 (But only if the file system for / is ufs and not zfs and, admittedly
 there was a debate that has to be continued someday that might make it
 necessary to export / as well for ufs like zfs requires.)

 rick
 ps: And some NFSv4 clients can cross server mount points, unlike NFSv2, 3.


I've done that (exporting V4: /)

but then when I mount a sub zfs filesystem (e.g. /pool/backup/sites/m)
then it appears empty on the client.

If I export /pool/backup/sites/m , then I see the content of the directory.

Most of the sub-directory in /pool are actually zfs file system mounted.

It is something I expected with NFSv3 .. but not with nfs v4.

JY
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


usb errors with 8 stable

2011-01-04 Thread Beach Geek
Compaq Presario 5xxx 2GHz
FreeBSD 8 r216866 Tue Jan 4 2011
(rm -rf /usr/obj/*   make cleandir run before build)

When plugging in devices that worked earlier, none ever show up as devices
in /dev.  (2 examples listed below with error messages)
The devices work on an old Gateway box (450MHz) running FreeBSD 8 r216359
built Dec 11th (same build the laptop had).  I loaded files on the thumb
drives  Android phone using the Gateway before hitting the road.

I'm not sure if it's the update or hardware failure. I only have the laptop,
phone, and 4 usbdrives... no other hardware available.

Messages from 2 of the devices when plugged in; no messages when unplugged.
Device: Samsung m900 Android phone (Moment)
usbus2: port reset timeout
uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT
uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1

Device: Verbatim 4GB thumb drive
usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR,
ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_IOERROR
... above 2 messages repeated...
ugen0.2: Unknown at usbus0 (disconnected)
uhub_reattach_port: could not allocate new device

Any pointers or links to what could have changed in stable or any other
suggestions.
There aren't any usb options in BIOS.

I can provide more info, but please remember I'm using a 4inch screen and a
keyboard that fits in one hand.  ;-)
That's one reason I didn't include pciconf or usbconfig. I'm hoping it was
simply some commit I missed or a pointyhat mistake. Three weeks in the
middle of nowhere with a hardware failure... won't get much done, but ...
Android has games... doesn't it?  ;-))

Thanks for any help,
Beach Geek

PS. Android does not detect the laptop being connected, except for getting
power.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: usb errors with 8 stable

2011-01-04 Thread Jeremy Chadwick
On Tue, Jan 04, 2011 at 11:37:48PM -0600, Beach Geek wrote:
 Compaq Presario 5xxx 2GHz
 FreeBSD 8 r216866 Tue Jan 4 2011
 (rm -rf /usr/obj/*   make cleandir run before build)
 
 When plugging in devices that worked earlier, none ever show up as devices
 in /dev.  (2 examples listed below with error messages)
 The devices work on an old Gateway box (450MHz) running FreeBSD 8 r216359
 built Dec 11th (same build the laptop had).  I loaded files on the thumb
 drives  Android phone using the Gateway before hitting the road.
 
 I'm not sure if it's the update or hardware failure. I only have the laptop,
 phone, and 4 usbdrives... no other hardware available.

 Messages from 2 of the devices when plugged in; no messages when unplugged.
 Device: Samsung m900 Android phone (Moment)
 usbus2: port reset timeout
 uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT
 uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1
 
 Device: Verbatim 4GB thumb drive
 usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored)
 usbd_setup_device_desc: getting device descriptor at addr 2 failed,
 USB_ERR_IOERROR
 usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR,
 ignored)
 usbd_setup_device_desc: getting device descriptor at addr 2 failed,
 USB_ERR_IOERROR
 ... above 2 messages repeated...
 ugen0.2: Unknown at usbus0 (disconnected)
 uhub_reattach_port: could not allocate new device
 
 Any pointers or links to what could have changed in stable or any other
 suggestions.

 There aren't any usb options in BIOS.
 
 I can provide more info, but please remember I'm using a 4inch screen and a
 keyboard that fits in one hand.  ;-)
 That's one reason I didn't include pciconf or usbconfig. I'm hoping it was
 simply some commit I missed or a pointyhat mistake. Three weeks in the
 middle of nowhere with a hardware failure... won't get much done, but ...
 Android has games... doesn't it?  ;-))
 
 Thanks for any help,
 Beach Geek
 
 PS. Android does not detect the laptop being connected, except for getting
 power.

I would start by reviewing the commits for RELENG_8 between the two
timeframes and try to narrow down which commit may have caused your
problem.

http://www.freshbsd.org/?branch=RELENG_8project=freebsd

-- 
| Jeremy Chadwick   j...@parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.   PGP 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org