TurnKey Linux Virtual Appliance Library

More than 10 gigs

Hi, I'd simply like to launch a turnkey instance that has more than 10 gigs from start, I don't want to mess around afterwards. I have a joomla site that is over 20 gigs and want to migrate it, Cheers, Dom
Liraz Siri's picture

Size of root filesystem on Amazon EC2 is not easily configured

Right, so you want the root filesystem to be larger than 10GBs. Unfortunately, the way Amazon EC2 works that is easier said than done. You'd have to create an entirely new image. We could program the Hub to do that but then you'd have to wait much longer for your machine to come up. Much longer.

Instead I propose you create an EBS volume and mount --bind it to wherever you want on your system. See this tutorial on how to move data to instance storage. Moving parts of your filesystem off to an EBS volume is similar in principle.

Are you kidding me

I must admit I tried that and ended up with /mnt on my joomla folder, could you be more specific with your instructions for a Joomla install, if you can do that I'll rack up an install and I'm yours

Oh and...

I'm going for an S3 rather than an EBS backed malarkey because we don't need to be switching anything on and off

Jeremy's picture

The instructions are pretty clear

And AFAIK (for the purposes of this) it is irrelevant whether you have an S3 or EBS backed instance.

Basically you should be able to use almost exactly the same commands as are used in the example Liraz linked to, but substitute /path/to/big/Joomla/folder (where ever that is) for /home in the example.

Still having Issues

Thanks for the replies,

 

Well I tried using the webmin method first and it cam up with this when I replace /home with /var/www
 
Edit Mount
Failed to save mount : Missing or non-existant original directory
 
I then used the shell methid by using these commands:
 
mv /var/www /mnt
mkdir -p /var/www
echo /mnt/var/www /var/www bind bind 0 0 >> /etc/fstab
mount /var/www
 
It moved the var/www and subdirectories to /mnt successfully, but doesn't seem to recognise them. In the disk and netword file system webmin module it describes them as not in use, when I click to try to activate it comes up with:
 
File System
 
Failed to mount /var/www :
mount: special device /mnt/var/www does not exist
 
So although the folder seems to be in the right place it's not being recognised!
Liraz Siri's picture

If you're configuring a mount

If you're configuring a mount bind via Webmin, make sure you select the right type of device: loopback.

Nearly there

I had an exptra VAR where it shouldn't have been, all seems to be working well now except except for the fact that I can get the site by using the IP, but not the tklapp.com address :0)

Jeremy's picture

Glad you got it working

As for updating the DNS with your new IP, try:

hubdns-update

IIRC it should auto run every hour as a cron job, but perhaps not?

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)