Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Disk Quotas
PostPosted: Thu Nov 09, 2006 3:40 am 
Offline
Senior Newbie

Joined: Thu Nov 02, 2006 7:20 pm
Posts: 6
Can someone assist me in setting up disk quotas for my users? I've been trying to this using the following link:

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-disk-quotas.html

but I keep crashing my linode. Any help would be appreciated. I'm wanting to set about 250-300MB of space per user.

Thanks
l0st_s0ul


Top
   
 Post subject:
PostPosted: Thu Nov 09, 2006 12:37 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Where in the process do you run into trouble?

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Thu Nov 09, 2006 9:08 pm 
Offline
Senior Newbie

Joined: Thu Nov 02, 2006 7:20 pm
Posts: 6
Well, when I followed those instructions and did what it said, my linode wouldnt start. Here is my etc/fstab:

Quote:
/dev/ubda / ext3 defaults 1 1
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults,usrquota,grpquota 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/ubdb swap swap defaults 0 0


i dunno what im doing wrong? but when I do this, my linode will not start


Top
   
 Post subject:
PostPosted: Fri Nov 10, 2006 6:07 am 
Offline
Senior Member

Joined: Thu Sep 23, 2004 8:35 pm
Posts: 73
Location: The Hague, Netherlands
Hi,

For a start you shouldn't have copy-pasted the fstab lines from the RedHat document. You need to remove the lines starting "LABEL=" -- it is probably why your Linode won't boot.

Recovering your Linode
If you can't reach the /etc/fstab from a regular boot, you can access the root disk image by using a recovery profile:

1. https://www.linode.com/members/configs.cfm
2. Select "Create a new configuration profile".
3. Add the following:
Label: Recovery - Finnix
Kernel: Recovery - Finnix (kernel)
Run Level: Single user mode
Drive setup:
/dev/ubda Recovery Finnix (iso)
/dev/ubdb (select your root drive image, e.g. Debian)
[Save Profile]

(Don't make this the "default" configuration.)

4. From the main page - https://www.linode.com/members/main.cfm - at "Issue a command to your Linode", select the "Recovery - Finnix"
from the drop-down list and issue a reboot (or start) command.

Access your Linode via ssh <host>.linode.com, login and mount the root partition of your Linode -- IIRC, this should work:
Code:
mount /mnt/ubdb


Now edit your fstab with nano / vi:

Code:
nano /mnt/ubdb/etc/fstab


and remove the offending LABEL lines.

Reboot the Linode via https://www.linode.com/members/main.cfm again, and it should restart. Your Linode will be alive again.

Adding quotas

I've not done this myself, but to add quotas to your Linode just edit the appropriate fstab entry -- don't add lines that don't belong there. For example, if you wanted to add quotas to your root partition, EDIT the line:

Code:
/dev/ubda / ext3 defaults 1 1

so it looks like this:
Code:
/dev/ubda / ext3    defaults,usrquota,grpquota 0 1


The rest of the instructions from the RedHat guide should then work.

HTH.


Cliff


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group