[opensuse] SLES partitioning in VMware
Just wondering what others do or would recommend as a standard, when creating a SLES install on VMWare. I need to create a "pure" SLES (ie no OES stuff) install for a web server w/php and unixodbc and mysql I figured 15GB would be fine for the disk. However, with that small disk size, does it make sense to have seperate /, /root, /boot, /swap, /var and /home partitions? The installer suggests only a 1.4GB swap and the remaining as / Opinions? -- "There is a grandeur in this view of life, a life in which endless forms most beautiful and most wonderful have been, and are being, evolved." Charles Darwin The Origin of Species http://xkcd.com/167/ www.the-brights.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Jul 8, 2008 at 12:28 PM, Peter Van Lone
Just wondering what others do or would recommend as a standard, when creating a SLES install on VMWare.
I need to create a "pure" SLES (ie no OES stuff) install for a web server w/php and unixodbc and mysql
I figured 15GB would be fine for the disk. However, with that small disk size, does it make sense to have seperate /, /root, /boot, /swap, /var and /home partitions?
The installer suggests only a 1.4GB swap and the remaining as /
Opinions?
I would put mysql on a separate physical machine, as io operations on a virtual disks are slow. But if you decide that the speed is not an issue, use separate partitions for: /var - so filling up the logs or var/cache does not prevent the machine from booting /var/lib/mysql (or wherever you decide to have the database) usually, if you have 1-2G of RAM dedicated to the server, you do not need swap at all, but if you need it, create it everything else can be in one partition - usually 6G are more than enough for this. Cheers -- Svetoslav Milenov (Sunny) Even the most advanced equipment in the hands of the ignorant is just a pile of scrap. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Jul 8, 2008 at 12:56 PM, Sunny
I would put mysql on a separate physical machine, as io operations on a virtual disks are slow. But if you decide that the speed is not an issue, use separate partitions for: /var - so filling up the logs or var/cache does not prevent the machine from booting /var/lib/mysql (or wherever you decide to have the database) usually, if you have 1-2G of RAM dedicated to the server, you do not need swap at all, but if you need it, create it
everything else can be in one partition - usually 6G are more than enough for this.
thank you Sunny ... So other than /var and wherever mysql is could be a separate partition, with /boot and /root and /home all being part of the / partition? It makes sense to me to have a separate /var and perhaps even as you say a partition for mysql ... we plan to use the versions of programs that are in the distro, so apache/mysql .. I think by default apache puts the web home page on /home/http or something like that. Do you know where mysql is installed? Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Peter Van Lone wrote:
On Tue, Jul 8, 2008 at 12:56 PM, Sunny
wrote: I would put mysql on a separate physical machine, as io operations on a virtual disks are slow. But if you decide that the speed is not an issue, use separate partitions for: /var - so filling up the logs or var/cache does not prevent the machine from booting /var/lib/mysql (or wherever you decide to have the database) usually, if you have 1-2G of RAM dedicated to the server, you do not need swap at all, but if you need it, create it
everything else can be in one partition - usually 6G are more than enough for this.
thank you Sunny ...
So other than /var and wherever mysql is could be a separate partition, with /boot and /root and /home all being part of the / partition?
It makes sense to me to have a separate /var and perhaps even as you say a partition for mysql ... we plan to use the versions of programs that are in the distro, so apache/mysql .. I think by default apache puts the web home page on /home/http or something like that.
suse has always put apache content under /srv/www - perhaps you're thinking of older redhat.
Do you know where mysql is installed?
/var/lib/mysql Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, Jul 8, 2008 at 1:09 PM, Peter Van Lone
So other than /var and wherever mysql is could be a separate partition, with /boot and /root and /home all being part of the / partition?
It makes sense to me to have a separate /var and perhaps even as you say a partition for mysql ... we plan to use the versions of programs that are in the distro, so apache/mysql .. I think by default apache puts the web home page on /home/http or something like that.
Do you know where mysql is installed?
Using separate partitions have many different purposes, including preventing the OS from proper working, if all the disk space is full, or easy upgrades/migration of user directories (/home), etc. As this is not a multi-user system, and users will not fill their home dirs with tons of stuff, you do not need separate home. I suggest /var, because over the time, logs can increase, or some cache can be full etc. On suse mysql usually puts its data files in /var/lib/mysql, that's why I would put this on a separate partition to monitor, and extend/grow as needed. The web pages are not a concern, as the admin controls what and where is placed, so he can monitor the disk usage. You can also create different virtual disk images for these (at least for the database), so you can extend them as you need. And it is easier to backup the disk image with the database (lets say). Cheers -- Svetoslav Milenov (Sunny) Even the most advanced equipment in the hands of the ignorant is just a pile of scrap. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
J Sloan
-
Peter Van Lone
-
Sunny