Changes between Version 6 and Version 7 of Ticket #696, comment 1


Ignore:
Timestamp:
Jun 7, 2013, 3:44:25 PM (11 years ago)
Author:
victor gattegno

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #696, comment 1

    v6 v7  
    1 If we have for example /dev/mapper/XXXXX-YYYYY then %s=XXXXX and grep /dev/mapper/%s- will work.
     1About: grep -E \"/dev/mapper/'''%s-'''
    22
    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).
     3If we have for example /dev/mapper/XXXXX-YYYYY then %s=XXXXX and "grep /dev/mapper/'''%s-'''" will work.
     4
     5But 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