cPanel 解決 Quota Unlimited 的方法
2012 Jul 21 未分類
陸續進行主機空間的轉移
但是也陸續發生了悲劇...
一開始搬完一兩個空間
還滿歡樂了
沒想到 cpanel 搬家真的好方便
但是搬完以後發現
Linode 架出來的 cpanel
空間上限竟然都是 unlimited !!!
本來想說應該是沒設定好 package
check 了一下 package, 奇怪 都有設定啊
也有正確套用
但是 cPanel User List 顯示出來的就是 unlimited
這下可遭了
趕快 google 一下
發現執行 /scripts/initquotas 可以把 Quota 功能打開
於是執行了一下
$ sudo /scripts/initquotas
Quota Mode: Linux
journaled quota support: kernel supports, user space tools supports (available)
Warning : Your system does not have a separate filesystem for backups. This may cause performance degradation during the backup process.
/dev/xvda (already configured quotas = 1).
Updating Quota Files......
quotacheck: Cannot stat() mounted device /dev/root: 沒有此一檔案或目錄
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
....Done
Quotas have been enabled and updated.
這樣是有成功嘛? ...
再查了一下
因為 quota 程式找不到 /dev/root
所以網路上有人說
那就建一個 sumbo link 給他就好了
於是下了底下這行
再查了一下
因為 quota 程式找不到 /dev/root
所以網路上有人說
那就建一個 sumbo link 給他就好了
於是下了底下這行
$ sudo ln -s /dev/xvda /dev/root
然後再跑一次 quota 程式
$ sudo /scripts/fixquotas
Installing Default Quota Databases......Done
Quota Mode: Linux
journaled quota support: kernel supports, user space tools supports (available)
Warning : Your system does not have a separate filesystem for backups. This may cause performance degradation during the backup process.
/dev/xvda (already configured quotas = 1).
Updating Quota Files......
quotacheck: Scanning /dev/root [/] quotacheck: Cannot stat old user quota file: 沒有此一檔案或目錄
quotacheck: Old group file not found. Usage will not be substracted.
quotacheck: Checked 18938 directories and 184870 files
quotacheck: Old file not found.
done
....Done
Quotas have been enabled and updated.
Reading package lupopi_single
0則留言