LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-07-2003, 07:37 PM   #1
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Rep: Reputation: 15
Disk quotas on "/" mount point?


I need to enable disk quotas on our network file server (Samba, RedHat) to prevent the data growing too big to fit on our nightly back-up tapes.

We have 2 directories where all the shared drives are kept

/home

&

/data

After researching how to implement quotas it is recommended that /home and /data be seperate mount points/partitions as you can only enable quotas on a mount point - as well as some other good reasons. I did not originally configure our fileserver and the /home and /data directories are on the same partition as "/" and so to enable quotas I would have to enable it on the "/ "mount point - which means basically the whole disk.

I want to know if it's ok to enable quotas on "/" and if I do so will I encounter any problems?
 
Old 08-07-2003, 07:44 PM   #2
cIx
Member
 
Registered: Aug 2003
Location: /dev/null
Posts: 40

Rep: Reputation: 15
I would recommend using separate mount points. I've never enabled quotas on "/", so I can't tell you much.
 
Old 08-08-2003, 12:29 AM   #3
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Original Poster
Rep: Reputation: 15
...yeah I realise separate mount points would be the way to go but it hasnt been originally configured that way so I am stuck with what I have. I dont really have the resources to repartition the drive unless its absolutely necessary - its on a production fileserver for our company with a single HDD.

Eventually the best way would be to aquire a second drive and move the /data and /home directories to individual partitions on the new drive - but for now its all under "/"
 
Old 08-08-2003, 01:23 AM   #4
cIx
Member
 
Registered: Aug 2003
Location: /dev/null
Posts: 40

Rep: Reputation: 15
I don't if it's helpful, but you can setup user quates and they apply it to other users:

edquota -p THE_FIRST_USER `awk -F: '$3 > 499 {print $1}' /etc/passwd`

this assumes that your system gives UID from 500 (change 499 to fit your system). Of course you can setup a group quota if all your users are members of the same group.
 
Old 08-08-2003, 03:06 AM   #5
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Re: Disk quotas on "/" mount point?

Quote:
Originally posted by HighLife
I need to enable disk quotas on our network file server (Samba, RedHat) to prevent the data growing too big to fit on our nightly back-up tapes.

We have 2 directories where all the shared drives are kept

/home

&

/data

After researching how to implement quotas it is recommended that /home and /data be seperate mount points/partitions as you can only enable quotas on a mount point - as well as some other good reasons. I did not originally configure our fileserver and the /home and /data directories are on the same partition as "/" and so to enable quotas I would have to enable it on the "/ "mount point - which means basically the whole disk.

I want to know if it's ok to enable quotas on "/" and if I do so will I encounter any problems?
Scary stuff there eh? Yeah, I'd pull an all nighter, backup to tape everything, then partition up the disk, put all data back from backup and live happily ever after. Short of that...

Backup the data to tape again, but instead of just chopping arbitrarily grab:
http://www.gnu.org/software/parted/
(parted) to resize. This is considered safe, but with your backups you shouldn't have to sweat nearly as much as those of us who don't have em Resize your / partition, giving the necessary space to /home and /data create the new partitions (all with parted) mount up the new mount points, and be on your mary way. That'd be what I'd do personally, but then again, my job isn't on the line sorry.

Good Luck!

Cool
 
Old 08-10-2003, 09:18 PM   #6
HighLife
Member
 
Registered: Feb 2003
Posts: 36

Original Poster
Rep: Reputation: 15
...yeah repartition might be the way to go then - looks like it may be a weekend job!

Either that or I'll convince them to purchase a second drive and then copy the user/group shares across onto that into 2 fresh partitions.

Thanks for the info...
 
  


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
problems with smbfs mount-point in /etc/fstab - "mount -a" works, but not at boottime MarkSide Linux - Software 4 11-20-2005 03:30 PM
"Enabling local filesystem quotas" - boot failure Boby Linux - Software 1 01-22-2005 05:21 PM
"YOU" says "could not write server list to disk" dushkinup Linux - Distributions 4 07-26-2004 12:01 PM
"Can't resolve mount point ..." - Mandrake 9.2 to WinXP host funcii Linux - Newbie 3 02-27-2004 01:17 PM
What does "loop-mount the disk image" mean ? karans Linux - Distributions 1 10-29-2003 08:21 AM


All times are GMT -5. The time now is 01:24 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