Linux - ServerThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A new centos 6.6 is installed. When I do a df-h I get the following. My worry now should I reinstall to create a separate /var or leave it where it will be enough? Where will the /var be in the / or /home ?
/var in my experience is usually in root / , not home
Code:
$ cd /
/ $ ls
bin dev initrd.img lib64 mnt root srv usr vmlinuz.old
boot etc initrd.img.old lost+found opt run sys var
cdrom home lib media proc sbin tmp vmlinuz
I would redo the partition structure and make root only 10 or 15 gigs. then create a data partition and link stuff into the proper place. this has the advantage of keeping stuff separate should a reinstall be required for whatever reason. In your case
Code:
/ @ 15gb
/boot @ 512mb
/data @ 230gb
Adjust for LVM of course.
Last edited by jmgibson1981; 07-30-2015 at 10:58 PM.
You can create a new lv or partition and mount it under /var.If you want dedicated storage for MySQL or MariaDB you should mount it under /var/lib/mysql/
you might want to place /var on it's OWN harddrive
symlinking it to a var folder in /, No?
Placing var on another hard drive, or another partition, still requires symlink to root so logs being sent to / make it to the other var folder on another partition or another hard drive.
I run beta testing releases myself and all /home and / stuff I wish to keep goes on another partition and gets symlinked back to their respective spots in the linux file structure. I am lazy so I use rox file manager instead of command line for drag and drop symlinking. I'll like delete the var folder in /. Make a new one like for example /dev/sdb/var.
Then drag and drop /dev/sdb/var and pick relative from the menu. Instead of absolute.
If afeared newbie14. Reinstall with all the good suggestions I marked as helpful in this thread.
Hi Rokynji,
Initially you mentioned Your root at 200 + gig is more than enough room for /var. So can I leave it as it is ? I dont think my db will go up to 50 Gb even cause we will delete data we go.
Distribution: slackware 15.0 64bit, 14.2 64 and 32bit and arm, ubuntu and rasbian
Posts: 495
Rep:
yes. you can leave it as is, just be aware of the other comments made.
Having /var on a different partition can make it easier when upgrading your OS, but if you follow normal good practice of backing things up first, it shouldn't matter.
keeping it simple is useful, and if some time in the future your database gets so big it won't fit on the partition, add a second larger hard drive, and move everything in /var over to it, then just mount the new drive partition on /var
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.