• NFS.. again.

    From paulie420@1337:3/129 to All on Sun Aug 15 20:26:18 2021
    Gosh, guys.

    I figured out my permissions a bit more. The NAS NFS *is working, and serving files to users thru the BBS box. I didn't have the owner set to root, and when I did that, other users were given their correct accesses - I don't wanna get into that deeply; I KNOW I need to learn a lot more about permissions. Its really confusing.

    Ok... so now I have the NFS working, and need to make sure the two drives are always mounted @ /mnt/Backup6TB /mnt/Backup4TB... Ok... so I have a mountroms.sh that works fine... The directories are already there, when I run mountroms.sh they populate. I could create a Mystic event that runs that every hour; who cares about the extra commands when its already mounted... Eh. Thats kinda ugly...

    So, I edited my /etc/fstab and put in:
    10.0.0.131:/export/Backup4TB /mnt/Backup4TB nfs defaults 0 0 10.0.0.131:/export/Backup6TB /mnt/Backup6TB nfs defaults 0 0

    Reboot; mount points aren't populated. I read that nfs's don't LOVE the fstab because their network drives and don't connect fast enough. Remember, My NAS [for NOW, anyway. :P] is on a Pi... so its the most sucky one you could have.

    Anyway, I learn of autofs... install autofs, modify auto.master to include:
    /- /etc/auto.Backup4TB -nosuid,noowners
    /- /etc/auto.Backup6TB -nosuid,noowners

    and edit /etc/auto.Backup4TB/6TB like this:
    /mnt/Backup4TB -fstyle=nfs,user,nolock,nosuid,rw 10.0.0.x:/export/Backup4TB

    .... and restart autofs....

    Now the /mnt/Backup4TB / other say 'filesystem isn't there'.../error out.

    So... question; how would you make sure this NFS is mounted for the BBS box always? I can just run a mountroms.sh - but think that sucks.... I wish fstab just worked, and am ok with autofs as a solution, IF it worked - am I forgetting some THINGS that I should look at .... with either fstab OR autofs?

    Thanks guys... I *did* get the permissions ironed out - just wish I understood more about why. :/

    And I'm about to get some actual server hardware- feeling like I'm not ready to be that sysOp... :/

    Thanks for any help at all.



    |07p|15AULIE|1142|07o
    |08.........

    ... A bird in the hand might.

    --- Mystic BBS v1.12 A47 2021/08/08 (Raspberry Pi/32)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (1337:3/129)
  • From MeaTLoTioN@1337:1/101 to paulie420 on Mon Aug 16 12:00:46 2021
    10.0.0.131:/export/Backup4TB /mnt/Backup4TB nfs defaults 0 0 10.0.0.131:/export/Backup6TB /mnt/Backup6TB nfs defaults 0 0

    Try

    10.0.0.131:/export/Backup4TB /mnt/Backup4TB nfs4 defaults 0 0 10.0.0.131:/export/Backup6TB /mnt/Backup6TB nfs4 defaults 0 0

    ---
    |14Best regards,
    |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N

    |07ÄÄ |08[|10eml|08] |15ml@erb.pw |07ÄÄ |08[|10web|08] |15www.erb.pw |07ÄÄÄ¿ |07ÄÄ |08[|09fsx|08] |1521:1/158 |07ÄÄ |08[|11tqw|08] |151337:1/101 |07ÂÄÄÙ |07ÄÄ |08[|12rtn|08] |1580:774/81 |07ÄÂ |08[|14fdn|08] |152:250/5 |07ÄÄÄÙ
    |07ÄÄ |08[|10ark|08] |1510:104/2 |07ÄÙ

    --- Mystic BBS v1.12 A47 2021/08/10 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (1337:1/101)
  • From paulie420@1337:3/129 to MeaTLoTioN on Tue Aug 17 16:35:07 2021
    Try

    10.0.0.131:/export/Backup4TB /mnt/Backup4TB nfs4 defaults 0 0 10.0.0.131:/export/Backup6TB /mnt/Backup6TB nfs4 defaults 0 0

    Thanks for that, mL... it IS an nfs4. (umount -t nfs... works, tho.)

    ALSO, freaking... so what I *changed* was... I had the owner of the /share as 'paulie420' or 'pi'... changed that to root, and gave users 'paulie420' and 'pi' ACCESS - which fixed things;

    then noticed ONE area on another share that STILL wasn't allowing d/l's - so tried to reset all sub-directories to the same permissions... and it 'fixed' it... but it almost seems like... shit man - like issues continue to pop up w/o


























































































































































































































































































































































































































































































































































































































































































































    interaction from me. (I know I just don't quite know everything I need to yet.)

    ONE more thought I have is... I've shared the ENTIRE drives. Meaning that I start the shares on the / folder... instead of like... /myshare ... and the aquota.user and aquota.group files LIVE in that / directory - maybe I shouldn't


























































































































































































































































































































































































































































































































































































































































































































    be starting the share right on the / directory. But who the hell knows. :P

    Thanks for the nfs4 tip; I will try it. I know that I can get this- and think I


























































































































































































































































































































































































































































































































































































































































































































    just need to keep researching ... NAS/NFS's, PERMISSIONS and [possibly] OPENMEDIAVAULT.



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A47 2021/08/08 (Raspberry Pi/32)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (1337:3/129)