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

[Bug] 部分硬盘休眠bug #704

Closed
kxxensys opened this issue Nov 23, 2022 · 3 comments
Closed

[Bug] 部分硬盘休眠bug #704

kxxensys opened this issue Nov 23, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@kxxensys
Copy link

有两块硬盘 希捷的用hdparm可以正常休眠 东芝的休眠后一会(有时候是立即)又自行启动
测试没有加入存储空间也是这样

停止casaos-local-storage.service服务能正常休眠

@kxxensys kxxensys added the bug Something isn't working label Nov 23, 2022
@kxxensys
Copy link
Author

log

2022-11-23T09:25:04.111+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T09:25:04.159+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T09:30:58.010+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T09:41:08.010+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T09:41:09.092+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T09:41:09.093+0800 error failed to add cache {"error": "Item system_smart_/dev/sda already exists", "key": "system_smart_/dev/sda", "func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 94}
2022-11-23T09:41:47.975+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T09:41:48.023+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T09:41:58.839+0800 info trying to get disk info... {"path": "/dev/sda", "func": "service.(*diskService).GetDiskInfo", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 321}
2022-11-23T09:41:58.883+0800 info trying to mount... {"path": "/dev/sda1", "mountPoint": "/mnt/Toshiba", "func": "service.(*diskService).MountDisk", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 343}
2022-11-23T09:42:00.378+0800 info trying to get disk info... {"path": "/dev/sda1", "func": "service.(*diskService).GetDiskInfo", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 321}
2022-11-23T09:51:12.695+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T10:01:17.653+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T10:11:22.669+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T10:21:27.661+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T10:31:32.753+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T10:41:38.003+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T10:51:48.061+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T10:51:49.144+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T10:51:49.145+0800 error failed to add cache {"error": "Item system_smart_/dev/sda already exists", "key": "system_smart_/dev/sda", "func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 94}
2022-11-23T11:01:58.033+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:01:59.116+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:01:59.116+0800 error failed to add cache {"error": "Item system_smart_/dev/sda already exists", "key": "system_smart_/dev/sda", "func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 94}
2022-11-23T11:12:08.000+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:12:09.083+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:12:09.083+0800 error failed to add cache {"error": "Item system_smart_/dev/sda already exists", "key": "system_smart_/dev/sda", "func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 94}
2022-11-23T11:22:17.999+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:22:19.114+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:22:19.114+0800 error failed to add cache {"error": "Item system_smart_/dev/sda already exists", "key": "system_smart_/dev/sda", "func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 94}
2022-11-23T11:32:28.003+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:32:29.086+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:32:29.086+0800 error failed to add cache {"error": "Item system_smart_/dev/sda already exists", "key": "system_smart_/dev/sda", "func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 94}
2022-11-23T11:42:37.996+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:42:39.079+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:42:39.080+0800 error failed to add cache {"error": "Item system_smart_/dev/sda already exists", "key": "system_smart_/dev/sda", "func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 94}
2022-11-23T11:52:48.005+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 92}
2022-11-23T11:52:49.087+0800 error failed to exec shell - smartctl exec error {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-

@jerrykuku jerrykuku moved this to Need Triage (QA+PM) in CasaOS Issues Nov 24, 2022
@jerrykuku jerrykuku moved this from Need Triage (QA+PM) to Needs Information (User) in CasaOS Issues Nov 24, 2022
@LinkLeong
Copy link
Collaborator

What system are you?

@LinkLeong
Copy link
Collaborator

At present, the test disk cannot hibernate after mounting, but can hibernate without mounting. Currently casaos has been optimized to hibernate when it is not mounted. If you still have questions, you can provide your command or join the WeChat group to communicate.
目前测试挂载后磁盘无法休眠,没挂载的情况下可以休眠.目前casaos已做了优化,在未挂载的时候已可以休眠.如果你还有问题,可以提供你的命令或加微信群进行沟通

@LinkLeong LinkLeong moved this from Needs Information (User) to To be verified (QA) in CasaOS Issues Dec 7, 2022
@raller1028 raller1028 moved this from To be verified (QA) to Done in CasaOS Issues Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants