Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: 1gig -> 2gig troubles
PostPosted: Thu Jul 31, 2003 1:38 am 
Offline
Junior Member

Joined: Thu Jul 24, 2003 3:00 pm
Posts: 22
Sorry to post again, but even after following the link in the previous post, I don't think I have the answer to my question--which is briefly: How do I go from 1gig to 2gigs so that when I'm in my account it seems that I have 2 gigs continuously, even though they may be separated into various disk images?

Or, alternatively, how could I get my data off so that I could "reformat" with the full 2 gigs...and then put my data back on again?

Thanks for any advice.


Top
   
PostPosted: Thu Jul 31, 2003 3:04 am 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
rhunter007 wrote:
Sorry to post again, but even after following the link in the previous post, I don't think I have the answer to my question--which is briefly: How do I go from 1gig to 2gigs so that when I'm in my account it seems that I have 2 gigs continuously, even though they may be separated into various disk images?

Or, alternatively, how could I get my data off so that I could "reformat" with the full 2 gigs...and then put my data back on again?

Thanks for any advice.


My best guess, though you'd have to check on linode.com's policies is this:

1) Add another gig to your account
2) Create an empty 2G filesystem with the new space
3) Add that partition as a device available to the 1G configuration
4) Boot the 1G configuration in single user mode
5) Log in and mount the 2G partition somewhere (I'd create a new directory like /2G at the root and mount it there)
6) cd to /2G and copy all of the files over using tar (If you have it mounted at /2G the commands would be something like:
Code:
 cd /2G
tar --create --exclude /2G / | tar --extract -p


In theory, you could now create a configuration to boot off of the 2G partition and it should work. Once you've verified everything is working and all the files got copied, delete the 1G partition and open a support ticket to have it removed from your account. You now have a single 2G partition and you're ready to rock and roll.

--James

Disclaimer: I haven't tested this and I haven't migrated a system to a new drive in years, but in theory it should work. If you want to try it safely first, download user mode linux at home and try it that way. It should be fairly similar.


Top
   
 Post subject:
PostPosted: Thu Jul 31, 2003 5:13 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
If you want one disk that's 2GB, you'll have to delete and start over with the distro wizard.

If you're in too deep with your current setup, then the method I would use is copy your /usr or /home directory to another disk image, then delete it from the first disk image to free the space. Make sure you've edited /etc/fstab to mount the disk on boot.

The alternative is to add an additional gig to your account and use the method James outlined above...

This is a pain, isn't it?

-Chris


Top
   
 Post subject:
PostPosted: Thu Jul 31, 2003 8:56 pm 
Offline
Newbie

Joined: Tue Jul 29, 2003 5:21 pm
Posts: 3
Quote:
This is a pain, isn't it?


Yeah, a little bit. I've never used LVM under Linux, but wouldn't it be perfect in this situation? Maybe you could offer LVM as an option in the distribution wizard. People who've deployed that would have a much easier time growing their installations.

http://tldp.org/HOWTO/LVM-HOWTO/


Top
   
 Post subject:
PostPosted: Thu Jul 31, 2003 9:50 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
golliher wrote:
Yeah, a little bit. I've never used LVM under Linux, but wouldn't it be perfect in this situation? Maybe you could offer LVM as an option in the distribution wizard. People who've deployed that would have a much easier time growing their installations.

You read my mind. LVM is supported inside the Linode kernels, so you already can do it post-install.

I think the ultimate solution is to provide a resize facility. There already exists tools to do this (resize2fs and ext2resize). I've actually performed it manually with good results. I want to test it more before putting it out there.

-Chris


Top
   
 Post subject:
PostPosted: Fri Aug 01, 2003 5:21 pm 
Offline
Newbie

Joined: Tue Jul 29, 2003 5:21 pm
Posts: 3
I played around with LVM in my linode today and had a lot of success. However when it comes to converting the root file system as talked about here:

http://tldp.org/HOWTO/LVM-HOWTO/upgraderoottolvm.html

I'm stumped when it gets to the part about using an initrd. I'm not sure how that would be applied to a linode.


Top
   
 Post subject:
PostPosted: Fri Aug 01, 2003 6:07 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
golliher wrote:
I played around with LVM in my linode today and had a lot of success.

Cool! I'll take a look at the tutorial, too -- and see if an LVM supported Distro Wizard would be easy to implement.

golliher wrote:
I'm stumped when it gets to the part about using an initrd. I'm not sure how that would be applied to a linode.

You can ignore the initrd stuff, since the Linode kernels have everything compiled in already.

-Chris


Top
   
 Post subject:
PostPosted: Sun Aug 03, 2003 6:47 pm 
Offline
Junior Member

Joined: Thu Jul 24, 2003 3:00 pm
Posts: 22
caker wrote:
golliher wrote:
I think the ultimate solution is to provide a resize facility. There already exists tools to do this (resize2fs and ext2resize). I've actually performed it manually with good results. I want to test it more before putting it out there.

-Chris


I'm trying to decide which path to take. How long do you estimate will it be before you have a resize facility?

Thanks.


Top
   
 Post subject:
PostPosted: Tue Aug 05, 2003 4:05 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
rhunter007 wrote:
I'm trying to decide which path to take. How long do you estimate will it be before you have a resize facility?

Thanks.

I'd say one to two weeks before it would be available...

-Chris


Top
   
 Post subject:
PostPosted: Tue Aug 12, 2003 3:53 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Ok - feature released. You can now resize your disk images (bigger only).

http://www.linode.com/forums/viewtopic.php?t=246

Who's going to try it first? :twisted:

-Chris


Top
   
 Post subject:
PostPosted: Tue Aug 12, 2003 4:31 pm 
Offline
Senior Member

Joined: Sat Jun 28, 2003 12:02 am
Posts: 66
Website: http://kenny.aust.in
caker wrote:
Ok - feature released. You can now resize your disk...(bigger only).

About time, I'm getting email for this sorta thing everyday. So.. what we talking? Pills? Cream?

caker wrote:
Who's going to try it first?

"Linode must be shutdown before resize". Chris, what happened to you man? You use to be cool (I just had to try it).

Anyways... took a 512 to 576 (had to use my software raid space) and everything seems to have worked fine. However, just a thought: perhaps a "you should backup first" warning.. just incase the nasty did happen it could save you some trouble.

Kenny


Top
   
 Post subject: cool
PostPosted: Sun Aug 24, 2003 2:41 am 
Offline
Junior Member

Joined: Thu Jul 24, 2003 3:00 pm
Posts: 22
I did a resize from 1gig -> 3gigs and all seems to have worked.

Thanks 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 1 guest


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