Diskless workstation and some minor issues
BERTRAND Joël
joel.bertrand at systella.fr
Tue Apr 19 13:59:04 UTC 2016
Hello,
I have installed a diskless workstation (10.2-RELEASE-p14) that mounts
its rootfs from a NetBSD nfs server. My fstab is :
root at 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 at 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: <Dell> at usbus0
Apr 9 10:48:00 pythagore kernel: ugen2.2: <vendor 0x8087> at usbus2
Apr 9 10:48:00 pythagore kernel: uhub3: <vendor 0x8087 product 0x8001,
class 9/0, rev 2.00/0.00, addr 2> on usbus2
Apr 9 10:48:00 pythagore kernel: ugen1.2: <vendor 0x8087> at usbus1
Apr 9 10:48:01 pythagore kernel: uhub4: <vendor 0x8087 product 0x8009,
class 9/0, rev 2.00/0.00, addr 2> 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: <NOVATEK> at usbus0
Apr 9 10:48:01 pythagore kernel: ukbd0: <NOVATEK USB Keyboard, class
0/0, rev 1.10/1.12, addr 2> 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: <Unknown> 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 at 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 at 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
More information about the freebsd-hackers
mailing list