Mounting a disk image

This is a newbie question.

I have a Linode 512 and this comes with 16GB.

You have to reserve some space for swap (256 MB for an ubuntu server, does that sound about right?)

What about the rest? Do you create 1 disk image for your webserver, or do you create 2 disk images, 1 for your webserver, and 1 for data/backup storage?

I am going to experiment and learn how to manage a server before I go live, so I will probably reinstall my server a few times in the following months and thought that a separate data disk would save me some trouble (backups of config files, sites, …).

Does this makes sense?

I found out how to mount the data disk:

  • Create new disk image "Data"

  • edit configuration profile and select "Data" (name of image) for /dev/xvdc.

  • save changes and reboot

  • ssh login, mkdir /data and mount -t ext3 /dev/xvdc /data

And this works.

How do I put this correctly in the fstab? I do not know all the options.

thanx

PS: How many servers can you create on 1 linode512? Probably only 1 running at a time, but can you create more than 1?

3 Replies

It's up to personal preference. I like to put everything in one big partition, others like to segment off home directories or log directories.

Custom partition/disk configurations may conflict with Linode's managed backup service. I seem to remember that being mentioned but I could be wrong.

Edit: http://forum.linode.com/viewtopic.php?p=28240#28240
> The backup system must be able to mount your disk images on the host. If you've used fdisk on your images to create partitions, or created encrypted volumes, or LVM, or done anything other than use our deployment or disk image creation tools, we won't be able to back up the data. The backup system operates on files, not at the block level.

Having multiple disks is fine, so long as they don't have a partition table (or are LVM, etc).

If you've created the disk images with the Linode Manager and chosen 'ext3', the backup service will do just fine.

-Chris

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct