我在多个主机之间共享 NAS 时出现了奇怪的行为。
每个主机都会到达安装在同一源上的共享文件夹/sharedfolder
(##.###.###.###:/filesystem,其中##是原始IP地址的数字)。
上主机1显示httpd
文件夹 上的组/sharedfolder
,但在 Host2 上显示mygroup
相同资源。
为了在每个主机上获取相同的组信息,如何可能以及我应该做什么?
主机1:
[myuser@host1 sharedfolder]$ df -h
File system Dim. Usati Dispon. Uso% Montato su
/dev/mapper/vg_root-lv_root 97G 4,4G 93G 5% /
devtmpfs 2,0G 0 2,0G 0% /dev
tmpfs 2,0G 0 2,0G 0% /dev/shm
tmpfs 2,0G 84M 1,9G 5% /run
tmpfs 2,0G 0 2,0G 0% /sys/fs/cgroup
/dev/sda1 1014M 130M 885M 13% /boot
##.###.###.###:/filesystem 61G 3,0G 58G 5% /sharedfolder
tmpfs 395M 0 395M 0% /run/user/1001
[myuser@host1 ~]$ cd /sharedfolder/
[myuser@host1 sharedfolder]$ ll
totale 16
drwxrwxr-x 3 root httpd 4096 4 dic 10.50 folder1
drwxrwxr-x 2 myuser httpd 4096 29 apr 16.49 folder2
drwxrwxr-x 5 root httpd 4096 13 feb 23.09 folder3
drwxrwxr-x 3 myuser httpd 4096 21 apr 15.12 folder4
主机2:
[myuser@host2 ~]$ df -h
File system Dim. Usati Dispon. Uso% Montato su
/dev/mapper/vg_root-lv_root 97G 45G 53G 46% /
devtmpfs 7,9G 0 7,9G 0% /dev
tmpfs 7,9G 0 7,9G 0% /dev/shm
tmpfs 7,9G 76M 7,8G 1% /run
tmpfs 7,9G 0 7,9G 0% /sys/fs/cgroup
/dev/sda1 1014M 130M 885M 13% /boot
##.###.###.###:/filesystem 61G 3,0G 58G 5% /sharedfolder
tmpfs 1,6G 0 1,6G 0% /run/user/0
/dev/mapper/vg_fs-lv_fs 400G 295G 106G 74% /anothervolume
tmpfs 1,6G 0 1,6G 0% /run/user/1001
[myuser@host2 ~]$ cd /sharedfolder/
[myuser@host2 sharedfolder]$ ll
totale 16
drwxrwxr-x 3 root mygroup 4096 4 dic 10.50 folder1
drwxrwxr-x 2 myuser mygroup 4096 29 apr 16.49 folder2
drwxrwxr-x 5 root mygroup 4096 13 feb 23.09 folder3
drwxrwxr-x 3 myuser mygroup 4096 21 apr 15.12 folder4