LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   AHHHHH...Partitioning? Live? HELP! (https://www.linuxquestions.org/questions/linux-newbie-8/ahhhhh-partitioning-live-help-876324/)

TheOnlyQ 04-21-2011 07:16 AM

AHHHHH...Partitioning? Live? HELP!
 
Well, My last thread regarded questions about space usage on /

I use the server as a shared hosting production server.

/home/ is the only play which is used really because of this.

However it seems that / is only 10GB.


I need major help because I don't know how to resize the / partition - if I can't resize my /home/ from 5TB to 4.5TB and put some extra gigs on / then I worry that my last resort will be to purchase a new identical server, correct the partitions on that, and then transfer everyone over - which will be too time consuming for my customers.

My customers get this error when logging into cPanel -
Sorry for the inconvenience!
The filesystem mounted at / on this server is running out of disk space. cPanel operations have been temporarily suspended to prevent something bad from happening. Please ask your system admin to remove any files not in use on that partition.

So, here are some stats for you guys to check out.

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md1 10157944 9728068 0 100% /
/dev/md3 5771642720 40296748 5440472092 1% /home
tmpfs 6132004 12 6131992 1% /dev/shm
/usr/tmpDSK 495844 74740 395504 16% /tmp

How can I down size md3 and upsize md1 while the server is running? :S

Also - I use OVH so I have the option of vKVM, rescue mode, and boot from iso of my choice, if that helps.

So please, help!

eager 04-21-2011 01:12 PM

Take a look at gparted. It will resize the partitions. Then run resize2fs (or the appropriate resize routine if the file system has a format other than ext) to adjust the file system size.

You can't repartition a disk while it is in use.

onebuck 04-21-2011 06:53 PM

Hi,

Welcome to LQ!

UBCD Ultimate Boot CD allows users to run floppy-based diagnostic tools from most CDROM drives on Intel-compatible machines, no operating system required. The CD includes many diagnostic utilities.

SystemRescueCd is a Linux system on a bootable CD-ROM for repairing your system and recovering your data after a crash. It aims to provide an easy way to carry out admin tasks on your computer, such as creating and editing the partitions of the hard disk. It contains a lot of system utilities (parted, partimage, fstools, ...) and basic tools (editors, midnight commander, network tools).' + 'Online-Manual

You should have one of the above LiveCD for maintenance, emergency or diagnostic work.

Look at Tools, Recovery, Diagnostic, Emergency section of SlackwareŽ-Links for other useful tools.

---------- Post added 04-21-11 at 18:54 ----------

By using the LiveCD you will not have to worry since single user therefore no conflicts.


All times are GMT -5. The time now is 11:08 AM.