3 | | But it will not work if we get a wwid or an alias in /dev/mapper (example for multipath), because there is no '-' in /dev/mapper/thealiasdefined (see my comment3). |
| 3 | If we have for example /dev/mapper/XXXXX-YYYYY then %s=XXXXX and "grep /dev/mapper/'''%s-'''" will work. |
| 4 | |
| 5 | But it should be replaced by '''%s''' because '''%s-''' will not work if we get as name a wwid (or an user alias) in /dev/mapper (with multipath it can be defined in "multipaths" section of /etc/multipath.conf) ; because there could be no '-' in the alias, for example: |
| 6 | |
| 7 | /dev/mapper/36050468008b0423a0000400003ab0000 |
| 8 | |
| 9 | /dev/mapper/vgdbdisk01 |