LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-16-2007, 04:43 AM   #1
gimmereeson
LQ Newbie
 
Registered: Jan 2007
Posts: 24

Rep: Reputation: 15
regarding virtual private server


i was given a virtual private server to work upon , the problem is it is not reporting quotas ,
when checked for the file system it says that no file system is configured . please tell me how to partition a virtual private server and how to setup quotas on it.
 
Old 01-16-2007, 09:37 AM   #2
osdeals
Member
 
Registered: Jul 2006
Distribution: RHEL, CentOS, PuppyLinux, SuSe, Ubuntu, Debian
Posts: 59

Rep: Reputation: 15
You will first need to enable quotas on the relevant filesystems (partitions).
Check the /etc/fstab file. Typically you would want to setup the /home or /var partitions with quotas. If you do not have separate /home or /var (or wherever you want to set up quotas) partitions, you can always enable it for the / filesystem.

The entry in /etc/fstab should look like one of these:

Code:
/dev/VolGroup00/LogVol00 /home   ext3  defaults,grpquota,usrquota  1 1
LABEL=/var               /var    ext3  defaults,grpquota,usrquota  1 2
The first entry is for an LVM, while the second is for a regular partition.

Next step remount the filesystems with the changed options. Use umount & mount to reload the filesystem with the quota options. If you enable quotas on / or /var or /usr, you will need to reboot for the changes to take effect.

Use quotacheck to check & update usage / create the quota files (aquota.user & aquota.group).

Next use the setquota or edquota commands to enable quotas for the users / groups you wish to impose quotas on.
Use quotaon / quotaoff to enable / disable the quotas as needed. repquota to generate a report.
 
Old 01-17-2007, 03:53 AM   #3
gimmereeson
LQ Newbie
 
Registered: Jan 2007
Posts: 24

Original Poster
Rep: Reputation: 15
finding problems with /proc/partitions

thank you so much for the reply
i tried to work out things as you said but when i issued the command
fdisk -l it throws an error message saying that it cannot open proc/partitions , so iam unable to figure out how to find the disk partitions.

please help me solve this issue , i've just started my career as a sys admin(infact just 5 dayas ago)iam very intent upon learning things
 
Old 01-17-2007, 10:11 AM   #4
osdeals
Member
 
Registered: Jul 2006
Distribution: RHEL, CentOS, PuppyLinux, SuSe, Ubuntu, Debian
Posts: 59

Rep: Reputation: 15
On a virtual private server (VPS), you cannot do an 'fdisk' unless your hosting provider is actually using an OS virtualization software. You can always see the partitions mounted / available to you by looking at the /etc/fstab (which you are accessing under your own chrooted environment).

Just do a 'df -h' to see what partitions are available. You can also do 'cat /etc/fstab'.

Please be careful here, because different hosting providers implement VPS differently, and if the provider is not giving you a chrooted environment, you will be looking at the fstab of the server itself. If you see that the output of either df -h or cat /etc/fstab is showing you significantly more disk space than you paid for, please do NOT proceed with any of the steps recommended earlier. You will then want to confirm with your hosting provider on implementing quotas.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
regarding virtual private server gimmereeson General 0 01-13-2007 03:32 AM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM
How to install a VPS / where to find it (Virtual Private Server) McNadia Linux - Software 1 01-05-2005 03:52 AM
Virtual private network citrus Linux - Networking 1 05-24-2004 08:11 AM
VPN - Virtual Private Networks? bnicolas Linux - Newbie 1 08-16-2001 04:24 PM


All times are GMT -5. The time now is 11:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration