#201 Issue closed: scsi_id invalid option "-n" line in rear.log

Labels: cleanup

gdha opened issue at 2013-02-19 08:50:

Found the following annoying message lines in the rear.log file. These are harmless, but we better capture this to avoid support calls.

2012-11-30 15:49:52 Including finalize/default/88_check_for_mount_by_id.sh
2012-11-30 15:49:52 
2012-11-30 15:49:52 WARNING ! You are mounting some devices by ID. Please be aware that the IDs
2012-11-30 15:49:52 are hardware dependant and that you might have to adjust your fstab to match
2012-11-30 15:49:52 the new IDs. Currently your system has the following disks with LUN IDs:
scsi_id: invalid option -- 'n'
scsi_id: invalid option -- 'n'
scsi_id: invalid option -- 'n'
2012-11-30 15:49:52   36001438005deb05d0000e00005c40000  /dev/sdk  307200MB
scsi_id: invalid option -- 'n'

We will investigate the options of scsi_id on RHEL, SLES and Ubuntu.

gdha commented at 2013-02-19 11:29:

SLES 11, RHEL 6 and Ubuntu 12 have the same syntax (package udev-147):

Usage: scsi_id OPTIONS <device>
  --device=                     device node for SG_IO commands
  --config=                     location of config file
  --page=0x80|0x83|pre-spc3-83  SCSI page (0x80, 0x83, pre-spc3-83)
  --sg-version=3|4              use SGv3 or SGv4
  --blacklisted                 threat device as blacklisted
  --whitelisted                 threat device as whitelisted
  --replace-whitespace          replace all whitespaces by underscores
  --verbose                     verbose logging
  --version                     print version
  --export                      print values as environment keys
  --help                        print this help text

The -n option still exist on SLES 10 (udev-085).


[Export of Github issue for rear/rear.]