We help IT Professionals succeed at work.

Running out of space on C drive

clopera
clopera asked
on
I have a windows 2003 server which is the DC,  partitionned as follow:

c: 12.59GB        1.07GB Free
E: 133.07GB      2.89GB Free (data)
F: 160GB          150.48GB Free

I have another windows 2003 for exchange 2003 partitioned as follow:

c: 20.97GB           3.94GB Free
E: 136.32GB         15.77GB Free (database)
F: 61.21GB           50.02GB Free

We need to find a solution for the C drive as it's  almost running out of space.

I wonder what is the best solution for having more space on the C. I was thinking about taking a image of the C and buy another drive and restore the image to that drive? or resizing the C and F together to get more space is that possible? if yes is that going to crash my system?
Please advice for a proper solution to this problem.
Comment
Watch Question

Two things.

1.  I would download and use this free program http://gparted.sourceforge.net/download.php
I have used this on several occasions to bring space back.  I have even used it on a DC.  But I would recommend shutting down all of your DC's during this process.

2.  I would think about P2V'ing the boxes into say ESX or ESXi (free.)  I did this as a backup incase I needed to rebuild during the process.

Commented:
The main question is what is taking up all the room on the C drive, find that out and then you can look at moving some off. You can do as you suggest, get a bigger disk array and then perform a DR of the system onto the new disk. Do you have a process for disaster recovery of a machine?
Alan HardistyCo-Owner
Top Expert 2011

Commented:
Please have a read of Leew's excellent article about managing the Server Boot drive - it is probably full of things you don't need and his article addresses how to clear it up:
http://www.lwcomputing.com/tips/static/bootdrivesize.asp 

Author

Commented:
Actually we are planning to increase the size of the C drive to at least 30GB and not just delete some files to get more space. What are the best solution for that? thanks
Alan HardistyCo-Owner
Top Expert 2011

Commented:
Please post a screen shot from Disk Manager to show the physical make-up of your disks.  Once we know what we are looking at, we can give specific advice.

Author

Commented:
I don't have access to that as it's a new client and we did an inventory of his servers and we are working on a solution for that size problem.

But what i know it's as follow:

305.65 Gigabytes Usable Hard Drive Capacity
154.43 Gigabytes Hard Drive Free Space

The physical drive is partitionned in 3 logical drives as i mentioned above
Alan HardistyCo-Owner
Top Expert 2011

Commented:
It is crucial to know how the disks are partitioned.  They may be created inside a virtual partition, which makes resizing impossible.
If you can gain access and screen dump the config, that would make an answer much more readily available.

Author

Commented:
unfortunatly this is not possible for now. We are preparing a solution for them and they are in different city than us. They will not give us access remotly also. I just need to prepare a solution for that problem and hand it to them. I know it sound obvious but this how they are.

Commented:
OK, We have run into a situation where there are a couple run-away log files in the windows folder... I don't remember where. Do a file search of just that sub-dir, files over a gig, then over 100MB.

Also, if your server has been up for over a year. get rid of all those rollback files. (unhide, and unhide protected too.) These are the ones with the $NtUninstallKB#######$ format...in blue, they are compressed.


Then, find CCleaner with a google search.  Install and have it do a scan. It will report anything that is a temp-type file that can be deleted without harm. (or check options that will purge more info/settings based info - form data and the such) Ccleaner is a nice little tool, can also clean up registry too.
Be careful you don't "throw the baby out with the bathwater" though when deleting..

30GB is a bit lean on space though... may want to go to 50 to 70 GB depending on how many apps/tasks is on the server.

_Cheers_
Alan HardistyCo-Owner
Top Expert 2011

Commented:
Don't run ccleaner on the server and let it loose on the registry - very bad move.  If you use it, just use it for clearing space.

Author

Commented:
schriste

This solution is for increasing a small percentage of the C drive but we want to increase the size of C to 50 or 100 doesn't matter, but not keeping it at 12GB so that's why i am asking if there is a way to increase to that size without reinstalling everything from scratch.
As default C drive will be host as system/boot partition, it's not possible to extend the drive space with the help of raid / spanned volume.Need to use 3rd party tool...refer the below link..
http://www.partition-tool.com/easeus-partition-manager/extend-system-partition.htm
http://www.hdd-tool.com/partition-magic/resize-windows-server-with-partition-magic-software.htm
Alan HardistyCo-Owner
Top Expert 2011

Commented:
You can extend the partition, but we need to know what is sitting after it - and how the disks are configured.
You may be able to resize the partition after C: to free up space and then extend the C: drive but it all depends on how the other partitions are created as to the options available.
You may have to delete all the partitions after C:, delete a virtual partition, re-create the deleted partitions and then put the data back.
No screen-shot - no definitive answer.  Anyone who tells you different is risking your system.

