tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Setting up pkgsrc over NFS
> On Nov 12, 2018, at 7:14 AM, Roy Marples <roy%marples.name@localhost> wrote:
>
> On 12/11/2018 15:12, Jason Thorpe wrote:
>>> On Nov 12, 2018, at 6:58 AM, Roy Marples <roy%marples.name@localhost> wrote:
>>>> That still doesn't tell us how /var/bulk.aarch64 maps to a mounted
>>>> filesystem on your server.
>>>
>>> /var or /var/bulk.aarch64 aren't mounted, so they are on /.
>>>
>>> /dev/xbd0a on / type ffs (log, NFS exported, local)
>>>
>>> Is that enough information?
>> Well, combined with your other debug output:
>> """
>> Got line /var/bulk.aarch64 -network 10.73.0.0 -mask 255.255.0.0 -maproot=root -alldirs
>> Found ep fs=0x8e00,0x78b
>> doing opt -network 10.73.0.0 -mask 255.255.0.0 -maproot=root -alldirs
>> get_net: '10.73.0.0' v4 addr 490a
>> doing opt -mask 255.255.0.0 -maproot=root -alldirs
>> get_net: '255.255.0.0' v4 addr ffff
>> doing opt -maproot=root -alldirs
>> doing opt -alldirs
>> mountd[17234]: "/var/bulk.aarch64 -network 10.73.0.0 -mask 255.255.0.0 -maproot", line 6: Can't change attributes for /var/bulk.aarch64 to 10.73.0.0: Operation not permitted
>> Getting mount list.
>> Here we go.
>> """
>> ...my guess is that something else in your exports file resulted in the server's / becoming exported (note the "NFS exported" line you pasted above), and that's tripping up the /var/bulk.aarch64 entry because the user mapping attributes conflict.
>> Can you provide the entirety of the output of "mount" on the server?
>
> netbsd# mount
> /dev/xbd0a on / type ffs (log, NFS exported, local)
> kernfs on /kern type kernfs (local)
> ptyfs on /dev/pts type ptyfs (local)
> procfs on /proc type procfs (local)
> tmpfs on /var/shm type tmpfs (local)
> /home/roy/src/pkgsrc/packages on /var/spool/ftp/pub/pkgsrc/packages type null (read-only, local)
> netbsd#
Yup, ok, so that's the problem.
Export information is scoped to the mount point for the file system being exported. All of these entries in your exports file are basically redundant:
/usr/src -network 10.73.0.0 -mask 255.255.0.0 -maproot=nobody
/usr/xsrc -network 10.73.0.0 -mask 255.255.0.0 -maproot=nobody
/usr/pkgsrc -network 10.73.0.0 -mask 255.255.0.0 -maproot=nobody
/usr/obj.aarch64 -network 10.73.0.0 -mask 255.255.0.0 -maproot=nobody
/usr/obj.pkgsrc.aarch64 -network 10.73.0.0 -mask 255.255.0.0 -maproot=nobody
...because they all are exporting the "/" file system. This is allowed because all of the export attributes are the same.
To do what you want, you need to have a completely separate file system / mount point for /var/bulk.aarch64.
-- thorpej
Home |
Main Index |
Thread Index |
Old Index