VNX、eNas:擴展檔案系統後,許可權遭拒錯誤
Summary: 擴展檔案系統後,許可權遭拒錯誤。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
擴展使用者檔案系統時會回報以下錯誤:
檔案系統會管理擴充,但在重新建置 slot_x boot.cfg 檔案時報告的許可權拒絕錯誤。
[nasadmin@eNasCS ~]$ nas_fs -xtend filesystemexample size=300G pool=filepool -option slice=yes /nas/sbin/build_config: line 368: /nas/dos/slot_2/boot.cpy: Permission denied /nas/sbin/build_config: line 368: /nas/dos/slot_2/boot.cpy: Permission denied /nas/sbin/build_config: line 368: /nas/dos/slot_2/boot.cpy: Permission denied id = 40 name = filesystemexample使用 CLI 或 UI 對檔案系統進行組態變更,可能會導致 /nas/dos/slot_x/boot.cpy 發生「許可權遭拒」錯誤,其中「x」是檔案系統掛接的插槽號碼。
[nasadmin@Whatchamacallit-CS1 ~]$ ls -lh /nas/dos lrwxrwxrwx 1 root root 11 Jul 1 2011 /nas/dos -> /nbsnas/dos
注意:/nas/dos 是 /nbsnas/dos 的符號連結。
檔案系統會管理擴充,但在重新建置 slot_x boot.cfg 檔案時報告的許可權拒絕錯誤。
Cause
任何類型的 NAS 組態變更都會導致位於 /nbsnas/dos/slot_x 中的 boot.cfg 組態檔案重新建置 (「x」是掛接檔案系統的資料移動器插槽號碼),在此程式期間會建立暫時的檔案開機.cpy。
檔案系統可以擴展,但是 boot.cpy 檔案回報「permission denied」錯誤,這可能在 /nas/dos/slot_x 中重新建置 boot.cfg 期間出現問題。
磁碟分割 /nbsnas/dos 是使用以下命令手動掛接:
不正確的許可權:
/nbsnas/dos 應掛接為 MSDOS 檔案系統。在這種情況下,/nbsnas/dos 會以 vfat 檔案系統的方式掛接。
命令「掛接」顯示檔案系統的類型,我們也可以檢查控制站上的 /etc/fstab 檔案:
檔案系統 /nbsnas/dos 安裝不正確:
檔案系統可以擴展,但是 boot.cpy 檔案回報「permission denied」錯誤,這可能在 /nas/dos/slot_x 中重新建置 boot.cfg 期間出現問題。
磁碟分割 /nbsnas/dos 是使用以下命令手動掛接:
mount /dev/sda1 /nbsnas/dos因此,分割區已掛接為 vfat 類型檔案系統,群組擁有者已變更為「root」(而非 nasadmin),導致分割區發生許可權問題。
不正確的許可權:
pwd: /nbsnas drwxr-xr-x 22 root root 16K Dec 31 1969 dos pwd: /nbsnas/dos -rwxr-xr-x 1 root root 52 Nov 6 2018 boot.bat -rwxr-xr-x 1 root root 148K Jun 21 17:08 boot.cfg正確的許可權:
pwd: /nbsnas drwxrwxr-x 22 root nasadmin 16K Dec 31 1969 dos pwd: /nbsnas/dos -rwxrwxr-x 1 root nasadmin 52 Sep 7 2022 boot.bat -rwxrwxr-x 1 root nasadmin 2.2K Jun 21 03:21 boot.cfg此問題的主要原因是,dos 和開機檔案的「群組」擁有者應為「nasadmin」時為「root」。
/nbsnas/dos 應掛接為 MSDOS 檔案系統。在這種情況下,/nbsnas/dos 會以 vfat 檔案系統的方式掛接。
命令「掛接」顯示檔案系統的類型,我們也可以檢查控制站上的 /etc/fstab 檔案:
檔案系統 /nbsnas/dos 安裝不正確:
- eNas:
/dev/sda1 on /nbsnas/dos type vfat (rw)
- VNX:
/dev/nda1 on /nbsnas/dos type vfat (rw)檔案系統 /nbsnas/dos 的正確掛載:
- eNas:
/dev/sda1 on /nbsnas/dos type msdos (rw,sync,umask=002,gid=201)
- VNX:
/dev/nda1 on /nbsnas/dos type msdos (rw,sync,umask=002,gid=201)
Resolution
將檔案系統重新掛接為正確的檔案系統類型 MSDOS:
/nas/dos 分割區擁有權和許可權現在應正確無誤,且在檔案系統成功擴展後不再回報許可權拒絕錯誤。
- 確認 /etc/fstab 檔案正確無誤,並符合下列專案:
- eNas:
[nasadmin@CS0 ~]$ cat /etc/fstab | grep dos /dev/sda1 /nas/dos msdos noauto,rw,sync,umask=002,gid=201 0 0
- VNX:
[nasadmin@Whatchamacallit-CS1 ~]$ cat /etc/fstab | grep dos /dev/nda1 /nas/dos msdos noauto,rw,sync,umask=002,gid=201 0 0
- 取消掛接,然後使用步驟 2a 或 2b 重新掛接 /nas/dos 分割區:
- 根據 Dell 文章 25261、Celerra、VNX Unified的容錯移轉或容錯回復控制站:如何容錯移轉或容錯回復控制站 (可由使用者更正)
或
- 手動卸載和重新掛接 /nas/dos 分割區:
umount /nas/dos mount /nas/dos
- 確認 /nas/dos 已掛接為 MSDOS:
- eNas:
[nasadmin@CS0 ~]$ mount -t msdos /dev/sda1 on /nbsnas/dos type msdos (rw,sync,umask=002,gid=201)
- VNX:
[nasadmin@Whatchamacallit-CS1 nasadmin]# mount -t msdos /dev/nda1 on /nbsnas/dos type msdos (rw,sync,umask=002,gid=201)
/nas/dos 分割區擁有權和許可權現在應正確無誤,且在檔案系統成功擴展後不再回報許可權拒絕錯誤。
Affected Products
eNAS, VNX1 Series, VNX2 SeriesArticle Properties
Article Number: 000215315
Article Type: Solution
Last Modified: 07 July 2023
Version: 2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.