'md(4)' 명령은 배열 검사를 시작하거나 중지할 때 화면을 엽니다.

'md(4)' 명령은 배열 검사를 시작하거나 중지할 때 화면을 엽니다.

RAID 확인이나 일시 중지/재개 확인이 수행될 때마다 md(또는 그럴까요 ?) 내 장치의 화면이 켜집니다.mdcheck

관련 syslog항목은 다음과 같습니다. 화면은 6:15에 나타납니다.

Jul  4 06:11:25 machine systemd[1]: Finished Daily apt download activities.
Jul  4 06:15:20 machine systemd[1]: Starting MD array scrubbing - continuation...
Jul  4 06:15:20 machine root: mdcheck continue checking /dev/md2 from 17114041344
Jul  4 06:15:20 machine kernel: [639971.327078] md: data-check of RAID array md2
Jul  4 06:15:24 machine rtkit-daemon[1997]: Supervising 5 threads of 3 processes of 1 users.
Jul  4 06:15:24 machine rtkit-daemon[1997]: Successfully made thread 225575 of process 1996 owned by '1000' RT at priority 5.
Jul  4 06:15:24 machine rtkit-daemon[1997]: Supervising 6 threads of 3 processes of 1 users.
Jul  4 06:17:01 machine CRON[225614]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

RAID 검사는 시간이 오래 걸리므로 대략 20시간 정도 소요되므로 자동으로 며칠에 걸쳐 각각 몇 시간씩 분할됩니다. 이 시간 동안 시험이 시작/일시 중지/계속/종료되면 화면은 항상 켜져 있습니다.

챗봇이 나에게 제안한 유일한 합리적인 이유는 알림 팝업일 수 있다는 것이었지만 시스템 트레이의 상태 및 알림에서 알림 내역을 확인했을 때 비어 있었습니다.

나는 보통 실행하여 화면을 끈다.DISPLAY=:0.0 xset dpms force off

이런 일이 발생하지 않도록 하려면 어떻게 해야 합니까?


고쳐 쓰다:

추가 분석 결과

echo check | sudo tee /sys/block/md1/md/sync_action
echo idle  | sudo tee /sys/block/md1/md/sync_action

둘 다 디스플레이를 켭니다.

mdchecksystemd이는 실제로 이러한 플래그에 쓰기 때문에 발생 /sys/block/mdX/md/sync_action하며 문제가 발생합니다.

업데이트 2:

방금 새 RAID 어레이를 생성했고 명령을 실행할 때

sudo mdadm
   --create /dev/md3 
   --level=1 
   --raid-devices=2 
   /dev/by-id/wwn-0x500a0aaaaaaaaaaa-part1 
   /dev/by-id/wwn-0x500a0bbbbbbbbbbb-part1

대답하고 yesEnter Continue creating array?키를 누르면 화면이 켜집니다.

시스템 로그 항목은 다음과 같습니다.

Jul 15 22:44:05 machine systemd-udevd[17072]: md3: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md3' failed with exit code 1.
Jul 15 22:44:05 machine kernel: [17061.713250] md/raid1:md3: not clean -- starting background reconstruction
Jul 15 22:44:05 machine kernel: [17061.713253] md/raid1:md3: active with 2 out of 2 mirrors
Jul 15 22:44:05 machine udisksd[1921]: The function 'bd_md_examine' called, but not implemented!
Jul 15 22:44:05 machine udisksd[1921]: The function 'bd_md_examine' called, but not implemented!
Jul 15 22:44:05 machine kernel: [17061.717282] md3: detected capacity change from 0 to 7813574656
Jul 15 22:44:05 machine kernel: [17061.717426] md: resync of RAID array md3
Jul 15 22:44:10 machine rtkit-daemon[2680]: Supervising 5 threads of 3 processes of 1 users.
Jul 15 22:44:10 machine rtkit-daemon[2680]: Successfully made thread 17135 of process 2679 owned by '1000' RT at priority 5.
Jul 15 22:44:10 machine rtkit-daemon[2680]: Supervising 6 threads of 3 processes of 1 users.

업데이트 3:

새 배열을 데이터로 채우고 을 방출하면 echo check > /sys/block/md3/md/sync_action화면이 다시 열립니다.

시스템 로그 항목은 다음과 같습니다.

Jul 16 18:52:23 machine kernel: [89559.476770] md: data-check of RAID array md3
Jul 16 18:52:28 machine rtkit-daemon[2680]: Supervising 5 threads of 3 processes of 1 users.
Jul 16 18:52:28 machine rtkit-daemon[2680]: Successfully made thread 85585 of process 2679 owned by '1000' RT at priority 5.
Jul 16 18:52:28 machine rtkit-daemon[2680]: Supervising 6 threads of 3 processes of 1 users.

이것이 md원인이며, rtkit-daemon무언가를 하는 것과도 관련이 있을 수 있습니다.

ベストアンサー1

おすすめ記事