09-08-2009, 11:40 AM #1Web Hosting Master
- Join Date
- May 2003
LINUX: Bad blocks on HDD, any way to fix and clone HDD into new one (no downtime)?
One of my server 500GB hdd's seem to be crashing,
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 5944 -
# 2 Extended offline Completed without error 00% 4696 -
# 3 Extended offline Completed without error 00% 3602 -
# 4 Extended offline Completed: read failure 90% 3596 7658887
# 5 Extended offline Completed without error 00% 3003 -
# 6 Extended offline Completed without error 00% 1003 -
For whatever reason it seems to still be an issue so I want to swap the HDD. Are there any tools that will allow me to "clone" my linux hdd, while NOT copying over the bad sectors?
I am looking at minimum downtime please. Off-line tools like Acronis would take at least 3 hours, if there was a software that I could run with the server still active it would be great. I have a spare hardware node available with the same specs.^_^
09-08-2009, 01:52 PM #2Aspiring Evangelist
- Join Date
- Sep 2007
As you mention you have already have same specs node ready, then transferred the related data via rsync and restart services, data should be in same directories.
About tool you can use dd,
dd if=/dev/sda1 of=firstpartion.iso [sda1 is the partition u want backup]
after that you can transfer the file on new server and mount it like.
mount firstpartion.iso -o ro,loop /mnt
and you need whatever files you can copy here to new server.
Down time in both cases is very rare, i am assuming your document files not going to update, so after all transfer of every thing, you can again take backup of mysql database from old server and restore to new server and change the ip address in your name server accordingly.Thanks,
O Canada, we stand on guard for thee
By gogoi in forum Web HostingReplies: 8Last Post: 11-18-2008, 11:24 AM
By treck33 in forum Dedicated ServerReplies: 45Last Post: 05-15-2007, 02:53 AM
By thomas.smith in forum Providers and Network Outages and UpdatesReplies: 6Last Post: 11-09-2004, 12:57 AM
By coloman in forum Dedicated ServerReplies: 0Last Post: 11-25-2001, 07:43 PM