Server A and Server B both mount a shared storage.
We want to change the owner of the shared storage.
1. Create a new user in Server A and Server B.
groupadd [group name]
useradd -g [group name] [user name]
2. Check the groupId and userId of Server A and Server B. GroupId and userId on both sides must be the same.
[group name]:x:[gid]:[user name],…
If the uid/gid is different on the servers, use vipw/vigr to modify it.
3. Change the owner of the shared storage.
Log in Server A and Server B.
chown -R [user]:[group] [shared storage]