目前 8 盘位机箱放了 6 块炒豆子盘,这 6 块盘没有划分成同一个存储池,这是背景。
群晖的根目录会挂载到/dev/md0
这个文件系统上, 而这个/dev/md0
文件系统是所有硬盘的第一个分区做了 raid1 所生成的逻辑设备。
那么现状是系统组件有日志输出或者其他文件活动就会导致所有硬盘跟着一起哐当哐当(所有硬盘等一起闪),我想做的事是做一些系统设置来环节群晖硬盘噪音。
目前做了把 /var/log 挂载到 tmpfs 上,但是没啥改善还是三秒一次哐当哐当。
各位巨佬能够指点下,作何做进一步改善的思路? Let's make it!
alex@nas4alexsu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 2.3G 1.7G 500M 78% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 244K 3.9G 1% /dev/shm
tmpfs 3.9G 20M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 3.9G 45M 3.9G 2% /tmp
/dev/mapper/cachedev_2 97G 23G 75G 24% /volume1
/dev/mapper/cachedev_1 56T 2.5T 54T 5% /volume3
/dev/mapper/cachedev_0 14T 1.4T 13T 10% /volume4
alex@nas4alexsu:~$ sudo fdisk -l
Password:
###省略其他硬盘和分区信息
Disk /dev/md0: 2.4 GiB, 2549940224 bytes, 4980352 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
###省略其他硬盘和分区信息
###开机挂载 tmpfs 到 /var/log 这部分代码放到任务计划里面 root 开机启动执行计划
if [ ! -d "/var/logbak" ]; then
mkdir /var/logbak
cp -a -f /var/log/. /var/logbak/
fi
cp -a -f /var/logbak/. /tmp/log/
mount -B /tmp/log /var/log
###/var/log 已挂载到 tmpfs ,但是噪音没啥改善
alex@nas4alexsu:/var/log$ pwd
/var/log
alex@nas4alexsu:/var/log$ df -h .
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.9G 45M 3.9G 2% /var/log
alex@nas4alexsu:/var/log$ ls -alt
total 19544
drwx------ 2 system log 380 Jan 17 16:23 synolog
-rw-rw---- 1 system log 61741 Jan 17 16:23 bash_history.log
-rw-r----- 1 root log 2121032 Jan 17 16:21 auth.log
-rw-rw---- 1 system log 4380 Jan 17 16:14 bash_err.log
-rw-rw---- 1 system log 568796 Jan 17 15:22 synopkg.log
-rw-rw---- 1 system log 278321 Jan 17 15:22 synosystemd.log
-rw-rw---- 1 system log 429446 Jan 17 15:22 synoscheduled.log
-rw-rw---- 1 system log 3670 Jan 17 15:22 systemd.log
-rw-rw---- 1 system log 314276 Jan 17 15:22 synoplugin.log
-rw-rw---- 1 system log 938891 Jan 17 15:22 synoscheduler.log
-rw-rw---- 1 system log 333397 Jan 17 15:22 synofeasibilitycheck.log
-rw-rw---- 1 system log 9865 Jan 17 15:20 rm.log
-rw-rw---- 1 system log 475262 Jan 17 15:20 syslog.log
-rw-rw---- 1 system log 203777 Jan 17 15:12 sysnotify.log
drwxr-x--- 2 system log 3680 Jan 17 14:58 systemd
drwxr-xr-x 2 root root 1240 Jan 17 14:58 packages
drwxr-xr-x 20 root root 1700 Jan 17 10:30 .
drwxr-xr-x 16 root root 4096 Jan 17 09:45 ..
-rw-rw---- 1 system log 354643 Jan 15 10:38 synoscgi.log
-rw-rw---- 1 system log 2288891 Jan 15 10:27 messages
-rw-rw---- 1 system log 1035794 Jan 15 01:18 postgresql.log
-rw------- 1 root root 659776 Jan 15 01:18 synocrond-execute.log
-rw-r--r-- 1 root root 560 Jan 15 00:01 smart_quick_log
drwxr-xr-x 2 root root 780 Jan 15 00:00 diskprediction
-rw-rw---- 1 system log 181815 Jan 14 19:30 router.log
-rw-rw---- 1 system log 165097 Jan 14 19:19 synorelayd.log
-rw-rw---- 1 system log 791315 Jan 14 19:18 kern.log
-rw-rw---- 1 system log 548574 Jan 14 13:59 synoindex.log
-rw-rw---- 1 system log 16400 Jan 14 13:48 synocrond.log
-rw-rw---- 1 system log 596439 Jan 14 11:56 synoinstall.log
-rw-rw---- 1 system log 146760 Jan 14 11:56 synoinstall-synoarchive.log
drwxr-x--- 2 http http 120 Jan 13 18:54 nginx
-rw-rw---- 1 system log 648446 Jan 13 00:18 scemd.log
-rw-rw---- 1 system log 141891 Jan 12 22:14 space_operation.log
-rw-rw-rw- 1 root root 1129 Jan 12 22:14 disk_perf_log.xml
-rw-r--r-- 1 root root 6493 Jan 12 21:50 disk_overview.xml
-rw-rw---- 1 system log 32111 Jan 12 21:45 sfdisk.log
-rw-r--r-- 1 root root 543388 Jan 12 21:44 syno-systemd-status.log
-rw-rw---- 1 system log 40811 Jan 12 21:44 synosnmpcd.log
-rw-rw---- 1 system log 89572 Jan 12 20:54 iscsi.log
-rw-rw---- 1 system log 118918 Jan 12 20:47 disk.log
-rw-rw---- 1 system log 41804 Jan 12 20:47 partition.log
drwxr-xr-x 2 root root 160 Jan 12 08:21 disk-latency
drwxr-xr-x 2 root root 720 Jan 12 08:18 smart_result
-rw-rw---- 1 system log 13298 Jan 11 09:46 apparmor.log
-rw-rw---- 1 system log 16472 Jan 11 00:10 datascrubbing.log
-rw-rw---- 1 system log 4191 Jan 10 15:29 downloadstation.log
-rw-rw---- 1 system log 235 Dec 21 05:24 synoservice.log
-rw-r--r-- 1 root root 46866 Dec 21 05:24 synoupdate.log
-rw-rw---- 1 system log 7136 Dec 21 05:23 scsi_plugin.log
-rw-rw---- 1 system log 1519 Dec 21 05:22 synoc2fs.log
-rw-rw---- 1 system log 4013 Dec 21 05:11 checker.log
-rw-rw---- 1 system log 8575 Nov 6 13:09 iscsi-webapi.log
-rw-rw---- 1 system log 1736 Nov 6 10:57 iscsi-flood.log
-rw-r--r-- 1 root root 4979720 Oct 25 18:57 synobootup.log
-rw-rw---- 1 system log 33928 Oct 25 18:53 boot-time-detail.log
drwxr-x--- 2 root root 200 Oct 25 18:52 selfcheck
-rw-rw---- 1 system log 2779 Oct 25 18:51 synopoweroff.log
-rw-rw-rw- 1 root root 3212 Oct 25 18:50 syno_sys_status.log
-rw-r--r-- 1 root root 11 Oct 17 23:25 .syno_udc_disk_failed_time_2
-rw-r--r-- 1 root root 25 Oct 17 23:25 .synodisk_data_send_udc_time
-rw-r--r-- 1 root root 11 Oct 17 23:22 .syno_udc_disk_failed_time
-rw-rw---- 1 system log 2348 Oct 16 15:00 synotifyd.log
-rw-rw---- 1 system log 55560 Oct 16 15:00 synocontentextractd.log
-rw-rw---- 1 system log 406006 Oct 16 12:08 synochat.log
-rw-r--r-- 1 Chat Chat 6060 Jul 25 18:16 synochat-pgbouncer.log
-rw-rw---- 1 system log 34873 Jul 25 18:16 synologydrive.log
-rw-r--r-- 1 office office 2102 Jul 25 18:16 synoffice-pgbouncer.log
drwxr-xr-x 2 root root 40 Jul 25 09:30 pstore
drwxr-x--- 2 system log 380 Jun 29 2022 synomibclient
-rw-r--r-- 1 root root 11 Jun 25 2022 lastimproper.log
-rw-rw---- 1 system log 1042 May 31 2022 synoffice.log
drwxr-xr-x 2 root root 100 May 18 2022 openvswitch
lrwxrwxrwx 1 system log 19 May 18 2022 office -> /volume1/@OfficeLog
drwxr-xr-x 3 root root 120 May 18 2022 samba
-rw-rw---- 1 system log 946 May 16 2022 mcelog.log
-rw-r--r-- 1 root root 14237 May 1 2022 DeviceBusyList2
-rw-r--r-- 1 root root 27858 May 1 2022 DeviceBusyList
drwxr-xr-x 2 root root 60 Apr 20 2022 webdav
drw-r--r-- 2 root root 60 Apr 20 2022 bios
-rw-r--r-- 1 root root 0 Apr 20 2022 rsync_signal.error
drwxr-xr-x 3 root root 60 Apr 20 2022 cache-advisor
drwx------ 2 root root 40 Sep 22 2021 sssd
drwxr-xr-x 2 root root 40 Sep 22 2021 healthtest
drwxr-sr-x 2 root log 40 Jul 28 2021 journal
1
arvinsilm 2023-01-17 16:59:07 +08:00 1
我的方案是扔在一个房间里垫上两块泡沫随它去了。。。
|
2
shakoon 2023-01-17 17:05:06 +08:00
好像是说群晖会把系统在每个盘上都有一个副本?
|
4
uprit 2023-01-17 17:10:02 +08:00 1
我的方案是:让它远离人经常活动的位置,比如扔到房间某个角落
|
6
id4alex OP 以前 CMR 的盘没这个困扰,后来容量升级带来了这样的困扰,没想到
|
7
867380699 2023-02-18 17:46:26 +08:00
上读缓存,显著减少炒豆子的频率
|