• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

quota on logical volume doesn't work

B

Beto

Guest
I've installed plesk 8.0.1 on a fedora core 4. I'm having problems with the quota.(I'm using LVM !!)

They aren't enabled. if I use following command:

[root@cypres ~]# quotaon -avug

Normally should have every filesystem quota enabled . When I look at /etc/fstab no single filesystem has quota enabled.

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/vgcypres/lvroot / ext3 defaults 1 1
/dev/vgcypres/lvbackup /backup ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/vgcypres/lvhome /home ext3 defaults 1 2
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/vgcypres/lvvar /var ext3 defaults 1 2
/dev/vgcypres/lvwww /var/www ext3 defaults 1 2
/dev/vgcypres/lvswap swap swap defaults 0 0
/dev/hda /media/cdrom auto pamconsole,exec,noauto,managed 0 0


When I edit the fstab with vi and add the quota it doesn't work.

I don't now what to check else...

ps. quota is installed :)

root@cypres /]# whereis quota
quota: /usr/bin/quota /usr/share/man/man1/quota.1.gz

I even tried to update it via yum but there was nothing to update.

there is a knowledge base article but it doesn't work for me (http://kb.swsoft.com/article_16_768_en.html).

HEELP :)

----------------

Solved:

I got it working...

I added the quota to the /etc/fstab like following line:

/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1

Then I got to the filesystem where you want quotas on (/var/www/vhosts, in my case a have a Logical Volume mounted over /var/www , but if you have a typical FC4 installation it can be /)

do the following:

touch /aquota.user /aquota.group
chmod 600 /aquota.*
mount -o remount /
quotaon -avug

The last line isn't necaisary i guess because you added usrquota and grpquota to the fstap by yourself.

After doing this quotas were working !!
 
Back
Top