crmsh icon indicating copy to clipboard operation
crmsh copied to clipboard

Interactive SBD process on looks mess

Open liangxin1300 opened this issue 4 months ago • 0 comments

SBD is already configured to use /dev/sda5 - overwrite (y/n)? y
Path to storage device (e.g. /dev/disk/by-id/...), or "none" for diskless sbd, use ";" as separator for multi path []/dev/sda6;/dev/sda7
SBD is already configured to use /dev/sda6 - overwrite (y/n)? n
WARNING: All data on /dev/sda7 will be destroyed!
Are you sure you wish to use this device (y/n)? y

There are two levels of overwriting for SBD:

  1. device name, the string value of SBD_DEVICE in sysconfig/sbd; if detected there is a value configured for SBD_DEVICE, ask the user whether to overwrite this value
  2. the device metadata; if detected there exists metadata for a specified device, ask the user whether to overwrite the metadata

The info message should distinguish these two concepts and the process should be improved

I will first improve this in #1491 and then see how to backport

liangxin1300 avatar Oct 17 '24 00:10 liangxin1300