mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
3.1 KiB

  1. diff -urN -x '*~' raidtools-1.00.3/mkraid.c raidtools-1.00.3-gcc-3.3.1/mkraid.c
  2. --- raidtools-1.00.3/mkraid.c 2003-01-15 09:58:25.000000000 +0100
  3. +++ raidtools-1.00.3-gcc-3.3.1/mkraid.c 2003-08-19 23:00:59.000000000 +0200
  4. @@ -171,32 +171,32 @@
  5. if (old_force_flag && (func == mkraid)) {
  6. fprintf(stderr,
  7. -"
  8. - WARNING!
  9. -
  10. - NOTE: if you are recovering a double-disk error or some other failure mode
  11. - that made your array unrunnable but data is still intact then it's strongly
  12. - recommended to use the lsraid utility and to read the lsraid HOWTO.
  13. -
  14. - If your RAID array holds useful and not yet backed up data then --force
  15. - and the hot-add/hot-remove functionality should be used with extreme care!
  16. - If your /etc/raidtab file is not in sync with the real array configuration,
  17. - then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use
  18. - -f if the array is in degraded mode.
  19. -
  20. - If your /etc/raidtab file matches the real layout of on-disk data then
  21. - recreating the array will not hurt your data, but be aware of the risks
  22. - of doing this anyway: freshly created RAID1 and RAID5 arrays do a full
  23. - resync of their mirror/parity blocks, which, if the raidtab is incorrect,
  24. - the resync will wipe out data irrecoverably. Also, if your array is in
  25. - degraded mode then the raidtab must match the degraded config exactly,
  26. - otherwise you'll get the same kind of data destruction during resync.
  27. - (see the failed-disk raidtab option.) You have been warned!
  28. -
  29. - [ If your array holds no data, or you have it all backed up, or if you
  30. - know precisely what you are doing and you still want to proceed then use
  31. - the --really-force (or -R) flag. ]
  32. -");
  33. +"\n"
  34. +" WARNING!\n"
  35. +"\n"
  36. +" NOTE: if you are recovering a double-disk error or some other failure mode\n"
  37. +" that made your array unrunnable but data is still intact then it's strongly\n"
  38. +" recommended to use the lsraid utility and to read the lsraid HOWTO.\n"
  39. +"\n"
  40. +" If your RAID array holds useful and not yet backed up data then --force\n"
  41. +" and the hot-add/hot-remove functionality should be used with extreme care!\n"
  42. +" If your /etc/raidtab file is not in sync with the real array configuration,\n"
  43. +" then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use\n"
  44. +" -f if the array is in degraded mode.\n"
  45. +"\n"
  46. +" If your /etc/raidtab file matches the real layout of on-disk data then\n"
  47. +" recreating the array will not hurt your data, but be aware of the risks\n"
  48. +" of doing this anyway: freshly created RAID1 and RAID5 arrays do a full\n"
  49. +" resync of their mirror/parity blocks, which, if the raidtab is incorrect,\n"
  50. +" the resync will wipe out data irrecoverably. Also, if your array is in\n"
  51. +" degraded mode then the raidtab must match the degraded config exactly,\n"
  52. +" otherwise you'll get the same kind of data destruction during resync.\n"
  53. +" (see the failed-disk raidtab option.) You have been warned!\n"
  54. +"\n"
  55. +" [ If your array holds no data, or you have it all backed up, or if you\n"
  56. +" know precisely what you are doing and you still want to proceed then use\n"
  57. +" the --really-force (or -R) flag. ]\n"
  58. +"\n");
  59. return EXIT_FAILURE;
  60. }