Hello all,
I have a set of diskless clients that I want to run off of TFTP + NFS / PXEBOOT
To achieve this I have set up an install medium that boots the device , executes a script under systemd(linux) that mounts my FreeBSD 12.1 server and starts copying the files to their new roots.
For some strange reason, this works for half of them. Half of them have all the permissions and users set correctly when the rsync -xav copies the files, the other half does not. Reinstalling is non-deterministic in the sense that the identical client might install correctly one time, but fail the other.
In the correct case, the system mounts NFS and copies everything using PID:GID 0:0 , in the wrong cases my files and folders are created using my FBSD user 1001:1001, my linux devices do not have a user 1001 and BSD doesnt have 1000; so differences are easy to spot.
I use a single install medium, so it is impossible that there are differences in client configurations, but for some reason the outcomes are different.
Can anyone tell me what can cause NFS mounting and file copy/creating to occur under the wrong host user?
obligatory /etc/exports file:
rc.conf:
I have a set of diskless clients that I want to run off of TFTP + NFS / PXEBOOT
To achieve this I have set up an install medium that boots the device , executes a script under systemd(linux) that mounts my FreeBSD 12.1 server and starts copying the files to their new roots.
For some strange reason, this works for half of them. Half of them have all the permissions and users set correctly when the rsync -xav copies the files, the other half does not. Reinstalling is non-deterministic in the sense that the identical client might install correctly one time, but fail the other.
In the correct case, the system mounts NFS and copies everything using PID:GID 0:0 , in the wrong cases my files and folders are created using my FBSD user 1001:1001, my linux devices do not have a user 1001 and BSD doesnt have 1000; so differences are easy to spot.
I use a single install medium, so it is impossible that there are differences in client configurations, but for some reason the outcomes are different.
Can anyone tell me what can cause NFS mounting and file copy/creating to occur under the wrong host user?
obligatory /etc/exports file:
Code:
# /etc/exports
/nfs -maproot=root -alldirs -network 192.168.88.2 -mask 255.255.255.0
rc.conf:
Code:
nfs_server_enable="YES"
nfs_server_flags="-t -u -h 192.168.88.250 -n 128"
mountd_enable="YES"
rpcbind_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"