nello
Patron
- Joined
- Dec 30, 2012
- Messages
- 351
Sorry, that was dumb of me. :(You don't need the "sudo" for the command on FreeNAS; you're already root.
Code:
[root@OctoberGroupNAS ~]# chown crashPlan:backup /mnt/red/fresh/empty.txt [root@OctoberGroupNAS ~]# ls -Al /mnt/red/fresh/empty.txt -rw-rw-r-- 1 crashPlan backup 0 Aug 16 16:00 /mnt/red/fresh/empty.txt [root@OctoberGroupNAS ~]# ls -Aln /mnt/red/fresh/empty.txt -rw-rw-r-- 1 1001 1001 0 Aug 16 16:00 /mnt/red/fresh/empty.txt [root@OctoberGroupNAS ~]#
As you suggested, I rebooted the Ubuntu VM:
Code:
nello@ubuntu16:~$ sudo reboot Connection to 10.10.49.123 closed by remote host. Connection to 10.10.49.123 closed. Descartes:~ nello$
After rebooting, the share was already mounted and empty.txt has the correct ownership
Code:
nello@ubuntu16:~$ sudo mount -t nfs 10.10.49.10:/mnt/red/fresh /mnt/nfs/crashPlanOctoberGroupNAS mount.nfs: /mnt/nfs/crashPlanOctoberGroupNAS is busy or already mounted nello@ubuntu16:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 2.0G 0 2.0G 0% /dev tmpfs 396M 6.1M 390M 2% /run /dev/mapper/ubuntu16--vg-root 18G 5.1G 12G 32% / tmpfs 2.0G 84K 2.0G 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/sda1 472M 110M 339M 25% /boot tmpfs 396M 8.0K 396M 1% /run/user/1000 10.10.49.10:/mnt/red/fresh 10G 144M 9.9G 2% /mnt/nfs/crashPlanOctoberGroupNAS nello@ubuntu16:~$ ls -Al /mnt/nfs total 1 drwxrwxrwx 3 crashPlan backup 4 Aug 16 17:45 crashPlanOctoberGroupNAS nello@ubuntu16:~$ ls -Al /mnt/nfs/crashPlanOctoberGroupNAS total 17 drwxr-xr-x 3 4294967294 backup 13 Aug 16 17:46 754740932183315422 -rw-rw-r-- 1 crashPlan backup 0 Aug 16 16:00 empty.txt nello@ubuntu16:~$
Of course, the files written by my CrashPlan backup still have their old ownership:
Code:
nello@ubuntu16:~$ ls -Al /mnt/nfs/crashPlanOctoberGroupNAS/754740932183315422 total 126 -rw-r--r-- 1 4294967294 backup 18 Aug 16 17:45 754740932183315422 drwxr-xr-x 2 4294967294 backup 5 Aug 16 17:46 cpbf0000000000000000000 -rw-r--r-- 1 4294967294 backup 349 Aug 16 17:46 cpbp -rw-r--r-- 1 4294967294 backup 42430 Aug 16 17:46 cpfmf -rw-r--r-- 1 4294967294 backup 26967 Aug 16 18:43 cpfmfp -rw-r--r-- 1 4294967294 backup 8 Aug 16 17:46 cpfmfs -rw-r--r-- 1 4294967294 backup 13619 Aug 16 18:43 cpfmfx -rw-r--r-- 1 4294967294 backup 32168 Aug 16 17:46 cphdf -rw-r--r-- 1 4294967294 backup 716 Aug 17 03:00 cp.properties -rw-r--r-- 1 4294967294 backup 1754 Aug 16 17:46 cprp -rw-r--r-- 1 4294967294 backup 53 Aug 16 18:43 cptl nello@ubuntu16:~$
So, I think I'll delete this CrashPlan backup archive, run a fresh backup and check the ownership.
I tried creating a new file on the share from within Ubuntu and, of course, my account owns it.:
Code:
nello@ubuntu16:~$ touch /mnt/nfs/crashPlanOctoberGroupNAS/empty2016.08.17.txt nello@ubuntu16:~$ ls -Al /mnt/nfs/crashPlanOctoberGroupNAS total 18 drwxr-xr-x 3 4294967294 backup 13 Aug 16 17:46 754740932183315422 -rw-rw-r-- 1 nello backup 0 Aug 17 10:40 empty2016.08.17.txt -rw-rw-r-- 1 crashPlan backup 0 Aug 16 16:00 empty.txt nello@ubuntu16:~$
And on the FreeNAS side, the file has the UID:GID of my Ubuntu account:
Code:
[root@OctoberGroupNAS ~]# ls -Al /mnt/red/fresh total 35 drwxr-xr-x 3 4294967294 backup 13 Aug 16 17:46 754740932183315422 -rw-rw-r-- 1 crashPlan backup 0 Aug 16 16:00 empty.txt -rw-rw-r-- 1 1000 backup 0 Aug 17 10:40 empty2016.08.17.txt [root@OctoberGroupNAS ~]#
So, I guess that this is working correctly now; no more nobody:nogroup ownerships! I was originally trying to get all read/writes from/to the mounted share to have crashPlan:backup ownership. But as long as CrashPlan can read/write its files as crashPlan:backup, I guess that's really better.
As far as I can figure, all I did to get rid of the nobody:nogroup ownerships was downgrade NFS to v3 and then re-boot. Do you have any other ideas to explain why ownership seems to be working now?
I may not be able to get back to this for a few days. But, please know that I REALLY appreciate you helping me through this.
I've found lots of posts by people having the same problem of getting nobody:nogroup ownerships assigned to mounts. They seem to either abandon NFS sharing or assign all mounts root ownership, which seems rather ill-advised. In any case, it would be good to post what made this work so that others could find it.
THANK YOU VERY MUCH!!!
- nello