Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: "Archiving" a linode
PostPosted: Mon Feb 13, 2012 1:59 pm 
Offline
Senior Member

Joined: Sun Sep 05, 2010 8:55 pm
Posts: 97
My main linode for my website is running an older stack (LAMP, with older versions of PHP and MySQL, and Ubuntu 8.04).

I've gotten everything working (I think) on a new linode, under LEMP, with current PHP and MySQL, and Ubuntu 10.04 LTS).

After I migrate, if I wanted to keep the older system around, just in case I needed to boot it, what do I have to do?

I'm thinking: delete everything I know I won't ever need off the old image (logs, backup files, etc). Then shrink the ext3 filesystem on the control panel. Then buy a new linode, only buying as big as I need to mount that image. Copy the image over, and boot.

That should work: no software should change, the older kernel will stay there, everything (except the IP address) will be exactly the same, right?


Top
   
 Post subject:
PostPosted: Mon Feb 13, 2012 5:25 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Delete everything you don't need and shrink the image, then deploy a new image as the new OS. You don't need to create a new linode to do that, nor do you need a new linode to boot into the old image (just create a different configuration profile for that image).

To make it even more compact, you could store a compressed archive of the old filesystem, although you can't easily boot into that like you could a shrunken disk image.


Top
   
 Post subject:
PostPosted: Mon Feb 13, 2012 5:59 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
The old kernel will not stay there if you deploy a new configuration profile. The kernel is not part of your disk image unless you use a custom kernel.

By the way, why deploy Ubuntu 10.04 now? You could wait another couple of months when the next LTS (12.04) comes out, set it up, and call it a day for the next 5 years. Packages in 10.04 are already out of date by almost 2 years.


Top
   
 Post subject:
PostPosted: Mon Feb 13, 2012 6:28 pm 
Offline
Senior Member

Joined: Sun Sep 05, 2010 8:55 pm
Posts: 97
Guspaz wrote:
Delete everything you don't need and shrink the image, then deploy a new image as the new OS.


hybinwt wrote:
The old kernel will not stay there if you deploy a new configuration profile. The kernel is not part of your disk image unless you use a custom kernel.


N00b alert.... are you guys saying the same thing, or something different?

The current system is on a Linode 2048. I'm pretty sure I can shrink it down to the smallest available (since I don't care about RAM much if I'm only booting it 'once in a blue moon').

If I delete everything I don't need, resize my partition and resize the linode down to the lowest available, can I just leave it there 'forever', if I'm willing to eat the monthly fee. I don't want to change kernels, the whole point was to be able to spin up the box 'as it was' if I needed to look for something.


Top
   
 Post subject:
PostPosted: Mon Feb 13, 2012 8:19 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
1. If the disk image is going to stay on the same linode and you don't touch any configuration profiles, yes, the kernel will remain the same for as long as Linode is willing to support it.

2. If you copy the disk image over to a new linode (as Guspaz suggeted), you will have to set up a new configuration profile with the exact same parameters as before. This is not difficult at all, you just need to remember to do it.

But honestly, very few things on a typical LAMP/LEMP stack depend on kernel versions, so it shouldn't matter either way. You should be using the 3.0 kernel if you're on any recent Linux distribution.

Anyway, did you use spawn-fcgi or php5-fpm for the new LEMP stack? If spawn-fcgi, you're all set. If php5-fpm, be very careful, because most third-party FPM packages for Ubuntu 10.04 are horribly outdated (and therefore insecure). Just another sign that 10.04 is on its way out.


Top
   
 Post subject:
PostPosted: Mon Feb 13, 2012 9:04 pm 
Offline
Senior Member

Joined: Sun Sep 05, 2010 8:55 pm
Posts: 97
hybinet wrote:
Anyway, did you use spawn-fcgi or php5-fpm for the new LEMP stack? If spawn-fcgi, you're all set. If php5-fpm, be very careful, because most third-party FPM packages for Ubuntu 10.04 are horribly outdated (and therefore insecure). Just another sign that 10.04 is on its way out.


It's running php-cgi, so I assume that's a flavor of spawn-fcgi?


Top
   
 Post subject:
PostPosted: Tue Feb 14, 2012 9:59 am 
Offline
Senior Member

Joined: Sun Sep 05, 2010 8:55 pm
Posts: 97
ericholtman wrote:
It's running php-cgi, so I assume that's a flavor of spawn-fcgi?


php_info.php shows:

Server API CGI/FastCGI


Top
   
 Post subject:
PostPosted: Wed Feb 15, 2012 10:50 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
hybinet wrote:
2. If you copy the disk image over to a new linode (as Guspaz suggeted), you will have to set up a new configuration profile with the exact same parameters as before. This is not difficult at all, you just need to remember to do it.


Since he's looking to keep the linode just as a 512 instead of a 2048, he doesn't need to copy the image, he can just resize the disk, then resize the linode.


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


Who is online

Users browsing this forum: No registered users and 3 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