Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on LowEndTalk.com
If disk fails how long will it take for restoring from raid?
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

If disk fails how long will it take for restoring from raid?

lowfanlowfan Member

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?

Comments

  • LTnigerLTniger Member

    Depends. From 2h till forever.

    hostwp.net -- Wordpress Hosting for Developers.

  • FalzoFalzo Member

    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.

    @lowfan said: Will every thing be perfect?

    if you have to ask questions like ...

    @lowfan said: how to know if the raid is working fine

    the answer to the former most likely is: no.

    keep in mind that raid1 is no replacement for backups anyway.

    Thanked by 2lowfan TimboJones

    UltraVPS.eu KVM in US/UK/NL/DE: 15% off first 6 month | Netcup VPS/rootDS - 5€ off: 36nc15279180197 (ref)

  • tetechtetech Member

    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.

    # cat /proc/mdstat
    Personalities : [raid1]
    md128 : active raid1 sda1[1] sdc1[0]
          3906884608 blocks super 1.2 [2/2] [UU]
          [===============>.....]  check = 77.5% (3027932288/3906884608) finish=13744.7min speed=1065K/sec
          bitmap: 5/30 pages [20KB], 65536KB chunk
    
  • lowfanlowfan Member

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

    @lowfan said: Will every thing be perfect?

    if you have to ask questions like ...

    @lowfan said: how to know if the raid is working fine

    the answer to the former most likely is: no.

    keep in mind that raid1 is no replacement for backups anyway.

    Your avatar is so scary I do not dare to ask more questions :)

  • lowfanlowfan Member

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

    # cat /proc/mdstat
    Personalities : [raid1]
    md128 : active raid1 sda1[1] sdc1[0]
          3906884608 blocks super 1.2 [2/2] [UU]
          [===============>.....]  check = 77.5% (3027932288/3906884608) finish=13744.7min speed=1065K/sec
          bitmap: 5/30 pages [20KB], 65536KB chunk
    

    thanks If it fails hetzner will make the server to read from the healthy one ? Is there any settings I need to do?

  • jackbjackb Member, Provider
    edited August 5

    @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)

    Thanked by 1ViridWeb

    Afterburst - Awesome OpenVZ&KVM VPS in US+EU

  • tetechtetech Member
    edited August 5

    @lowfan said:

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

    # cat /proc/mdstat
    Personalities : [raid1]
    md128 : active raid1 sda1[1] sdc1[0]
          3906884608 blocks super 1.2 [2/2] [UU]
          [===============>.....]  check = 77.5% (3027932288/3906884608) finish=13744.7min speed=1065K/sec
          bitmap: 5/30 pages [20KB], 65536KB chunk
    

    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.

  • WebProjectWebProject Member, Provider

    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.

    VPS Price Match Guarantee on: All our range of DDOS protected XEN-HVM VPS Plans
    Are you looking for best price for self-managed VPS? See WebProVPS website for more details.
  • lowfanlowfan Member

    does a server management company do this for me? Or is it some thing I need to ask before I sign up?

  • ShazanShazan Provider

    Yes, a management company should be able to do this for you but always better to ask before.

    Noamweb - Managed hosting in Italy

  • lowfanlowfan Member

    @Shazan said:
    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 :)

Sign In or Register to comment.