Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Mounting a disk image
PostPosted: Wed Feb 16, 2011 11:56 am 
Offline
Senior Member

Joined: Wed Dec 01, 2010 10:39 am
Posts: 71
Website: http://www.pannix.net
Location: Belgium
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?


Top
   
 Post subject:
PostPosted: Wed Feb 16, 2011 1:19 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
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.


Top
   
 Post subject:
PostPosted: Wed Feb 16, 2011 1:32 pm 
Offline
Senior Member

Joined: Fri Dec 10, 2010 6:45 pm
Posts: 63
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: viewtopic.php?p=28240#28240
Quote:
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.


Top
   
 Post subject:
PostPosted: Wed Feb 16, 2011 1:43 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group