Solved

Using DISKPART to shrink a data partition in Server 2008 R2

Posted on 2011-03-02
8
1,390 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
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…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

752 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