Author

Commented:
Venurajav
Thank you for those 2 links they were helpfull.

I downloaded the trial version to see how it works and i find acronis disk director a powerfull tool to resize logical volumes on 1 physical volume

but I am planning to replace the actual disk with a new one bigger HD but is that possibe to transfer all the data from the actual  C drive to the new one?  without reinstalling?
 Can i just take a image and restore on the new drive? if yes, what will happen to the existing drive with the C installed on it?

Thanks
Alan HardistyCo-Owner
Top Expert 2011

Commented:
You can use something like Symantec Backup Exec System Recovery Server or Acronis Backup & Recovery 10 Server for Windows to image the server and then replace the HDD, setup partitions of the size you require, then put the images back.
http://www.symantec.com/business/backup-exec-system-recovery-server-edition
http://www.acronis.co.uk/backup-recovery/server-windows/ 

Author

Commented:
alanhardisty

If i do that taking the image and then restoring to the new hard drive, is this going to affect the users somehow? Is it going to restore windows also and all the application ? even for exchange restoring all the mailboxes? sorry but i don't have much knowledge with disk drives.

Author

Commented:
alanhardisty,

When you say the next partition sitting after you mean the E partition as i mention above? can i just resize the c with the F ?  or it has to be the next one after?

Author

Commented:
I have sysmantec backup exec 12.5 for windows servers. Does it do image backup and restore image?
Alan HardistyCo-Owner
Top Expert 2011

Commented:
No - they are different products.
Backup Exec System Recovery Server images.  Backup Exec is a file copy backup program.
Screenshot on the way to demonstrate what can / can't be done to answer your last but one post.
Co-Owner
Top Expert 2011
Commented:
In the attached image, the D: drive is created in an Extended Partition. To increase the C: drive, you would have to image the D: partiion, delete the D: partition, delete the extended partition, increase the C: partition, create a new partition and then put the image back of the D: partition.
If your server does not have an Extended partition (the bit in green), then you could re-size the partition after C: by moving the start of the partition to the right, then increase the C: partition to use the freed up space.
* * * Whatever you do - before you start doing anything - make sure you have a FULL system backup of the entire server as playing with partitions can go wrong * * *

DiskConfig.jpg

Author

Commented:
thank you alanhardisty for the good explanation.

What i am thinking of doing is :

take an image of D and E and format them into 1 partition(unallocated space) then extend C partition with some space of the unalocated space. Then after extending the C, i will restore the image of the D to the rest of unallocated space. Do you think this will work? as it's 1 physical disk and 3 logical partitions.

Because as i understand you can resize with the next sitting partition which D in my case. And for me i want to resize the C with the E because the E is empty.iT WOULD'VE be good if that will work.

Let me know guys if this solution will work and what are the disadvantage of doing that.

I will use EASEUS partition manager but i don't know which software to use of taking the image and when restoring do a manual partition.

Thank everybody
Alan HardistyCo-Owner
Top Expert 2011

Commented:
It would still be good to see what you have got to play with, disk wise.
If you only have Data on D and E, then technically you should be fine, but any Programs on either volume could get messy.
For imaging - I have used Symantec BESRS many times and know it fairly well.  I have done what you are trying to do numerous times (mostly Dell's) and a few HP's.
You can image all the drives, make sure you can recover the partitions before you blow them away, then delete the partitions, set up new ones sized accordingly, then recover the partitions and reboot.  All should be well and you have new partition sizes.

Author

Commented:
I hope so but i am afraid as it's a DC and exchange so i don't want to mess with the partitions.  I wonder if you can tell me what to do 1st and what last so i will not mess around. Do you think taking an image of the disks then go to a test server and try to do the restore before doing it on the real server?  Also on the exchange server, the D have the database of exchange so i will have to find another to do that on the exchange. But for the DC i should be okay because it's only data on the D and E. If i partition the D where database is and then restore after will the exchange be okay?
Alan HardistyCo-Owner
Top Expert 2011

Commented:
I have done this on SBS before so that is also a DC and has Exchange.  The process works, but it all hinges around what configuration your disks are in.
Please get a screen dump of Disk Manager and then you can get accurate guidance as to what to do.

Author

Commented:
thank you alanhardisty,

I will tryto get this as soon as possible and send it to you

Appreciate it.
Alan HardistyCo-Owner
Top Expert 2011

Commented:
No problems - will be here when you have the info.
Alan

Author

Commented:
i asked the guy to send me a printscreen of his the disk management but still waiting for him.
 i did sent another email yesterday to remind him.
 if until friday no answer i will reward the point.