Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
4.4.2. 一致的裝置號碼
重大與非重大裝置號碼會於模組載入時被動態式地分配。有些應用程式可因為區塊裝置總是透過相同的裝置(重大與非重大)號碼來啟用而得到最佳的效果。您可透過
lvcreate
和 lvchange
指令並使用下列引數來這麼指定:
--persistent y --major major --minor minor
Use a large minor number to be sure that it hasn't already been allocated to another device dynamically.
若您希望使用 NFS 來匯出檔案系統的話,在 exports 檔案中指定
fsid
參數可能能夠避免在 LVM 中設置一致性的裝置號碼的必要性。