Partitioning?
12 Replies
I'd create all my filesystems via the Web interface. Okay, there's one exception: I've created one raw so that I could use reiserfs for a maildb store (a lot of small files). But still didn't bother to LVM-ize it, because all that's done outside the system.
I want to have a Linode dual boot for comparison testing purposes. One image has CentOS, the other has Ubuntu – or different kernel versions, or whatever.
(I found this thread looking for my specific scenario, so it's not hypothetical)
I create an image for each OS and then a third image for a shared /home (or /opt) partition image where user data such as web pages, email, and deployments are kept, so they can be accessible from either OS image.
I haven't tried it yet, but my guess is that I can create an ext3 disk image and mount it on both profiles as /dev/xvdc (where /dev/xvdca is the OS and /dev/xvdb is the Swap). Does this make sense.?
I'd assume an /etc/fstab entry referencing /dev/xvdc needs created as well.
@fijiaaron:
I haven't tried it yet, but my guess is that I can create an ext3 disk image and mount it on both profiles as /dev/xvdc (where /dev/xvdca is the OS and /dev/xvdb is the Swap). Does this make sense.?
Yup. It works too.
@fijiaaron:I'd assume an /etc/fstab entry referencing /dev/xvdc needs created as well.
Yup, just like you would if you just had a /home split off.
@Xan:
I can't think of a good reason (although there may be one) to worry about partitioning within a Linode. Manipulating disk images at the "machine" (Web interface) level gives you all the advantages of LVM, and you have all the simplicity of basic file systems within the Linode.
I'd create all my filesystems via the Web interface. Okay, there's one exception: I've created one raw so that I could use reiserfs for a maildb store (a lot of small files). But still didn't bother to LVM-ize it, because all that's done outside the system.
MMM something askew and your log's grow huge pretty good reason to have a /var/log
Web server, /var/www keeps web sources on their own slice, security for one
Database, /var/lib/mysql
There are a number of reasons for both security and stability. Keeping everying on one slice especially for a server is foolish.
@SteveG:
Marcus: those are all good reasons to have separate disk images, but with linodes that's the easiest way to handle it: disk images in the CP, and I can't think of why trying to partition a disk image would be better.
You can change partitions live and utilise them without needing a reboot; disk images require rebooting to make active.
@sweh:
You can change partitions live and utilise them without needing a reboot; disk images require rebooting to make active.
Only if none of the partitions on the disk are in use at the time you change the partitioning - if they are, you'll get a message saying that the kernel still uses the old partition table and that you'll need to reboot it to use the new one.
(Of course, if you LVM-ise it, you don't have this problem, so you can ignore this post in that case.)