question regarding quotas

Joshua Oreman oremanj at webserver.get-linux.org
Sun Jun 29 22:57:02 PDT 2003


On Mon, Jun 30, 2003 at 12:25:45AM -0500 or thereabouts, Dan Nelson wrote:
> In the last episode (Jun 29), Josh Brooks said:
> > On Mon, 30 Jun 2003, Sergey "DoubleF" Zaharchenko wrote:
> > > So you are going to make a directory N Mbytes large... Make a file
> > > N Mbytes large, vnconfig it, disklabel it, newfs it and mount to
> > > your directory. You should be solved then.
> > 
> > Yes, I am familiar with this way of solving the problem, its just
> > that I would like to try to avoid having all those partitions mounted
> > (even if they are just vn-partitions) because then it is very hard to
> > increase or decrease those quota sizes - you have to dump, dd a
> > bigger file, re-vnconfig, then restore ... very time consuming.
> 
> If you're adventurous, you could use growfs :)

For example, to enlarge the quota by 100 MBytes:
# umount /the/quota/dir
# dd if=/dev/zero bs=1m count=100 >> /the/vn/file
# growfs /dev/vn?c
Did you make backups? yes
...
# mount /dev/vn?c /the/quota/dir

Alas, no way to shrink it :(

-- Josh

> 
> -- 
> 	Dan Nelson
> 	dnelson at allantgroup.com
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list