hi Giuseppe
On 03/09/09 09:56, Giuseppe Iuculano wrote:
Could you try with /dev/sdX instead of /dev/disk/by-id please?
that works.
I would like to be able to continue to specify by disks by their names in
/dev/disk/by-id. This avoids problems when I move the disks.
Why does smartd (run as root!) refuse to use a configuration file that is owned
by another user mode 600?
thanks for your help
Stuart
: root; cat /tmp/smartd.conf
/dev/sda -n standby -a -S on -m root
/dev/sdb -n standby -a -S on -s (L/../../2/05|S/../.././05) -m root
: root; sed -e 's/#.*//' -e '/^ *$/d' /etc/smartd.conf
/dev/disk/by-id/ata-ST3200822A_3LJ00N4L -n standby -a -S on -m root
/dev/disk/by-id/ata-WDC_WD6400AAKS-00A7B2_WD-WMASY2546840 -n standby -a -S on
-s (L/../../2/05|S/../.././05) -m root
: root; ls -ilL /dev/sda /dev/disk/by-id/ata-ST3200822A_3LJ00N4L
3291 brw-rw---- 1 root disk 8, 0 2009-09-03 20:48
/dev/disk/by-id/ata-ST3200822A_3LJ00N4L
3291 brw-rw---- 1 root disk 8, 0 2009-09-03 20:48 /dev/sda
: root; ls -ilL /dev/sdb
/dev/disk/by-id/ata-WDC_WD6400AAKS-00A7B2_WD-WMASY2546840
3235 brw-rw---- 1 root disk 8, 16 2009-09-03 20:48
/dev/disk/by-id/ata-WDC_WD6400AAKS-00A7B2_WD-WMASY2546840
3235 brw-rw---- 1 root disk 8, 16 2009-09-03 20:48 /dev/sdb
: root; apt-get install smartmontools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gsmartcontrol smart-notifier powersaved
The following packages will be upgraded:
smartmontools
1 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Need to get 399kB of archives.
After this operation, 152kB of additional disk space will be used.
Get:1 ftp://ftp.fr.debian.org unstable/main smartmontools 5.38+svn2879-1 [399kB]
Fetched 399kB in 1s (386kB/s)
(Reading database ... 274877 files and directories currently installed.)
Preparing to replace smartmontools 5.38-3 (using
.../smartmontools_5.38+svn2879-1_i386.deb) ...
Stopping S.M.A.R.T. daemon: smartd.
Unpacking replacement smartmontools ...
Processing triggers for man-db ...
Setting up smartmontools (5.38+svn2879-1) ...
Installing new version of config file /etc/init.d/smartmontools ...
Configuration file `/etc/smartd.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** smartd.conf (Y/I/N/O/D/Z) [default=N] ?
Starting S.M.A.R.T. daemon: smartd failed!
invoke-rc.d: initscript smartmontools, action "start" failed.
dpkg: error processing smartmontools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
smartmontools
E: Sub-process /usr/bin/dpkg returned an error code (1)
: root; /usr/sbin/smartd -d
smartd 5.39 2009-08-29 r2879 [i686-pc-linux-gnu] (local build)
Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net
Opened configuration file /etc/smartd.conf
Configuration file /etc/smartd.conf parsed.
Device: /dev/disk/by-id/ata-ST3200822A_3LJ00N4L, unable to autodetect device
type
Device: /dev/disk/by-id/ata-WDC_WD6400AAKS-00A7B2_WD-WMASY2546840, unable to
autodetect device type
Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting...
: root; /usr/sbin/smartd -d -c /tmp/smartd.conf
smartd 5.39 2009-08-29 r2879 [i686-pc-linux-gnu] (local build)
Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net
Permission denied: Unable to open configuration file /tmp/smartd.conf
: root; ls -l /tmp/smartd.conf
-rw------- 1 stuart stuart 105 2009-09-04 09:09 /tmp/smartd.conf
: root; chmod 644 /tmp/smartd.conf
: root; /usr/sbin/smartd -d -c /tmp/smartd.conf
smartd 5.39 2009-08-29 r2879 [i686-pc-linux-gnu] (local build)
Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net
Opened configuration file /tmp/smartd.conf
Configuration file /tmp/smartd.conf parsed.
Device: /dev/sda, type changed from 'scsi' to 'sat'
Device: /dev/sda [SAT], opened
Device: /dev/sda [SAT], found in smartd database.
Device: /dev/sda [SAT], enabled SMART Attribute Autosave.
Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
Device: /dev/sdb, type changed from 'scsi' to 'sat'
Device: /dev/sdb [SAT], opened
Device: /dev/sdb [SAT], found in smartd database.
Device: /dev/sdb [SAT], enabled SMART Attribute Autosave.
Device: /dev/sdb [SAT], is SMART capable. Adding to "monitor" list.
Monitoring 2 ATA and 0 SCSI devices
Device: /dev/sda [SAT], opened ATA device
Device: /dev/sdb [SAT], opened ATA device
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org