Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: how do i enable quotas?
PostPosted: Sun Aug 10, 2008 5:35 pm 
Offline
Senior Newbie
User avatar

Joined: Wed Aug 06, 2008 4:06 pm
Posts: 11
So i installed debian 4.0 image with multiple partitions for:
/home /var /tmp /usr

now i added quota to the system:
apt-get install quota

so i want to add user and group quota to each partition.

the only way i know of how to do this is to go into fstab and add usrquota and grpquota.

but i dont see any of the file systems mounted in fstab,
but i do see it included through proc
lpha3:~# cat /proc/partitions
major minor #blocks name

202 0 2048000 xvda
202 16 528384 xvdb
202 32 4100096 xvdc
202 48 1028096 xvdd
202 64 4100096 xvde
202 80 516096 xvdf

do i need to mount these? add them to fstab and restart?

any help would be greatly appreciated by me nOOb nOOdle!


Last edited by anubix on Mon Aug 11, 2008 11:53 am, edited 2 times in total.

Top
   
 Post subject:
PostPosted: Sun Aug 10, 2008 7:02 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Quote:
th only way i know of how to do this is to go into fstab and add usrquota and grpquota.


Yep, that's what you need to do.

Edit /etc/fstab and add an entry for each disk image.
e.g.
/dev/xvdb /home ext3 defaults 0 0
/dev/xvdc /var ext3 defaults 0 0
and so on.

Save /etc/fstab, run mount -a and afterwards check if all the disk images are mounted properly. (Just to make sure that you didn't make a stupid mistake.) You probably don't need to restart. Then you can go back to /etc/fstab and add usrquota and grpquota as needed.


Top
   
 Post subject: cool thanks!
PostPosted: Sun Aug 10, 2008 8:45 pm 
Offline
Senior Newbie
User avatar

Joined: Wed Aug 06, 2008 4:06 pm
Posts: 11
Thanks a bunch.

see... i first tried it on one server and then when the dashboard said the restart was done i tried to log in and thought that the system got stuck because i saw a bunch of text like the system was loading up.

then i tried the same thing on another linode and got the same results.

then i posted this message.

then, (yes then again) i logged in to both server succesfully!

now i know what happened.

when i tried to log back in again it worked and i was seeing my os starting up.

even though the dashboard said all was done, all was not done.

since i added those entries i think the system took some 'extra' time to start up,
and ll i need to do was wait ;)

and down the linux road we go


Top
   
 Post subject: Re: cool thanks!
PostPosted: Sun Aug 10, 2008 9:40 pm 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
anubix wrote:
even though the dashboard said all was done, all was not done.


The dashboard only knows if your Linode is powered on or off, it doesn't know anything about the state of the OS. So when the dashboard says a boot job is complete, that's the same as the LED on the front of your computer coming on when you hit the power button.

--James


Top
   
 Post subject: not totally fixed yet
PostPosted: Sun Aug 10, 2008 11:25 pm 
Offline
Senior Newbie
User avatar

Joined: Wed Aug 06, 2008 4:06 pm
Posts: 11
all the new mounted file systems have no data in them,
isn't tht strange?

so i gues it does not work after all

i didnt use the -a switch whwen i mounted, just added in fstab and restarded.


Top
   
 Post subject: issue solved
PostPosted: Mon Aug 11, 2008 9:18 am 
Offline
Senior Newbie
User avatar

Joined: Wed Aug 06, 2008 4:06 pm
Posts: 11
i opened another forum topic on finding the correct procedure to mount seperate drives on a linode without loosing data, you can see it here..

http://www.linode.com/forums/viewtopic.php?p=16052#16052


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