Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDD over USB does not go in idle-mode #212

Closed
BigMcRat opened this issue Feb 11, 2024 · 1 comment
Closed

HDD over USB does not go in idle-mode #212

BigMcRat opened this issue Feb 11, 2024 · 1 comment
Labels

Comments

@BigMcRat
Copy link

Addon

SambaNAS

Description

can we have option -c for hd-idle? Because my HDD does not support scsi mode, i need to change it to ata mode than it works perfectly. Or how we can change this "run" script in "/run/s6/db/servicedirs/hd-idle/":


#!/usr/bin/with-contenv bashio

shellcheck shell=bash

==============================================================================

Start hd-idle service

==============================================================================

if bashio::config.has_value 'hdd_idle_seconds'; then
bashio::log.info "Enabling HDD IDLE after $(bashio::config 'hdd_idle_seconds')sec"
exec hd-idle -i "$(bashio::config 'hdd_idle_seconds')"
else
exec sleep infinity
fi


I change it with option -c ata, but after restart the addon, this script is still the same,

Reproduction steps

1. Go to ssh in hassio
2. exec command "docker exec -it addon_1a32f091_sambanas /bin/bash"
3. exec command "hd-idle -i 0 -c ata -a sdb -i 10 -a sdc -i 10 -c ata"
4. this works perfectly

root@1a32f091-sambanas:/$ hd-idle -i 0 -c ata -a sdb -i 10 -a sdc -i 10 -c ata
symlinkPolicy=0, defaultIdle=0, defaultCommand=ata, defaultPowerCondition=0, debug=false, logFile=, devices={name=sdb, givenName=sdb, idle=10, commandType=ata, powerCondition=0}{name=sdc, givenName=sdc, idle=10, commandType=ata, powerCondition=0}
sdc spindown
sdb spindown
sdc spinup
sdc spindown
sdb spindown
sdc spindown

Addon Logs

BackupNAS
---------------------------------------------------
[20:03:31] INFO: Checking Mounting disks for reserved names:

	BluRayNAS
	BackupNAS
---------------------------------------------------
---------------------------------------------------
[20:03:31] INFO: Mounting disks:

	BluRayNAS
	BackupNAS
