I have a server with hetzner and I have made a raid1
My question is that how to know if the raid is working fine
and if some thing goes wrong how long will it take for hetzner to restore my server from the other disk? Will every thing be perfect?
if it's software raid, look into mdadm and how to set up notifications.
hetzner will not be responsible for restoring your data or raid. (at least not for free)
they will just replace the disk if you find it faulty, after that you have to change your raid config and let it resync.
usually hetzner is quite quick with replacing disks, maybe a few hours. after that it depends on you, reconfiguring the software raid will take a few minutes. the resync depends on the size of the disk/array obviously.
How is the RAID1 configured? If software then you can check status cat /proc/mdstat. If software and a disk fails, I assume Hetzner just replace it and you take care of adding the new one to the array using mdadm.
@Falzo said:
if it's software raid, look into mdadm and how to set up notifications.
hetzner will not be responsible for restoring your data or raid. (at least not for free)
they will just replace the disk if you find it faulty, after that you have to change your raid config and let it resync.
usually hetzner is quite quick with replacing disks, maybe a few hours. after that it depends on you, reconfiguring the software raid will take a few minutes. the resync depends on the size of the disk/array obviously.
@tetech said:
How is the RAID1 configured? If software then you can check status cat /proc/mdstat. If software and a disk fails, I assume Hetzner just replace it and you take care of adding the new one to the array using mdadm.
@lowfan said:
thanks If it fails hetzner will make the server to read from the healthy one ? Is there any settings I need to do?
If a drive fails completely or exceeds the maximum number of errors specified in the mdadm configuration (usually best to leave this as default); mdadm will automatically mark the drive as failed and drop it from the array.
If you have notifications configured you should receive a notification. At that point, you can check the drive using smartctl and if it needs replaced, you should mark it as failed in any other arrays it is used in before asking hetzner to replace it. After that, you'll need to set up your partitions and add the replacement to the array.
You will need to provide at minimum the drive serial number when requesting a drive gets replaced. Most providers will also want indications that the drive is failing (i.e. SMART data / failed tests / etc)
@tetech said:
How is the RAID1 configured? If software then you can check status cat /proc/mdstat. If software and a disk fails, I assume Hetzner just replace it and you take care of adding the new one to the array using mdadm.
thanks If it fails hetzner will make the server to read from the healthy one ? Is there any settings I need to do?
Yes, you would need to add the disk to the array.
@Falzo said: hetzner will not be responsible for restoring your data or raid. (at least not for free)
they will just replace the disk if you find it faulty, after that you have to change your raid config and let it resync.
It depends on the other HDD size and age. From personal experience: on my personal PC I had very old hdd, it took more than 4h to sync data to new HDD.
Comments
Depends. From 2h till forever.
if it's software raid, look into mdadm and how to set up notifications.
hetzner will not be responsible for restoring your data or raid. (at least not for free)
they will just replace the disk if you find it faulty, after that you have to change your raid config and let it resync.
usually hetzner is quite quick with replacing disks, maybe a few hours. after that it depends on you, reconfiguring the software raid will take a few minutes. the resync depends on the size of the disk/array obviously.
if you have to ask questions like ...
the answer to the former most likely is: no.
keep in mind that raid1 is no replacement for backups anyway.
How is the RAID1 configured? If software then you can check status
cat /proc/mdstat
. If software and a disk fails, I assume Hetzner just replace it and you take care of adding the new one to the array usingmdadm
.Your avatar is so scary I do not dare to ask more questions
thanks If it fails hetzner will make the server to read from the healthy one ? Is there any settings I need to do?
If a drive fails completely or exceeds the maximum number of errors specified in the mdadm configuration (usually best to leave this as default); mdadm will automatically mark the drive as failed and drop it from the array.
If you have notifications configured you should receive a notification. At that point, you can check the drive using smartctl and if it needs replaced, you should mark it as failed in any other arrays it is used in before asking hetzner to replace it. After that, you'll need to set up your partitions and add the replacement to the array.
You will need to provide at minimum the drive serial number when requesting a drive gets replaced. Most providers will also want indications that the drive is failing (i.e. SMART data / failed tests / etc)
Yes, you would need to add the disk to the array.
It depends on the other HDD size and age. From personal experience: on my personal PC I had very old hdd, it took more than 4h to sync data to new HDD.
does a server management company do this for me? Or is it some thing I need to ask before I sign up?
Yes, a management company should be able to do this for you but always better to ask before.
OK please recommend me some good server management company that is also affordable