| Author |
Message |
TungstenX
Joined: 20 Jun 2009
Posts: 23
|
| Posted: Mon Feb 21, 2011 2:25 am Post subject: Centos: Change partition size on the fly? |
|
|
Hi All,
I've done a quick search and could find an answer to my problem:
I'm running out of disk space, fast. It is the OS's partition running out. I would like to take 1Gb from another partition on that disk and adding it to my OS's partition. On Windows one gets Partition Magic that can do this "on the fly" - thus no re-formating ect.
Is there any command line program that I can use on my centos installation on linode?
Best regards,
TX |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1400
Location: Earth
|
| Posted: Mon Feb 21, 2011 6:42 am Post subject: |
|
|
| The safest way to do this is to shutdown your linode, then edit the disks via the linode manager. You won't have to reformat. |
|
| Back to top |
|
TungstenX
Joined: 20 Jun 2009
Posts: 23
|
| Posted: Mon Feb 21, 2011 8:20 am Post subject: |
|
|
| I didn't know it was safe to do it through the Dashboard. So it will only change the size of the partitions and I will not lose any data? |
|
| Back to top |
|
pclissold
Joined: 24 Oct 2003
Posts: 877
Location: Netherlands
|
| Posted: Mon Feb 21, 2011 8:43 am Post subject: |
|
|
TungstenX wrote: So it will only change the size of the partitions and I will not lose any data?
True as long as you have an ext2/3 filesystem on the disk image. If you try to shrink the image too much (smaller than the underlying filesystem), the resize will fail gracefully.
If you created raw disk images and used OS tools inside your Linode to create something non-standard, control panel resizing won't work as expected and may well eat your filesystem/partition(s).
Make a backup. |
|
| Back to top |
|
hoopycat
Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York
|
| Posted: Mon Feb 21, 2011 9:11 am Post subject: |
|
|
pclissold wrote: If you created raw disk images and used OS tools inside your Linode to create something non-standard, control panel resizing won't work as expected and may well eat your filesystem/partition(s).
Even in that case, the mandatory pre-resize fsck will immediately bomb out with apocalyptic errors when it can't find anything resembling an ext3 filesystem and the resize will fail gracefully. Probably. Most of the time.
Quote: Make a backup.
Always. |
|
| Back to top |
|
TungstenX
Joined: 20 Jun 2009
Posts: 23
|
| Posted: Tue Feb 22, 2011 9:28 am Post subject: |
|
|
Whoot whoot! It worked. The back-uping took the whole day :( but the changing of the partition sizes took less than 5 min.
Thank you to all that helped me! |
|
| Back to top |
|
| |