Results 1 to 10 of 12
Is it possible? I have a server that's colocated so a live cd isn't really an option. Everything I can find on resizing the partitions has said to use a ...
- 05-01-2009 #1Just Joined!
- Join Date
- Apr 2005
- Posts
- 14
Resize partitions without the use of a live cd?
Is it possible? I have a server that's colocated so a live cd isn't really an option. Everything I can find on resizing the partitions has said to use a live cd. Any help would be appreciated.
My Current config looks like:
Filesystem Size Used Avail Use% Mounted on
/dev/md1 2.0G 314M 1.6G 17% /
/dev/md6 119G 188M 113G 1% /home
/dev/md4 2.0G 36M 1.9G 2% /tmp
/dev/md3 12G 258M 11G 3% /var
/dev/md2 7.8G 1.2G 6.2G 17% /usr
/dev/md0 494M 32M 437M 7% /boot
tmpfs 1013M 0 1013M 0% /dev/shm
- 05-01-2009 #2
- 05-01-2009 #3
- 05-01-2009 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Actually, you can resize some partitions without rebooting the system, though some you cannot, such as / and /usr, though I don't know about /boot. You should be able to resize /home, provided you have enough space elsewhere to back it up to. In any case, you ABSOLUTELY MUST backup everything on the system disc before you perform such an operation! Failure to do so usually results in a visit from our friend and confidant, Murphy and you quickly discover the correct meaning of the term SNAFU!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 05-01-2009 #5Just Joined!
- Join Date
- Apr 2005
- Posts
- 14
Well, I would like to shrink the /home directory as this server runs VPSes and as a result the /home shouldn't have anything in it really. I use HyperVM for my VPSes and it installs to / so once it's installed I'm 100% out of space on / and I'm not able to update anything. HyperVM recommends giving as much space to / as possible.
- 05-01-2009 #6Just Joined!
- Join Date
- Apr 2005
- Posts
- 14
also, this is a new install so I don't have anything in /home to loose. I could have the data center reload it but it costs to have them do so so I was hoping to not have to reload.
- 05-01-2009 #7
- 05-02-2009 #8Just Joined!
- Join Date
- Apr 2005
- Posts
- 14
That is correct, I'd like to shrink /home and either give the space to / or create another mount point, /vz. (preferably give the space to /) The vpses are all stored in / (actually /vz), the actual virtualization part of it is handled by OpenVZ and is managed by HyperVM.
- 05-02-2009 #9Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Well, if it were me, it's a LOT simpler to mv /vz to /home/vz and make a link from /home/vz to /vz. As a result, all the things that would go into /vz, are actually stored in /home/vz. In all respects, this is preferable to storing them in /. The root directory should actually be fairly small. If you need to store really large stuff in sub-directories of /, then it is preferable to actually put them somewhere else, for better backup and system recovery purposes, and make a link in / for applications that expect them there. I do that all the time, and it works very well. As a result, you will not have to modify your file system allocations at all. At least for now. IE:
# mv /vz /home
# ln -s /home/vz /
Voila, you are done!Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 05-02-2009 #10Just Joined!
- Join Date
- Apr 2005
- Posts
- 14


Reply With Quote