---------------------------------------------------
[20:03:31] INFO: Mount BluRayNAS[ext4] Success!
[20:03:31] INFO: Mount BackupNAS[ext4] Success!
s6-rc: info: service init-automount successfully started
s6-rc: info: service init-smartd: starting
s6-rc: info: service init-samba: starting
s6-rc: info: service hd-idle: starting
s6-rc: info: service hd-idle successfully started
[20:03:32] INFO: Enabling HDD IDLE after 10sec
[20:03:32] INFO: SMART support disabled in config
s6-rc: info: service init-smartd successfully started
symlinkPolicy=0, defaultIdle=10, defaultCommand=scsi, defaultPowerCondition=0, debug=false, logFile=, devices=
[20:03:32] INFO: Hostname: homeassistant
[20:03:32] INFO: Interfaces: wlo2 eno1 
[20:03:32] INFO: Docker Interface: hassio 172.30.32.0/23
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
Added user nas.
---------------------------------------------------
[20:03:32] INFO: Exposed Disks Summary:
[CONFIG]                path = /homeassistant # TM:false#
[ADDONS]                path = /addons # TM:false#
[SSL]                   path = /ssl # TM:false#
[SHARE]                 path = /share # TM:false#
[BACKUP]                path = /backup # TM:false#
[MEDIA]                 path = /media # TM:false#
[ADDON_CONFIGS]         path = /addon_configs # TM:false#
[BLURAYNAS]             path = /mnt/BluRayNAS # TM:true#
[BACKUPNAS]             path = /mnt/BackupNAS # TM:true#
---------------------------------------------------
s6-rc: info: service init-samba successfully started
s6-rc: info: service init-mqtt: starting
s6-rc: info: service wsdd: starting
s6-rc: info: service smbd: starting
s6-rc: info: service nmbd: starting
s6-rc: info: service avahi: starting
s6-rc: info: service wsdd successfully started
s6-rc: info: service nmbd successfully started
s6-rc: info: service avahi successfully started
s6-rc: info: service smbd successfully started
s6-rc: info: service cifs-supervisor-mount: starting
[20:03:32] INFO: MQTT support not enabled in config
s6-rc: info: service init-mqtt successfully started
[20:03:32] INFO: Starting the AVAHI for homeassistant...
Waiting for daemon ...
s6-rc: info: service cifs-supervisor-mount successfully started
s6-rc: info: service mqtt-disk-handler: starting
s6-rc: info: service mqtt-disk-handler successfully started
s6-rc: info: service mqtt-handler: starting
[20:03:32] INFO: Starting the wsdd daemon for dec-com/homeassistant...
s6-rc: info: service mqtt-handler successfully started
s6-rc: info: service legacy-services: starting
[20:03:32] INFO: Interfaces: -i wlo2 -i eno1 
s6-rc: info: service legacy-services successfully started
2024-02-11 20:03:32,746:wsdd INFO(pid 375): using pre-defined UUID cb6a33a0-b841-531d-a34e-09ecec492eb1
2024-02-11 20:03:32,748:wsdd INFO(pid 375): joined multicast group 239.255.255.250 on 192.168.10.17%eno1
2024-02-11 20:03:32,751:wsdd INFO(pid 375): scheduling Hello message via eno1 to 239.255.255.250%eno1
2024-02-11 20:03:32,756:wsdd INFO(pid 375): joined multicast group [ff02::c] on fe80::f1ba:3aad:b91f:ecdb%eno1
2024-02-11 20:03:32,757:wsdd INFO(pid 375): scheduling Hello message via eno1 to ff02::c%eno1
2024-02-11 20:03:32,826:wsdd INFO(pid 375): 192.168.10.5 - - "POST /cb6a33a0-b841-531d-a34e-09ecec492eb1 HTTP/1.1" 200 -
2024-02-11 20:03:32,859:wsdd INFO(pid 375): 192.168.10.5:54385(eno1) - - "Resolve urn:uuid:6f0efa3a-e044-4f66-a984-0608e8aa75b7 UDP" - -
smbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
nmbd version 4.18.9 started.
Copyright Andrew Tridgell and the Samba Team 1992-2023
INFO: Profiling support unavailable in this build.
*****

Samba name server HOMEASSISTANT is now a local master browser for workgroup DEC-COM on subnet 192.168.10.17

*****
*****

Samba name server HOMEASSISTANT is now a local master browser for workgroup DEC-COM on subnet 172.30.32.1

Addon Config

workgroup: xxxx
username: nas
allow_hosts:
  - 10.0.0.0/8
  - 172.16.0.0/12
  - 192.168.0.0/16
  - 169.254.0.0/16
  - fe80::/10
  - fc00::/7
automount: false
moredisks:
  - BluRayNAS
  - BackupNAS
mountoptions:
  - nosuid
  - relatime
  - noexec
available_disks_log: false
medialibrary:
  enable: false
veto_files:
  - ._*
  - .DS_Store
  - Thumbs.db
  - icon?
  - .Trashes
compatibility_mode: false
recyle_bin_enabled: false
wsdd2: false
mqtt_nexgen_entities: false
autodiscovery: {}
other_users: []
acl: []
interfaces: []
password: xxxx
mqtt_host: 
mqtt_username: 
mqtt_password: 
mqtt_enable: false
mqtt_port: "1883"
hdd_idle_seconds: 10
enable_smart: false

Architecture

amd64

OS

HaOS

@BigMcRat BigMcRat added the bug Something isn't working label Feb 11, 2024
@dianlight dianlight added enhancement New feature or request good first issue Good for newcomers [ SambaNas ] and removed bug Something isn't working labels Feb 11, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants