HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   separate /var /tmp /boot on lvm (http://www.howtoforge.com/forums/showthread.php?t=43822)

u4david 4th March 2010 06:22

separate /var /tmp /boot on lvm
 
How would this work out to have /var nad /tmp on separate partitions?



Concerned about Quotas on /var to function properly with Ispconfig3 and have /tmp mounted with noexec.

Do not think that separate /boot would create any complications.

Could someoen propose the partitioning schema for Ispconfig3 with

200 gb harddrive to be used on.

and possible changes how to make it all work together as mentioned?

till 4th March 2010 11:09

You can set the partitions when you install your server.

Quote:

Could someoen propose the partitioning schema for Ispconfig3 with
I would not make that many different partitions as you will sooner or later get troble with it if one partition gets full. But if you really want to make many partitions, make sure that you have a large /var partition as websites and email accounts are stored in /var (on ubuntu, debian, centos and fedora). Only on opensuse, the websites are in /srv

u4david 4th March 2010 14:34

what would be the scoop on that?
 
sue i can set them up.

but what do i have to do to mount them so quota is working right on separate /var

and /tmp noexec will not brake somethink in ispconfig3

alsi sizes for ecah partition for 200 gb hd would be nice to know the ratioes.

This is my personal server vith about 20 sites oriented on photo gallery and social community.

falko 5th March 2010 13:53

Add ,usrjquota=aquota.user,grpjquota=aquota.group,jqfm t=vfsv0 to the /var partition in /etc/fstab and then run
Code:

touch /var/aquota.user /var/aquota.group
chmod 600 /var/aquota.*
mount -o remount /var

quotacheck -avugm
quotaon -avug


u4david 5th March 2010 14:16

i did that with error
 
i did and i got error i do not remember what it was but something that the options are incorrect or something.
I will post the exact message when i get to it

falko 6th March 2010 11:57

Please post your /etc/fstab as well.

u4david 7th March 2010 04:23

fstab before separate var......
 
proc /proc proc defaults 0 0
/dev/mapper/vg--u4s2-lv--root / ext4 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jq fmt=vfsv0 0 1
/dev/mapper/vg--u4s2-lv--boot /boot ext4 defaults 0 2
/dev/mapper/vg--u4s2-lv--tmp /tmp ext4 defaults 0 2
/dev/mapper/vg--u4s2-lv--swap none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


this is before the separate /var

I will implement /var as is own partition (logical lvm )when I start running out off space.

falko 7th March 2010 15:21

Do you want ot implement quota on / as well, or just on /var?

u4david 8th March 2010 19:33

Ispconfig3
 
well that is what i'm not sure.
I'm using ispconfig3 and for user the quota is definitively needed on war but I think that user can be jailed to home directory on root also.

Just won the ISPconfig3 to not get broken and user quota working properly system wide.

falko 9th March 2010 15:39

Quote:

Originally Posted by u4david (Post 221283)
proc /proc proc defaults 0 0
/dev/mapper/vg--u4s2-lv--root / ext4 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jq fmt=vfsv0 0 1
/dev/mapper/vg--u4s2-lv--boot /boot ext4 defaults 0 2
/dev/mapper/vg--u4s2-lv--tmp /tmp ext4 defaults 0 2
/dev/mapper/vg--u4s2-lv--swap none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


this is before the separate /var

I will implement /var as is own partition (logical lvm )when I start running out off space.

The problem is that you cannot set up quota on /var as long as there's no such partition...


All times are GMT +2. The time now is 11:51.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.