#280 Issue closed: Check only disk size is a little too optimistic ?

Labels: enhancement, needs sponsorship, won't fix / can't fix / obsolete

Florent38 opened issue at 2013-07-15 14:27:

When restoring, rear check if original sdX exists and verify its size, if it's equal then rear launch the restore. In many server the disk size is identical and we have to check more than only the disk size, for example :

  • the model cat /sys/block/sdX/device/model
  • the vendor cat /sys/block/sdX/device/vendor
  • local or distant disk lsscsi
  • the kernel location of disk (if it's an internal disk) lsscsi
  • the serial number if exist smartctl

What do you think about this ?

jhoekx commented at 2013-07-15 14:42:

I could care about the difference between a local or SAN disk I guess in the unlikely case that the size of the SAN disks is exactly equal to the system disks. The other things I don't really want to worry about in a DR situation.

In what kind of situation would it be useful to force the advanced restore mode when any of those things changes?

Florent38 commented at 2013-07-16 07:50:

When fiber cards is used and when booting on the rescue system, sda may switch with another disk (sdb for example). If the size is identical, Rear erase the wrong disk.

Florent38 commented at 2013-08-02 11:44:

Our (Arakmar and me) internship ends up in 2 weeks, so what about this problem ?

gdha commented at 2014-01-03 12:47:

We will most likely to change our SAN related code (for the moment). Unless heavily sponsored

[Export of Github issue for rear/rear.]