Link to home
Start Free TrialLog in
Avatar of Mr.X
Mr.X

asked on

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

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 ??
ASKER CERTIFIED SOLUTION
Avatar of Alex
Alex
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mr.X
Mr.X

ASKER

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 ?
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
Avatar of Mr.X

ASKER

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.
?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The majority of IIS and SQL can be ported out with decent live backups, if your machine is even capable of that right now.
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.
Avatar of Mr.X

ASKER

hi,
i ran chkdsk c:
have attached a pic of it. could you please have a look
User generated image
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.
Avatar of Mr.X

ASKER

hi,
i tried disk2vhd
it failed as well. did not even start.
got a pic of it
User generated image
Try running chkdsk /f /r
It will need downtime as already mentioned above.
Avatar of Mr.X

ASKER

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? ?
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.
Avatar of Mr.X

ASKER

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 ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of Mr.X

ASKER

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
Avatar of Mr.X

ASKER

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 .
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?
Avatar of Mr.X

ASKER

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

going with 2012R2.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 :-)   )
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mr.X

ASKER

will go with sql 2012 express- guess express is the free
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of Mr.X

ASKER

currently got - express edition and version 10.51.2500 - guess its SQL server 2008R2
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mr.X

ASKER

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
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.
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
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