Koozali.org: home of the SME Server

Quota not working after adding extra hard drive.

Offline bjoyce

  • *
  • 72
  • +0/-0
Quota not working after adding extra hard drive.
« on: June 22, 2007, 01:27:53 AM »
Hi,
I have followed the the howto on adding an extra hard drive http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm and everything seems to be ok except for two things.

1) quota is not working

2) SME7admin is not seeing the new hard drive (I probably should put this second problem in the contribs section of the forum but thought the 2 problems could be related).

More detail:
/etc/fstab is as follows;
---start of paste---
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/main/root          /                       ext3    usrquota,grpquota        1 1
/dev/md1                /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/main/swap          swap                    swap    defaults        0 0
/dev/sdb1       /mnt/home       ext3    usrquota,grpquota       1       2

/dev/hda                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0
---end of paste---

The link info is listed here;
---start of paste---
[root@abel files]# ls -la
total 24
drwxr-xr-x   6 root  root  4096 Jun 18 08:32 .
drwxr-xr-x  10 admin admin 4096 Jun 18 09:35 ..
drwxr-xr-x   7 root  root  4096 May  9 05:05 ibays
lrwxrwxrwx   1 root  root    33 Oct  2  2006 primary -> /home/e-smith/files/ibays/Primary
drwxr-xr-x   5 root  root  4096 Mar 16  2006 samba
drwxr-xr-x   3 root  root  4096 Mar 18 03:15 server-resources
drwxr-xr-x   2 root  root  4096 Jan 31 02:59 .shadow
lrwxrwxrwx   1 root  root    15 Jun 13 06:35 users -> /mnt/home/users
---end of paste---

The quotas are not counting the information in /mnt/home
and an error occurs with quota test in the howto.

---start of paste---
[root@abel files]# quotacheck -vugc /dev/sdb1
quotacheck: Quota for users is enabled on mountpoint /mnt/home so quotacheck might damage the file.
Please turn quotas off or use -f to force checking.
---end of paste---

Here is a list of the root of the mounted drive;
---start of paste---
[root@abel files]# cd /mnt/home
[root@abel home]# ls -la
total 208
drwxr-xr-x     4 root root  4096 Jun 12 16:43 .
drwxr-xr-x     6 root root  4096 Jun 21 16:25 ..
-rw-------     1 root root 77824 Jun 22 09:14 aquota.group
-rw-------     1 root root 77824 Jun 22 09:14 aquota.user
drwx------     2 root root 16384 Jun 12 16:23 lost+found
drwxr-xr-x  1345 root root 24576 Jun 21 16:39 users
---end of paste---

Hope someone can help.

Regards Brad
.........

ghostilein

100% same Problem here
« Reply #1 on: August 12, 2007, 10:05:11 PM »
Hello Friends,

first i will thank all the SME-Server Developers for building an usual server for free.

I have the same problem here with the quota on an ext3 added HDD. Quota-files are ok. Fstab okay. But the servermanager doesn´t recognize files from users, which are on an seperate added ext3 HDD- linked as an ibay.

Perhaps any ideas. Searching the forum don´t help me.....

Lars

Offline Brenno

  • *****
  • 208
  • +0/-0
Re: Quota not working after adding extra hard drive.
« Reply #2 on: August 16, 2007, 10:27:20 PM »
Regarding the quota not working, I had a similar problem with a 6.0 install, and it boiled down to where I had mounted the drive in the filesystem since the quotas only work to a certain level. See http://forums.contribs.org/index.php?topic=24391.0 for details.

I don't know if this still applies to 7.x or you specifically, but it might help.