Bish
Cadet
- Joined
- Aug 1, 2014
- Messages
- 8
Hello (first post!) all
Sorry for the length of this, but want to be thorough. Everything was going so well, until... Well no, loads of things went utterly wrong, but I've steadily been reading this forum (and elsewhere) and educating myself, and thought I'd got somewhere. But suddenly things went wrong.
SO. Running 9.2.1.6 as a home file server. All clients are Macs, so I went with AFP. I appreciate it's not a very popular option around here but bear with me.
I created two shares, one at /mnt/MyStuff/General and one at /mnt/MyStuff/Video*, set both up identically for guest access - it's a home network, everyone's trustworthy and I've a backup regime in place such that if anyone screws up nothing too awful will happen. Allow list has 'nobody' and Read write access has 'nobody'. AFP3 Unix Privs are turned on because the oldest client runs 10.6.8 so should be fine. In default file/folder permissions I went ahead and checked everything and left Default umask on 000.
So, I played around with it for a bit and found myself rather pleased with my reasonably fast and very functional NAS. Everything worked much better than previous consumer boxes I've tried before and I was very happy. I rsynced a couple of TB of data from one of those boxes (a slow process, but we got there in the end) and carried on testing. After several days of mucking around, and waiting for an inherited crashplan backup to complete, I was satisfied that my (non critical) data was fairly safe and stable.
And then last night something weird happened. I'd left one of my desktop machines copying some more videos over to the nice new NAS and mounted the /Video share on a laptop, expecting to see a bunch of files waiting to be organised, but there was nothing there. I went back to the desktop and found it had thrown up a username / password dialog box, and leaving it blank and pressing enter (to trigger the nobody profile) didn't work.
That left me with a /General share which anyone could continue to read, write and execute on, and a /Video one which could only be read. That sounded like an ownership problem (except that I hadn't changed anything), so I ssh into the box as root and do chown -R nobody:nobody /mnt/MyStuff/Video
That changed absolutely nothing. ls -lo revealed that all files had 775 permissions. Maybe chmod to 777 could help? No, operation not permitted in this build.
I've since succeeded in making the /General share behave exactly like the /Video share - in a stupid moment of stupid, I wondered if simply changing the General share to /mnt/MyStuff would allow me to fix the /Video permissions in the Mac Finder, but no, it just broke things more.
So to recap - I now have a very big 1/5 full NAS that I can no longer write to, at all. I've tried reboots between removing the shares and recreating them, turning the AFP service off and on, chowning the whole lot to a new guest user and simply supplying the new credentials when mounting in the OS, but nothing works - whatever I do, I've still got a read-only file system and cannot find a way to undo it. There are no peculiar flags or attributes going on (except everything being marked uarch, but I think from what I've read, that's just zfs marking files and folders that have changed since the last snapshot, right?), lsattr shows everything blank.
I've now gone around and around this hundreds of times in the last 24 hours and have read an awful lot of threads which don't have answers for me - can anyone help?
*Actual paths have been changed to conceal geekdom.
Sorry for the length of this, but want to be thorough. Everything was going so well, until... Well no, loads of things went utterly wrong, but I've steadily been reading this forum (and elsewhere) and educating myself, and thought I'd got somewhere. But suddenly things went wrong.
SO. Running 9.2.1.6 as a home file server. All clients are Macs, so I went with AFP. I appreciate it's not a very popular option around here but bear with me.
I created two shares, one at /mnt/MyStuff/General and one at /mnt/MyStuff/Video*, set both up identically for guest access - it's a home network, everyone's trustworthy and I've a backup regime in place such that if anyone screws up nothing too awful will happen. Allow list has 'nobody' and Read write access has 'nobody'. AFP3 Unix Privs are turned on because the oldest client runs 10.6.8 so should be fine. In default file/folder permissions I went ahead and checked everything and left Default umask on 000.
So, I played around with it for a bit and found myself rather pleased with my reasonably fast and very functional NAS. Everything worked much better than previous consumer boxes I've tried before and I was very happy. I rsynced a couple of TB of data from one of those boxes (a slow process, but we got there in the end) and carried on testing. After several days of mucking around, and waiting for an inherited crashplan backup to complete, I was satisfied that my (non critical) data was fairly safe and stable.
And then last night something weird happened. I'd left one of my desktop machines copying some more videos over to the nice new NAS and mounted the /Video share on a laptop, expecting to see a bunch of files waiting to be organised, but there was nothing there. I went back to the desktop and found it had thrown up a username / password dialog box, and leaving it blank and pressing enter (to trigger the nobody profile) didn't work.
That left me with a /General share which anyone could continue to read, write and execute on, and a /Video one which could only be read. That sounded like an ownership problem (except that I hadn't changed anything), so I ssh into the box as root and do chown -R nobody:nobody /mnt/MyStuff/Video
That changed absolutely nothing. ls -lo revealed that all files had 775 permissions. Maybe chmod to 777 could help? No, operation not permitted in this build.
I've since succeeded in making the /General share behave exactly like the /Video share - in a stupid moment of stupid, I wondered if simply changing the General share to /mnt/MyStuff would allow me to fix the /Video permissions in the Mac Finder, but no, it just broke things more.
So to recap - I now have a very big 1/5 full NAS that I can no longer write to, at all. I've tried reboots between removing the shares and recreating them, turning the AFP service off and on, chowning the whole lot to a new guest user and simply supplying the new credentials when mounting in the OS, but nothing works - whatever I do, I've still got a read-only file system and cannot find a way to undo it. There are no peculiar flags or attributes going on (except everything being marked uarch, but I think from what I've read, that's just zfs marking files and folders that have changed since the last snapshot, right?), lsattr shows everything blank.
I've now gone around and around this hundreds of times in the last 24 hours and have read an awful lot of threads which don't have answers for me - can anyone help?
*Actual paths have been changed to conceal geekdom.