From owner-freebsd-hackers@freebsd.org Tue Apr 19 13:59:04 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF6C5B14C1A for ; Tue, 19 Apr 2016 13:59:04 +0000 (UTC) (envelope-from joel.bertrand@systella.fr) Received: from rayleigh.systella.fr (newton-ipv6.systella.fr [IPv6:2001:7a8:a8ed:253::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "rayleigh.systella.fr", Issuer "rayleigh.systella.fr" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 86FDB1707 for ; Tue, 19 Apr 2016 13:59:04 +0000 (UTC) (envelope-from joel.bertrand@systella.fr) Received: from [192.168.2.3] (schroedinger.eikeo.com [192.168.2.3]) (authenticated bits=0) by rayleigh.systella.fr (8.15.2/8.15.2/Debian-4) with ESMTPSA id u3JDwgVR012833 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 19 Apr 2016 15:58:46 +0200 To: freebsd-hackers@freebsd.org From: =?UTF-8?Q?BERTRAND_Jo=c3=abl?= Subject: Diskless workstation and some minor issues Message-ID: <57163991.4000100@systella.fr> Date: Tue, 19 Apr 2016 15:58:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.1 at rayleigh X-Virus-Status: Clean X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2016 13:59:04 -0000 Hello, I have installed a diskless workstation (10.2-RELEASE-p14) that mounts its rootfs from a NetBSD nfs server. My fstab is : root@pythagore:~ # cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# 192.168.10.128:/srv/pythagore / nfs nfsv3,tcp,soft,intr,rw 0 0 ... 192.168.10.128:/home /home nfs nfsv3,tcp,soft,intr,rw 0 0 root@pythagore:~ # First question. I have installed this diskless workstation with an USB stick. Now, FreeBSD kernel mounts rootfs over NFS. But in a first time, it tries to mount usbus0 (!) : Apr 9 10:48:00 pythagore kernel: Root mount waiting for: usbus2 usbus1 usbus0 Apr 9 10:48:00 pythagore kernel: uhub0: 2 ports with 2 removable, self powered Apr 9 10:48:00 pythagore kernel: uhub2: 2 ports with 2 removable, self powered Apr 9 10:48:00 pythagore kernel: uhub1: 21 ports with 21 removable, self powered Apr 9 10:48:00 pythagore kernel: Root mount waiting for: usbus2 usbus1 usbus0 Apr 9 10:48:00 pythagore kernel: ugen0.2: at usbus0 Apr 9 10:48:00 pythagore kernel: ugen2.2: at usbus2 Apr 9 10:48:00 pythagore kernel: uhub3: on usbus2 Apr 9 10:48:00 pythagore kernel: ugen1.2: at usbus1 Apr 9 10:48:01 pythagore kernel: uhub4: on usbus1 Apr 9 10:48:01 pythagore kernel: Root mount waiting for: usbus2 usbus1 usbus0 Apr 9 10:48:01 pythagore kernel: uhub4: 6 ports with 6 removable, self powered Apr 9 10:48:01 pythagore kernel: uhub3: 8 ports with 8 removable, self powered Apr 9 10:48:01 pythagore kernel: ugen0.3: at usbus0 Apr 9 10:48:01 pythagore kernel: ukbd0: on usbus0 Apr 9 10:48:01 pythagore kernel: kbd2 at ukbd0 Apr 9 10:48:01 pythagore kernel: Root mount waiting for: usbus0 Apr 9 10:48:01 pythagore kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Apr 9 10:48:01 pythagore kernel: Root mount waiting for: usbus0 Apr 9 10:48:01 pythagore kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Apr 9 10:48:01 pythagore kernel: Root mount waiting for: usbus0 Apr 9 10:48:01 pythagore kernel: Root mount waiting for: usbus0 Apr 9 10:48:01 pythagore kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Apr 9 10:48:02 pythagore kernel: Root mount waiting for: usbus0 Apr 9 10:48:02 pythagore kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Apr 9 10:48:02 pythagore kernel: Root mount waiting for: usbus0 Apr 9 10:48:02 pythagore kernel: Root mount waiting for: usbus0 Apr 9 10:48:02 pythagore kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_IOERROR Apr 9 10:48:02 pythagore kernel: ugen0.4: at usbus0 (disconnected) Apr 9 10:48:02 pythagore kernel: uhub_reattach_port: could not allocate new device Apr 9 10:48:02 pythagore kernel: Trying to mount root from nfs:192.168.10.128:/srv/pythagore [nfsv3,tcp,soft,intr,rw]... Apr 9 10:48:02 pythagore kernel: NFS ROOT: 192.168.10.128:/srv/pythagore I don't understand why kernel tries to mount an USB rootfs... And I haven't found how fix this trouble. Second trouble. /var/log/message contains a lot of : Apr 9 10:50:00 pythagore atrun[862]: cannot lock /var/at/jobs/: Permission denied Of course, lockd and statd are running on nfs server. Permission on /var/at are : root@pythagore:/var/at # ls -al total 8 drwxr-xr-x 4 root wheel 512 Aug 12 2015 . drwxr-xr-x 28 root wheel 512 Apr 15 09:14 .. drwxr-xr-x 2 daemon wheel 512 Aug 12 2015 jobs drwxr-xr-x 2 daemon wheel 512 Aug 12 2015 spool root@pythagore:/var/at # I don't understand where is the mistake. An third trouble, this workstation runs cupsd. When I send a job to printer, cupsd run as expected but aborts after job is completed. In /var/log/cups/error_log, I have : E [19/Apr/2016:12:44:34 +0200] Unable to create "/usr/local/etc/cups/printers.conf.N": Operation not permitted E [19/Apr/2016:12:45:12 +0200] Unable to create "/var/cache/cups/job.cache.N": Operation not permitted E [19/Apr/2016:12:45:12 +0200] Unable to create "/var/spool/cups/c00032.N": Operation not permitted I have checked permissions on directories (and config file) without any result, but I have seen that permissions on /var/spool/cups are overwrittem by cups (to drwx--x---). All help will be welcome. Thanks in advance, JB