Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Lasse Johansson on March 07, 2003, 01:00:50 AM
-
How do I enable quotas on a second HDD in SME 5.6?
Obviosly, it isn't enough to mark the partition as qouta enabled in /etc/fstab
If I remember correctly, the partition has to be initialized for quota first.
A short How-to, anyone??????
-
Check out quotaon and quotacheck. Remember SME is just RedHat enchanced, so reading the RedHat System Administrators Guide is A Good Thing.
Short answer is to unmount the second drive, and run quotacheck -vug /dev/hdb1
(or whatever your second drive is) and then remount the drive. This works however many drives you want to add to SME or indeed RedHat 7.x
-
Many thanks for your answer!
Just wanted to file a short warning for using that command on a disk with user data...
Running the command wiped the disk from all previous user data.
In my case, the mount point for my second hdd was /home...)
Luckily I had made a backup of that data so a
cp /home_backup/* -Rp /home
restored all the files again correctly.
Again, thank you for your help!!!
-
I just copied the quota.group and quota.user to the mount dir of the second drive
/home/esmith/files
seems to work But I havnt turned on quota either.
Is this a bad Idea?Lasse Johansson wrote:
-
I just copied the quota.group and quota.user to the mount dir of the second drive
/home/esmith/files
seems to work But I havnt turned on quota either.
Is this a bad Idea?
-
SalaTar wrote:
>
> I just copied the quota.group and quota.user to the mount dir
> of the second drive
> /home/esmith/files
> seems to work But I havnt turned on quota either.
> Is this a bad Idea?
How do you mean "seems to work" if you haven't turned on quota?
As far as I understand, it shouldn't work...
-
well the quotas show in quota addon only after I did it
After I made the second hdd for users the per instuctions.
The fstab mount was default 1 2
when I added the usrquota, grpquota 1 1 to fstab I got an error on mount till I copied the files over to the mount pount
It dont work hmm
I can see users diskusage now