We help IT Professionals succeed at work.

file system corrupted in physical server 2012- what are the options to fix ?

106 Views
Last Modified: 2020-10-11
in server 2012(physical server)which runs AD/dns/dhcp/iis/sql
 I started disk check in this and had to force stop it at 28% as it went more than 12 hours and need to get clients back online - . As a result, the file systems got corrupted.

in Server  cannot open any services like windows backup service/task scheduler/server manager., etc. – everything comes with an error “.net framework initialisation error”

And cannot write/modify files in “c”drive – comes with an error “file or directory is corrupted and unreadable”
 
Cmd lines like-sfc/scannow does not work as well.
got a backup of “c”drive .
 
what are the other options available for me to make the server back to running in normal ?
any ideas without taking down the current server offline  ?
can I use server2vhd- concert to virtual machine- and try something ??
Comment
Watch Question

A lack of information provides a lack of a decent solution.
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
I cannot run scan disk again, because I guess it will take more than 2 days and business runs all 7 days . so they cannot afford 2 days of downtime now.

what I thought - concert to virtual
run the virtual in another computer- do chkdsk - fix errors
and move the fixed virtual again back to the original physical server using hyperv.
will this work ?
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Commented:
That sounds filthy, I feel sorry for the server :'(

Your better option is to virtualize it off, run a scandisk to see if it'll even work, if it does, you're screwed, fix the box and scan it however long it may take. Clearly you have issues with your disks so putting it bluntly, it need to be done.

Also, if you virtualize the server off, you'll still need to take down the physical box so the data is at least the same when you move people over to it.

I didn't even know you could do a virtual to physical using hyper-v

Regards,

Alex

Author

Commented:
so what would be my best option
1- use p2vhd : concert to virtual
2- use different computer to run this virtual- do chkdsk fix errors
3- again move the good vhd file back to physical box and run it in hyper v manager.
?
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Commented:
The majority of IIS and SQL can be ported out with decent live backups, if your machine is even capable of that right now.
noxchoIT Product Manager
CERTIFIED EXPERT
Top Expert 2009

Commented:
Try first CHKDSK c: and see if it reports any error. If no error is reported then P2V is useless. The error fix there will not help you much.

Author

Commented:
hi,
i ran chkdsk c:
have attached a pic of it. could you please have a look
corrupt.PNG
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Commented:
You're looking at downtime, which is what we have already discussed. You have to run it fully and hopefully it'll recover your system.

You're screwed, that's the short version. You're looking at a number of days downtime to do this chkdisk and that's not even guaranteed to work.

Migrate to new boxes.

Author

Commented:
hi,
i tried disk2vhd
it failed as well. did not even start.
got a pic of it
error.PNG
Iamthecreator OMIT/EE Solution Guide
CERTIFIED EXPERT

Commented:
Try running chkdsk /f /r
It will need downtime as already mentioned above.

Author

Commented:
my last chance is - i got a last backup vhdx.file
so could you give me proper steps on what should i do ?

1- create virtual machine using the vhdx in a laptop running server 2012.
2- then rebuild the actual physical server as host  -- - -   does it mean, i need to reinstall the whole OS from scratch ?
3- then move the vm from laptop to actual physical server as vm

the vhdx file gonna contain only the "C" drive, which is the only drive . so no problem.
but after creating new vm, should i manually configure AD/DNS/DHCP all from scratch in new vm? ?
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Commented:
Are you evening listening? You have an unstable operating system!

Firstly, you restore the VHDX you're going to lose anything that's gone into that database already today when it went down. Consisdering the fact it's ALSO an active directory controller, you're looking at issues such as UPN rollback, Missing data, replication issues. The list continues.


For the last time, build 2 new boxes, make one a domain controller and migrate ALL services to it.

Next install SQL on your new box and any asssociated applications and then restore your database to it.

Realistically you could have been done by now had you not insisted on attempting to fix a server that you broke by cancelling a check disk midway which is a HARDWARE based check, not a software based check which means it can completely change the layout and configuration of the disk. Not only that you have seen clearly that you have corrupted sectors on the disk AND YET YOU'RE STILL TRYING TO FIX IT!!!!!!

That's your quickest option, that's your best option, that's your only option! The lesson you should have learnt? Don't stop a check disk mid way and don't leave critical services like this on a single box.

Author

Commented:
For the last time, build 2 new boxes, make one a domain controller and migrate ALL services to it.

- how am i going to migrate all services to new box  ? ? what are the ways to do ?
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Commented:
Also, I am sorry for blowing up a little bit, but essentially you could have already built the new DC by this point and frankly, this is genuinely your best option at this point, trying to fix this server in it's current condition is only a band aid on what is a broken leg. Your disks have obviously suffered during the disk scan or by you stopping it. As such, we need to migrate services off sooner rather than later so you don't lose the rest of it before sorting it out.

Author

Commented:
ya thanks for the ideas.
i just need to start doing this tomo morning straightaway.
right now am just offsite and cant access the site now.
i will start doing tomorrow. will let you know how it goes

Author

Commented:
hi alex,
if i make it as a project, is it something you can help me out tomorrow if i get stuck with this. ?
bcoz this is the first time am gonna something like this, transferring dc to new box and configuring all .
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Commented:
Sure, don't bother doing a project, just leave this thread open and I can reply on here :-)

I'll find some good guides for you as well so you can read up on it.

What OS are you going to? 2016?

Author

Commented:
thats great. thanks. but its 11pm for me. gonna start tomorrow around 10am. hopefully our time matches.

going with 2012R2.
Iamthecreator OMIT/EE Solution Guide
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Commented:
Yeah that's true.

Forgot about that :D

(It's mainly habit calling it DCpromo, but promote the server to a domain controller is essentially what I meant :-)   )
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
will go with sql 2012 express- guess express is the free
noxchoIT Product Manager
CERTIFIED EXPERT
Top Expert 2009
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Commented:
Yes express is free, but what version did they have on there previously, if you've got a full fat SQL box you need to install the same version.

Author

Commented:
currently got - express edition and version 10.51.2500 - guess its SQL server 2008R2
Scott SilvaNetwork Administrator
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
my sql got issues now- when i try to open sql server management studio- getting error "microsoft visual stuio isolated shell environment - unknown error "
anyother way to backup datase ? so i can restore in new sql
noxchoIT Product Manager
CERTIFIED EXPERT
Top Expert 2009

Commented:
Are you trying to backup it from a corrupt system? I think you have to run chkdsk further on this machine so that it can fix the attributes. Even if you backup it the chances that it will work well in new environment are minimal.
AlexA lack of information provides a lack of a decent solution.
CERTIFIED EXPERT

Commented:
Your only other option is to literally drag and drop the database from one machine to another and hope it mounts.

Restoring from backup is the preferable option right now
Seth SimmonsLead Systems Administrator
CERTIFIED EXPERT

Commented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- 'Alex' (https:#a42928069)
-- 'Alex' (https:#a42928087)
-- 'CompProbSolv' (https:#a42928095)
-- 'Alex' (https:#a42928190)
-- 'Iamthecreator OM' (https:#a42928224)
-- 'Alex' (https:#a42928234)
-- 'Scott Silva' (https:#a42928437)
-- 'noxcho' (https:#a42928238)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions