Hi there,
I need your help with a customer server ... This is the first time I see such a problem and i don't know how to solve this ...
It was a software RAID1 with two HDDs. One failed syncing and SMART told me ... its now better time to replace the faulty hdd ... I needed two days to get to the server and replaced
the HDD but now the new HDD can't get synced because the first HDD has a lots of failed sectors ... I tried really much but its not possible to sync while he gets throw failed sectors.
Now I have a clean HDD and a faulty HDD with much errors on a productive system. Whats the best way to get the files and system to the new HDD ?
My Idea: Create new partitions on the clean HDD ... sdb1 /boot sdb2 / and sdb3 swap and then copy all files but how? with dd I got errors due to failed sectors and with cp I don't see anything how far it is...
I think the best way would be with rsync to copy everything to the new hdd and after that stop every service, check with rsync for changed files, copy them, reboot to new hdd
Is this a good way or any better ideas?
This is how it looks actually
QuoteDisplay Moreroot@ ~ # df -h
Dateisystem Size Used Avail Use% Eingehängt auf
/dev/md2 2,7T 143G 2,5T 6% /
tmpfs 7,9G 12K 7,9G 1% /lib/init/rw
udev 7,9G 136K 7,9G 1% /dev
tmpfs 7,9G 0 7,9G 0% /dev/shm
/dev/md1 1016M 39M 927M 4% /boot
Im totally confused what I have to do, to get the right partition to the new HDD? I need three partitions ... /boot, /, and linux-swap
//EDIT2:
Problems are going to be ugly ... I can't access one reseller anymore:
QuoteDisplay MoreAn exception with the following message has been thrown in file /var/www/imscp/gui/library/shared-functions.php (Line: 2551):
SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query
Query was:
SELECT IFNULL(SUM(dtraff_web), 0) AS web, IFNULL(SUM(dtraff_ftp), 0) AS ftp, IFNULL(SUM(dtraff_mail), 0) AS smtp, IFNULL(SUM(dtraff_pop), 0) AS pop, IFNULL(SUM(dtraff_web), 0) + IFNULL(SUM(dtraff_ftp), 0) + IFNULL(SUM(dtraff_mail), 0) + IFNULL(SUM(dtraff_pop), 0) AS total FROM domain_traffic WHERE domain_id = ? AND dtraff_time >= ? AND dtraff_time < ?