| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-20-2011, 09:12 AM
|
#1
|
|
LQ Newbie
Registered: May 2011
Posts: 3
Rep:
|
Import/export filesystem quotas
Hello.
I wanted to know if it's posible to import filesystem quotas. And if so, how can I do it?
I recently migrated a server, and presently the users don't have any quota limitations.
Thanks.
Regards,
Vilhena
|
|
|
|
07-20-2011, 04:26 PM
|
#2
|
|
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,674
|
@ Reply
Hi there,
I have never tried that before but I think the following steps might work:
1. Run quotacheck on the mounted partition. Suppose mounted partition is /opt/data then run: quotacheck -cvug /opt/data (This will create usr.quota and grp.quota files on that partition.
2. Make sure that you enable usrquota and grpquota option in /etc/fstab to reflect that.
3. If you have a backup of user and group quota files from old server then copy it over to /opt/data. This will replace the quota files there and I think it should take the values from old files which you have just placed in the mount point.
|
|
|
|
07-20-2011, 07:45 PM
|
#3
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,000
|
According to this http://linux.die.net/man/8/repquota repquota can report quotas set, which may be safer than copying over old files & certainly useful for comparing old vs new.
Note filenames
Quote:
aquota.user or aquota.group
quota file at the filesystem root (version 2 quota, non-XFS filesystems)
quota.user or quota.group
quota file at the filesystem root (version 1 quota, non-XFS filesystems)
|
|
|
|
|
07-25-2011, 05:05 AM
|
#4
|
|
LQ Newbie
Registered: May 2011
Posts: 3
Original Poster
Rep:
|
Thank you all for your replys.
I haven't tried your solutions because I have to bounce the server in order to activate the quota filesystems.
But tomorrow morning I'll do the reboot and i'll try what you've said.
Once again, thanks a lot!
Regards,
Vilhena
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:35 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|