Solved

Using DISKPART to shrink a data partition in Server 2008 R2

Posted on 2011-03-02
8
1,388 Views
Last Modified: 2012-05-11
Hey all,

I need to shrink an E:\ partition on a file server (2008 R2) at one of our sites by about 60Gb. The partition exists in a RAID5 array made up of 3 physical disks, there is only the system partition and this data partition. I've already checked and the tool says there's far more than that reclaimable, and I know what commands to use to do it.

So I only have a couple of small questions, as it's not mentioned in anything I've read, and I've never used DISKPART to shrink a partition before:

1) Can this be done whilst the partition you're shrinking is in use? The site is 24/7, and arranging an outage would be a pain, so I just want to know whether I should be able to run the shrink without rendering the partition unusable for the time it takes to shrink. Otherwise I will have to arrange an outage window to ensure no one is using the partition when I do it.

2) Are there are obvious problems to watch out for, given that the data on this partition is critical? It's obviously backed up but as I'm sure you can understand having to completely restore it would still be considered a disaster, so I'm just looking for anyone to advise what I should be careful of, if anything (or any special considerations given the RAID5 config, or anything like that!).

Cheers,

Pete
0
Comment
Question by:PeteJThomas
  • 3
  • 3
  • 2
8 Comments
 
LVL 8

Expert Comment

by:afthab
ID: 35015710
0
 
LVL 8

Accepted Solution

by:
afthab earned 250 total points
ID: 35015730

1) Can this be done whilst the partition you're shrinking is in use :- Yes but if it contains important database, better take backup

Here more info
http://technet.microsoft.com/en-us/library/cc731894.aspx
0
 
LVL 19

Author Comment

by:PeteJThomas
ID: 35016401
Thanks, I have already read that article you posted - So as far as you know, I can shrink this partition whilst everyone is using it, and there is no obvious reason not to? I already have a backup, though I'd have to have to use it if there's an obvious reason for me not to do this and I go ahead...

So I hope you don't mind if I wait a bit and see if anyone else responds, can't hurt to have a second opinion and draw from others experiences as well. :)

Pete
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 8

Assisted Solution

by:afthab
afthab earned 250 total points
ID: 35023994
Hi Pete,
There is no gain without risk,Then what is the need of backup, if you need you can use it,  anyway
The shrinking time depends the size, If less number of users are accessing it, just ask a downtime , for your peace..:)

* I have done it without any problem 2008 server
* For my 2003 servers i am using a great software called Easeus partition manager, using this tool you can even change C drive space. I don know the compatibility with 2008 server.
http://www.easeus.com/

Of course we can wait for others to comment, I always looking for better solution because many tigers are around us and i am happy to accept a good one :)

FYI:
http://www.marcofolio.net/tips/tips_to_shrink_the_windows_directory_to_create_space.html

AtB

0
 
LVL 47

Assisted Solution

by:noxcho
noxcho earned 250 total points
ID: 35025005
Hm, you even don't need to go to DiskPart for this. Get to Windows Disk Management - right click on partition - shrink. And select new size for partition. Does this method work for you?
0
 
LVL 47

Assisted Solution

by:noxcho
noxcho earned 250 total points
ID: 35025022
Hi PeteJThomas,

as advanced member of EE you can get partitioning and backup tools for free from Paragon. Look this link: http://www.paragon-software.com/partners/ptac/index.html
Get a copy of Paragon Partition Manager 11 Server and do what you want with it on your drives.
0
 
LVL 19

Author Comment

by:PeteJThomas
ID: 35072300
Hey guys,

REALLY sorry I took so long to come back to you, works just been crazy!

@noxcho: As far as I know, the Disk Management GUI method you suggested actually uses DISKPART to perform the shrink anyway, I just tend to prefer command line methods - Nothing more than a personal preference... :)

@afthab: As it happens, I took that very stance, and just went ahead and did it, figuring that worst case scenario I did have a good backup. It worked great! The only knock on affect that I hadn't considered was that we replicate some of the folders on this partition using Microsoft Data Protection Manager, and I noticed the day after shrinking the partition that it had stopped replicating, saying that the replica was inconsistent - However simply reinitiating a replication with a consistency check rectified this and everything is back to normal! So thanks for your advice.

Back to noxcho: You can get free tools by posting a lot on EE??? How did I not know about this?! I'll definintely have a good look at that link you sent!

Many thanks for the responses guys, really appreciate your help!

Will split the points evenly as I found responses from both of you particularly helpful for different things. :)

Cheers!

Pete

0
 
LVL 19

Author Closing Comment

by:PeteJThomas
ID: 35072331
Just thanks for the responses!
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question