Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up a rockes7 shared directory

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Today, the editor will share with you the relevant knowledge points about how to set up the rockes7 shared directory. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.

Rockes7 shared directory settings

1. View the node host name:

$cat / etc/hosts# Added by rocks report host # # DO NOT MODIFY # # Add any modifications to # # / etc/hosts.local file # 127.0.0.1 localhost.localdomain localhost10.1.1.254 compute-0-0.local compute-0-010.1.1.253 compute-0-1.local compute-0-110.1.1.1 rocks.local Rocks192.168.1.99 rocks.cluster1.org

two。 Profile Settings:

2.1 exports Fil

# cat / etc/exports/export 10.1.1.1 (rw,async,no_root_squash) 10.1.1.0 max 255.255.255.0 (rw,async) / data 10.1.1.1 (rw,async,no_root_squash) 10.1.1.0 max 255.255.255.0 (rw,async)

Permission description:

Rw is readable and writable. Ro is read-only. Sync writes data synchronization to memory and disk. Async temporarily stores the data in memory before writing it to disk if necessary. No_root_squash has maximum permissions if the client uses root users to manipulate shared folders. Root_squash (default) if the client uses a root user to manipulate a shared folder, set its identity to anonymous user nfsnobody, reducing permissions. The no_all_squash (default) access user matches the local user first, and then maps to an anonymous user or user group when the match fails. The user user of the all_squash client is converted into an anonymous user nfsnobody. Subtree_check (default) if the output directory is a subdirectory, the nfs server checks the permissions of its parent directory. The no_subtree_check server does not check the permissions of its parent directory even if the output directory is a subdirectory, which improves efficiency.

2.2 modify automatic mount

# cat / etc/auto.shareapps cluster.local:/export/&bio cluster:/export/&work-fstype=nfs,vers=3,rw 10.1.1.1:/datanas1-fstype=nfs,vers=3,rw nas-0-1.local:/export/data1

2.3 modify / etc/sysconfig/autofs file

MOUNT_NFS_DEFAULT_PROTOCOL=3 defaults to 4, which is changed to 3 / 4 and commented out to prevent nobody.

2.4 modify / comment out the etc/idmapd.conf file:

# absolute search base for (people) accounts#LDAP_people_base = # absolute search base for groups#LDAP_group_base =

2.5 restart autofs:

Systemctl restart autofssystemctl restart rpcidmapd

Restart nfs

Systemctl restart nfs.service

2.6 synchronize

If the synchronization is not successful, you need to configure it to each computing node: / etc/auto.share

Rocks sync configrocks sync users

Remember to use exportfs when the exportfs # export directory is in effect

Shared home directory settings: / etc/auto.home

Condor-nfsvers=3 cluster.local:/export/home/condor

Process-nfsvers=3 cluster.local:/export/home/process

These are all the contents of the article "how to set up rockes7 shared directories". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report