Koozali.org: home of the SME Server

USB disk polling in SME9?

Offline mauro

  • ****
  • 101
  • +0/-0
USB disk polling in SME9?
« on: January 18, 2016, 01:33:26 PM »
Ciao a tutti
ho appena migrato il nostro server a SME9 e ho un problema con un disco esterno USB.
Nel vecchio server SME8, il disco veniva ogni giorno messo in sleep e riattivato tramite sdparm (via crontab) per essere utilizzato per i backup.
Ora il disco sembra non andare piu' in standby; 'a orecchio' mi pare che ci vada ma che si riattivi immediatamente. C'e' qualche demone 'nuovo' in SME9 che fa il polling dei dischi o cose simili?
All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer.
-- IBM maintenance manual (1975)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: USB disk polling in SME9?
« Reply #1 on: January 18, 2016, 01:50:55 PM »
smart? :-)

in ogni caso, sconsiglio di usare disco esterno usb costantemente attaccato alla macchina.. in caso di problemi (sovraccarico elettrico, acqua, furto, danneggiamento ecc) il backup รจ inutilizzabile..

migrerei su soluzione via rete.

Offline mauro

  • ****
  • 101
  • +0/-0
Re: USB disk polling in SME9?
« Reply #2 on: January 18, 2016, 01:58:18 PM »
no, non e' smartd purtroppo...
All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer.
-- IBM maintenance manual (1975)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: USB disk polling in SME9?
« Reply #3 on: January 25, 2016, 09:57:57 AM »
hai poi scoperto?

Offline mauro

  • ****
  • 101
  • +0/-0
Re: USB disk polling in SME9?
« Reply #4 on: January 25, 2016, 11:10:01 AM »
Non ci ho lavorato molto, ma da quel poco che ho visto non ho concluso nulla.
Settando
Code: [Select]
echo 1 > /proc/sys/vm/block_dumpsi vede chiaramente un accesso in lettura da parte di BLKID subito dopo la messa in standby che risveglia l'hard disk.
Ho iniziato a sospettare di UDEV o HAL...
HAL in teoria non dovrebbe fare polling, salvo bachi:
Code: [Select]
#  hal-disable-polling --device /dev/sdc
The given drive don't use removable media so it's not polled anyway.
A tempo perso mi guardo le regole di udev (ne sono cambiate tante da SME8 a SME9) ma e' un campo minato, sia per la complessita' sia per le possibili conseguenze.
All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer.
-- IBM maintenance manual (1975)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: USB disk polling in SME9?
« Reply #5 on: January 25, 2016, 03:00:59 PM »
ok

se riesci a scoprire, facci sapere, grazie