Added Validation in c4 host diag to forbid usage of disk labels
Details
| Detail name | Value |
|---|---|
| Changelog Number | 27942 |
| Type | Improvement |
| Status | Open |
Background
Currently, the users have to specify the data disks via the CCC_HOST_DATADISK parameter. They may specify it as disk labels (/dev/nvme1n1 or /dev/sd*).
The problem with disk labels is that on Linux they are not guaranteed to be persistent across boots. Meaning a reboot can cause a different label being assigned to the same disk. This breaks COS storage because it expects the label to be consistent with what it was during the installation (it writes down the label in the first block of the disk and compares it with the actual label at runtime
Improvement
Add a check in c4 host diag that forbids the usage of disks of the form /dev/sd* and /dev/nvme*.
Changed behavior
A check is added to "c4 host diag" that forbids the usage of disks of the form /dev/sd* and /dev/nvme*.