Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Terry Brummell on April 05, 2002, 06:14:13 PM
-
I'm getting this emailed to me every night, started around Monday and I made no changes to the system:
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in numeric eq (==) at /sbin/e-smith/warnquota line 143.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
Use of uninitialized value in division (/) at /sbin/e-smith/warnquota line 303.
and here are what lines 143 and 303 of that file specify:
if ( ($bs == 0) && ($bh == 0) ) <----------------LINE 143
{
# User has no quota
# Add user to data structure.
${usersWithNoQuota{$user}} = {
username => $user,
fullname => $name,
usage => toMB($bc),
softQuota => toMB($bs),
hardQuota => toMB($bh),
gracePeriod => $bt
};
---------------------------------------------------------------------------------------
return sprintf("%.2f", $kb / 1024); <-------LINE 303
}
Anyone have any idea what is happening?
As a note, I don't apply quotas to my users, and now in the "Current Usage" column doesn't show me what each user has for disk space in use, all it has is zeros.
Terry
-
I get the same message every night since I have installed my server (SME 5.1.2) five weeks ago.
Have other users the same problem like us?
Regards,
Dominik
-
Do either of you have a second hard drive mounted. I have found you get this error if quotas aren't working correctly. This usually happens if you try to mount a second drive and don't enable quotas on it. If you only have one drive or have a second drive installed correctly with quotas then usually a quotaoff and then a quotaon will solve the problem.
-Shad
-
I don't have a 2nd hard drive, but I do have some shares from my Windows machine mounted to some ibays. Does that count?
ps-I just realized I haven't received that Cron job email all weekend.....go figure!
-
Yes I have a second (and a 3rd, ..., 5th) HDD in my server.
When I have enough time I will change the fstab to make quota on the other drives accessible.
Thanks. I hope I can make it work.
With the older Versions of e-smith (4.1.2) I had no problem with the same configuration.
Dominik
-
Shad
If you havre 2 disks then how do you add the second one tothe quotas?
TIA
Gordon
-
That's no problem. Just at usrquota and grpqouta in the correct line in /etc/fstab.
Here is a part of my fstab entry:
LABEL=/ / ext2 usrquota,grpquota 1 1
LABEL=/boot /boot ext2 defaults 1 2
LABEL=/home /home ext2 defaults,usrquota,grpquota 1 2
The / partition is a little SCSI disk and the /home disk is a big IDE HDD.
Save the fstab and than go to the root of your second harddisk.
Mine is, as example /home. Here you must create two new files........
-----
OK, here agein in the right order:
1. Login as root
2. Modify /etc/fstab: add usrquota,grpquota like the / partition
3. Go to the root of the partition you wish to enable quota, then create quota.user and quota.group by doing:
touch /partition/quota.user
touch /partition/quota.group
chmod 600 /partition/quota.user
chmod 600 /partition/quota.group
4. Then run the command: /sbin/quotacheck -avug to 'index' the second HDD for quota
5. Make a reboot to check the correct running at boot time
6. make a quota for a user and copy some files to the new HDD. If you can't write the data, you have reached the quota limit. Check this with the server-manager.
I use SME 5.1.2 a long time and made the change after installation. After the little problem with the warnquota, I got it work correct without problems since then.
Have a look at this for more information about quota:
http://www.linuxdocs.org/HOWTOs/mini/Quota-4.html#ss4.4 and
http://www.tldp.org/HOWTO/mini/Quota.html
I hope I could help you.
Dominik