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

版本 23.9.0 14盘位,每次重启后会丢失后3个盘位,然后需要进磁盘管理修复 #199

Closed
jiang123574 opened this issue Sep 5, 2023 · 138 comments

Comments

@jiang123574
Copy link

jiang123574 commented Sep 5, 2023

初步怀疑是由于引导过快,导致磁盘还没加载好就引导好了,导致磁盘在引导好之后才加载
甚至在进入系统后还能看到硬盘加载进来
使用环境为,前6硬盘是在主板上的,后8硬盘连在直通卡上

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

@lzr325
Copy link

lzr325 commented Sep 5, 2023

HddEnableDynamicPower=1改为HddEnableDynamicPower=0试下。DS920+也出现了这个问题,改为HddEnableDynamicPower=0后问题暂时未复现 @wjz304

@jiang123574
Copy link
Author

HddEnableDynamicPower=1改为HddEnableDynamicPower=0试下。DS920+也出现了这个问题,改为HddEnableDynamicPower=0以后问题暂时未复现@wjz304

谢谢,明天我试一下,被困扰很久

@jiang123574
Copy link
Author

HddEnableDynamicPower=1改为HddEnableDynamicPower=0试下。DS920+也出现了这个问题,改为HddEnableDynamicPower=0后问题暂时未复现 @wjz304

尝试在cmdline加上了这个参数 还是没用

@snailium
Copy link

snailium commented Sep 6, 2023

基本上确定是引入了“显示连接在SAS HBA上的硬盘序列号”这个功能导致的。所有连接到SAS HBA的硬盘都会受影响

@jiang123574
Copy link
Author

基本上确定是引入了“显示连接在SAS HBA上的硬盘序列号”这个功能导致的。所有连接到SAS HBA的硬盘都会受影响

但是更早的版本也可以显示序列号,然后并不会有这样的bug

@snailium
Copy link

snailium commented Sep 7, 2023

基本上确定是引入了“显示连接在SAS HBA上的硬盘序列号”这个功能导致的。所有连接到SAS HBA的硬盘都会受影响

但是更早的版本也可以显示序列号,然后并不会有这样的bug

早前版本只有在DS3622xs+这些原生支持SAS的机型上才能显示序列号,在像DS918+这种需要loader做SAS兼容的机型上无法显示序列号。本次Peter Suh的更新是在loader层面上的sas shim里面加上了传递序列号的功能

@jiang123574
Copy link
Author

基本上确定是引入了“显示连接在SAS HBA上的硬盘序列号”这个功能导致的。所有连接到SAS HBA的硬盘都会受影响

但是更早的版本也可以显示序列号,然后并不会有这样的bug

早前版本只有在DS3622xs+这些原生支持SAS的机型上才能显示序列号,在像DS918+这种需要loader做SAS兼容的机型上无法显示序列号。本次Peter Suh的更新是在loader层面上的sas shim里面加上了传递序列号的功能

原来是这样,不过我的本身引导的就是DS3622XS+

@aarpro
Copy link

aarpro commented Sep 9, 2023

HddEnableDynamicPower=1改为HddEnableDynamicPower=0试下。DS920+也出现了这个问题,改为HddEnableDynamicPower=0后问题暂时未复现 @wjz304

I can't find the setting HddEnableDynamicPower=
Where to look it to change?
I have a similar problem #206

@wjz304
Copy link
Contributor

wjz304 commented Sep 9, 2023

HddEnableDynamicPower

add it to ”cmdline“

@wjz304
Copy link
Contributor

wjz304 commented Sep 9, 2023

https://github.com/wjz304/arpl-addons/releases/tag/23.9.2
@jiang123574 优化了一下 *portcfg 和disks相关的参数获取方式,请测试。

@aarpro
Copy link

aarpro commented Sep 9, 2023

https://github.com/wjz304/arpl-addons/releases/tag/23.9.2 @jiang123574 优化了一下 *portcfg 和disks相关的参数获取方式,请测试。

addon 23.9.2
does not see the last disk at all
Accordingly, the system has passed into a critical state
2023-09-09_205624

@wjz304
Copy link
Contributor

wjz304 commented Sep 9, 2023

取以下 日志 (在 dsm系统下)

ls /dev/
lspci -d ::106
lspci -d ::107
ls -l /sys/class/scsi_host
cat /etc/synoinfo.conf | grep portcfg
cat /etc/synoinfo.conf | grep disks

@aarpro
Copy link

aarpro commented Sep 9, 2023

取以下 日志 (在 dsm系统下)

I'm not very strong in Linux :(
I do it on the command line, when is DSM load? Right ?

upd I have already returned to the previous version addons, last disc on pull has become faulty
Now I am restoring the resource pool

@wjz304
Copy link
Contributor

wjz304 commented Sep 9, 2023

Yes, after the dsm system boot, connect SSH and operate it

If you have returned to the old version, then give up temporarily

@aarpro
Copy link

aarpro commented Sep 9, 2023

Yes, after the dsm system boot, connect SSH and operate it

If you have returned to the old version, then give up temporarily

ok, but to return to the experimental version of additions 23.9.2 I need to wait for recovery
2023-09-09_214159

@snailium
Copy link

snailium commented Sep 9, 2023

HddEnableDynamicPower=1改为HddEnableDynamicPower=0试下。DS920+也出现了这个问题,改为HddEnableDynamicPower=0后问题暂时未复现 @wjz304

Tried adding HddEnableDynamicPower=0 to cmdline, no improvement.

Tried 23.9.1, no improvement.

DS3622XS+ on PVE, with LSI9207-8i (SAS2308)

@snailium
Copy link

snailium commented Sep 9, 2023

DS3622XS+ on PVE, with LSI9207-8i (SAS2308)

$ ls /dev/
block ptya7 ptyde ptyr5 ptyuc ptyy3 sdh2 tty30 ttyaf ttye6 ttyrd ttyv0 ttyy7
bnxt_lfc ptya8 ptydf ptyr6 ptyud ptyy4 sdh5 tty31 ttyb0 ttye7 ttyre ttyv1 ttyy8
bsg ptya9 ptye0 ptyr7 ptyue ptyy5 sdi tty32 ttyb1 ttye8 ttyrf ttyv2 ttyy9
btrfs-control ptyaa ptye1 ptyr8 ptyuf ptyy6 sdi1 tty33 ttyb2 ttye9 ttys0 ttyv3 ttyya
bus ptyab ptye2 ptyr9 ptyv0 ptyy7 sdi2 tty34 ttyb3 ttyea ttyS0 ttyv4 ttyyb
char ptyac ptye3 ptyra ptyv1 ptyy8 sdi5 tty35 ttyb4 ttyeb ttys1 ttyv5 ttyyc
console ptyad ptye4 ptyrb ptyv2 ptyy9 sdj tty36 ttyb5 ttyec ttyS1 ttyv6 ttyyd
core ptyae ptye5 ptyrc ptyv3 ptyya sdj1 tty37 ttyb6 ttyed ttys2 ttyv7 ttyye
cpu ptyaf ptye6 ptyrd ptyv4 ptyyb sdj2 tty38 ttyb7 ttyee ttyS2 ttyv8 ttyyf
cpu_dma_latency ptyb0 ptye7 ptyre ptyv5 ptyyc sdj5 tty39 ttyb8 ttyef ttys3 ttyv9 ttyz0
dm-0 ptyb1 ptye8 ptyrf ptyv6 ptyyd sdk tty4 ttyb9 ttyp0 ttyS3 ttyva ttyz1
dm-1 ptyb2 ptye9 ptys0 ptyv7 ptyye sdk1 tty40 ttyba ttyp1 ttys4 ttyvb ttyz2
dm-2 ptyb3 ptyea ptys1 ptyv8 ptyyf sdk2 tty41 ttybb ttyp2 ttys5 ttyvc ttyz3
dm-3 ptyb4 ptyeb ptys2 ptyv9 ptyz0 sdk5 tty42 ttybc ttyp3 ttys6 ttyvd ttyz4
dm-4 ptyb5 ptyec ptys3 ptyva ptyz1 sg0 tty43 ttybd ttyp4 ttys7 ttyve ttyz5
dm-5 ptyb6 ptyed ptys4 ptyvb ptyz2 sg1 tty44 ttybe ttyp5 ttys8 ttyvf ttyz6
fd ptyb7 ptyee ptys5 ptyvc ptyz3 sg2 tty45 ttybf ttyp6 ttys9 ttyw0 ttyz7
full ptyb8 ptyef ptys6 ptyvd ptyz4 sg3 tty46 ttyc0 ttyp7 ttysa ttyw1 ttyz8
fuse ptyb9 ptyp0 ptys7 ptyve ptyz5 sg4 tty47 ttyc1 ttyp8 ttysb ttyw2 ttyz9
i2c-0 ptyba ptyp1 ptys8 ptyvf ptyz6 sg5 tty48 ttyc2 ttyp9 ttysc ttyw3 ttyza
kmem ptybb ptyp2 ptys9 ptyw0 ptyz7 shm tty49 ttyc3 ttypa ttysd ttyw4 ttyzb
kmsg ptybc ptyp3 ptysa ptyw1 ptyz8 snapshot tty5 ttyc4 ttypb ttyse ttyw5 ttyzc
kvm ptybd ptyp4 ptysb ptyw2 ptyz9 stderr tty50 ttyc5 ttypc ttysf ttyw6 ttyzd
log ptybe ptyp5 ptysc ptyw3 ptyza stdin tty51 ttyc6 ttypd ttyt0 ttyw7 ttyze
loop0 ptybf ptyp6 ptysd ptyw4 ptyzb stdout tty52 ttyc7 ttype ttyt1 ttyw8 ttyzf
loop1 ptyc0 ptyp7 ptyse ptyw5 ptyzc synobios tty53 ttyc8 ttypf ttyt2 ttyw9 urandom
loop2 ptyc1 ptyp8 ptysf ptyw6 ptyzd synoboot tty54 ttyc9 ttyq0 ttyt3 ttywa vcs
loop3 ptyc2 ptyp9 ptyt0 ptyw7 ptyze synoboot1 tty55 ttyca ttyq1 ttyt4 ttywb vcs1
loop4 ptyc3 ptypa ptyt1 ptyw8 ptyzf synoboot2 tty56 ttycb ttyq2 ttyt5 ttywc vcs2
loop5 ptyc4 ptypb ptyt2 ptyw9 ram0 synoboot3 tty57 ttycc ttyq3 ttyt6 ttywd vcs3
loop6 ptyc5 ptypc ptyt3 ptywa ram1 tty tty58 ttycd ttyq4 ttyt7 ttywe vcs4
loop7 ptyc6 ptypd ptyt4 ptywb ram10 tty0 tty59 ttyce ttyq5 ttyt8 ttywf vcs5
loop-control ptyc7 ptype ptyt5 ptywc ram11 tty1 tty6 ttycf ttyq6 ttyt9 ttyx0 vcs6
mapper ptyc8 ptypf ptyt6 ptywd ram12 tty10 tty60 ttyd0 ttyq7 ttyta ttyx1 vcsa
md0 ptyc9 ptyq0 ptyt7 ptywe ram13 tty11 tty61 ttyd1 ttyq8 ttytb ttyx2 vcsa1
md1 ptyca ptyq1 ptyt8 ptywf ram14 tty12 tty62 ttyd2 ttyq9 ttytc ttyx3 vcsa2
md2 ptycb ptyq2 ptyt9 ptyx0 ram15 tty13 tty63 ttyd3 ttyqa ttytd ttyx4 vcsa3
md3 ptycc ptyq3 ptyta ptyx1 ram2 tty14 tty7 ttyd4 ttyqb ttyte ttyx5 vcsa4
mem ptycd ptyq4 ptytb ptyx2 ram3 tty15 tty8 ttyd5 ttyqc ttytf ttyx6 vcsa5
memory_bandwidth ptyce ptyq5 ptytc ptyx3 ram4 tty16 tty9 ttyd6 ttyqd ttyu0 ttyx7 vcsa6
mpt2ctl ptycf ptyq6 ptytd ptyx4 ram5 tty17 ttya0 ttyd7 ttyqe ttyu1 ttyx8 vg1
mpt3ctl ptyd0 ptyq7 ptyte ptyx5 ram6 tty18 ttya1 ttyd8 ttyqf ttyu2 ttyx9 vg2
network_latency ptyd1 ptyq8 ptytf ptyx6 ram7 tty19 ttya2 ttyd9 ttyr0 ttyu3 ttyxa vga_arbiter
network_throughput ptyd2 ptyq9 ptyu0 ptyx7 ram8 tty2 ttya3 ttyda ttyr1 ttyu4 ttyxb vhost-scsi
null ptyd3 ptyqa ptyu1 ptyx8 ram9 tty20 ttya4 ttydb ttyr2 ttyu5 ttyxc zero
port ptyd4 ptyqb ptyu2 ptyx9 random tty21 ttya5 ttydc ttyr3 ttyu6 ttyxd zram0
ptmx ptyd5 ptyqc ptyu3 ptyxa rtc tty22 ttya6 ttydd ttyr4 ttyu7 ttyxe
pts ptyd6 ptyqd ptyu4 ptyxb rtc0 tty23 ttya7 ttyde ttyr5 ttyu8 ttyxf
ptya0 ptyd7 ptyqe ptyu5 ptyxc sdg tty24 ttya8 ttydf ttyr6 ttyu9 ttyy0
ptya1 ptyd8 ptyqf ptyu6 ptyxd sdg1 tty25 ttya9 ttye0 ttyr7 ttyua ttyy1
ptya2 ptyd9 ptyr0 ptyu7 ptyxe sdg2 tty26 ttyaa ttye1 ttyr8 ttyub ttyy2
ptya3 ptyda ptyr1 ptyu8 ptyxf sdg3 tty27 ttyab ttye2 ttyr9 ttyuc ttyy3
ptya4 ptydb ptyr2 ptyu9 ptyy0 sdg5 tty28 ttyac ttye3 ttyra ttyud ttyy4
ptya5 ptydc ptyr3 ptyua ptyy1 sdh tty29 ttyad ttye4 ttyrb ttyue ttyy5
ptya6 ptydd ptyr4 ptyub ptyy2 sdh1 tty3 ttyae ttye5 ttyrc ttyuf ttyy6

$ lspci -d ::106
0000:00:1f.2 Class 0106: Device 8086:2922 (rev 02)
0001:09:00.0 Class 0106: Device 1b4b:9235 (rev 11)
0001:0c:00.0 Class 0106: Device 1b4b:9235 (rev 11)

$ lspci -d ::107
0000:01:00.0 Class 0107: Device 1000:0086 (rev 05)

$ ls -l /sys/class/scsi_host
total 0
lrwxrwxrwx 1 root root 0 Sep 9 00:12 host0 -> ../../devices/pci0000:00/0000:00:1f.2/ata1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Sep 9 00:12 host1 -> ../../devices/pci0000:00/0000:00:1f.2/ata2/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 Sep 9 00:12 host2 -> ../../devices/pci0000:00/0000:00:1f.2/ata3/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Sep 9 00:12 host3 -> ../../devices/pci0000:00/0000:00:1f.2/ata4/host3/scsi_host/host3
lrwxrwxrwx 1 root root 0 Sep 9 00:12 host4 -> ../../devices/pci0000:00/0000:00:1f.2/ata5/host4/scsi_host/host4
lrwxrwxrwx 1 root root 0 Sep 9 00:12 host5 -> ../../devices/pci0000:00/0000:00:1f.2/ata6/host5/scsi_host/host5
lrwxrwxrwx 1 root root 0 Sep 9 00:12 host6 -> ../../devices/pci0000:00/0000:00:1c.0/0000:01:00.0/host6/scsi_host/host6
lrwxrwxrwx 1 root root 0 Sep 9 00:12 host7 -> ../../devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/host7/scsi_host/host7

$ cat /etc/synoinfo.conf | grep portcfg
esataportcfg="0x00"
internalportcfg="0x3ffff"

$ cat /etc/synoinfo.conf | grep disks
maxdisks="18"

@snailium
Copy link

snailium commented Sep 9, 2023

DVA3221 on baremetal, LSI9200-4i4e (SAS2308)

Even SATA disks on SAS HBA have problem.

$ ls /dev/
block ptp0 ptydb ptyr8 ptyv5 ptyz2 sdk2 stderr tty56 ttyd1 ttyqe ttyu7 ttyy4
bnxt_lfc pts ptydc ptyr9 ptyv6 ptyz3 sdk3 stdin tty57 ttyd2 ttyqf ttyu8 ttyy5
bsg ptya0 ptydd ptyra ptyv7 ptyz4 sdl stdout tty58 ttyd3 ttyr0 ttyu9 ttyy6
btrfs-control ptya1 ptyde ptyrb ptyv8 ptyz5 sdl1 synobios tty59 ttyd4 ttyr1 ttyua ttyy7
bus ptya2 ptydf ptyrc ptyv9 ptyz6 sdl2 synoboot tty6 ttyd5 ttyr2 ttyub ttyy8
char ptya3 ptye0 ptyrd ptyva ptyz7 sdl3 synoboot1 tty60 ttyd6 ttyr3 ttyuc ttyy9
console ptya4 ptye1 ptyre ptyvb ptyz8 sdm synoboot2 tty61 ttyd7 ttyr4 ttyud ttyya
core ptya5 ptye2 ptyrf ptyvc ptyz9 sdm1 synoboot3 tty62 ttyd8 ttyr5 ttyue ttyyb
cpu ptya6 ptye3 ptys0 ptyvd ptyza sdm2 tty tty63 ttyd9 ttyr6 ttyuf ttyyc
cpu_dma_latency ptya7 ptye4 ptys1 ptyve ptyzb sdm3 tty0 tty7 ttyda ttyr7 ttyv0 ttyyd
dm-0 ptya8 ptye5 ptys2 ptyvf ptyzc sdn tty1 tty8 ttydb ttyr8 ttyv1 ttyye
dm-1 ptya9 ptye6 ptys3 ptyw0 ptyzd sdn1 tty10 tty9 ttydc ttyr9 ttyv2 ttyyf
dm-2 ptyaa ptye7 ptys4 ptyw1 ptyze sdn2 tty11 ttya0 ttydd ttyra ttyv3 ttyz0
dm-3 ptyab ptye8 ptys5 ptyw2 ptyzf sdn3 tty12 ttya1 ttyde ttyrb ttyv4 ttyz1
dm-4 ptyac ptye9 ptys6 ptyw3 ram0 sdo tty13 ttya2 ttydf ttyrc ttyv5 ttyz2
dm-5 ptyad ptyea ptys7 ptyw4 ram1 sdo1 tty14 ttya3 ttye0 ttyrd ttyv6 ttyz3
dm-6 ptyae ptyeb ptys8 ptyw5 ram10 sdo2 tty15 ttya4 ttye1 ttyre ttyv7 ttyz4
dm-7 ptyaf ptyec ptys9 ptyw6 ram11 sdo3 tty16 ttya5 ttye2 ttyrf ttyv8 ttyz5
dm-8 ptyb0 ptyed ptysa ptyw7 ram12 sdp tty17 ttya6 ttye3 ttys0 ttyv9 ttyz6
fd ptyb1 ptyee ptysb ptyw8 ram13 sdp1 tty18 ttya7 ttye4 ttyS0 ttyva ttyz7
full ptyb2 ptyef ptysc ptyw9 ram14 sdp2 tty19 ttya8 ttye5 ttys1 ttyvb ttyz8
fuse ptyb3 ptyp0 ptysd ptywa ram15 sdp3 tty2 ttya9 ttye6 ttyS1 ttyvc ttyz9
i2c-0 ptyb4 ptyp1 ptyse ptywb ram2 sdq tty20 ttyaa ttye7 ttys2 ttyvd ttyza
i2c-1 ptyb5 ptyp2 ptysf ptywc ram3 sdq1 tty21 ttyab ttye8 ttyS2 ttyve ttyzb
i2c-2 ptyb6 ptyp3 ptyt0 ptywd ram4 sdq2 tty22 ttyac ttye9 ttys3 ttyvf ttyzc
i2c-3 ptyb7 ptyp4 ptyt1 ptywe ram5 sdq3 tty23 ttyad ttyea ttyS3 ttyw0 ttyzd
isda ptyb8 ptyp5 ptyt2 ptywf ram6 sdr tty24 ttyae ttyeb ttys4 ttyw1 ttyze
kmem ptyb9 ptyp6 ptyt3 ptyx0 ram7 sdr1 tty25 ttyaf ttyec ttys5 ttyw2 ttyzf
kmsg ptyba ptyp7 ptyt4 ptyx1 ram8 sdr2 tty26 ttyb0 ttyed ttys6 ttyw3 urandom
kvm ptybb ptyp8 ptyt5 ptyx2 ram9 sdr3 tty27 ttyb1 ttyee ttys7 ttyw4 usb
log ptybc ptyp9 ptyt6 ptyx3 random sds tty28 ttyb2 ttyef ttys8 ttyw5 vcs
loop0 ptybd ptypa ptyt7 ptyx4 rtc sds1 tty29 ttyb3 ttyp0 ttys9 ttyw6 vcs1
loop1 ptybe ptypb ptyt8 ptyx5 rtc0 sds2 tty3 ttyb4 ttyp1 ttysa ttyw7 vcs2
loop2 ptybf ptypc ptyt9 ptyx6 sdb sds3 tty30 ttyb5 ttyp2 ttysb ttyw8 vcs3
loop3 ptyc0 ptypd ptyta ptyx7 sdd sdt tty31 ttyb6 ttyp3 ttysc ttyw9 vcs4
loop4 ptyc1 ptype ptytb ptyx8 sde sdt1 tty32 ttyb7 ttyp4 ttysd ttywa vcs5
loop5 ptyc2 ptypf ptytc ptyx9 sde1 sdt2 tty33 ttyb8 ttyp5 ttyse ttywb vcs6
loop6 ptyc3 ptyq0 ptytd ptyxa sde2 sdt3 tty34 ttyb9 ttyp6 ttysf ttywc vcsa
loop7 ptyc4 ptyq1 ptyte ptyxb sde3 sg0 tty35 ttyba ttyp7 ttyt0 ttywd vcsa1
loop-control ptyc5 ptyq2 ptytf ptyxc sdf sg1 tty36 ttybb ttyp8 ttyt1 ttywe vcsa2
mapper ptyc6 ptyq3 ptyu0 ptyxd sdf1 sg10 tty37 ttybc ttyp9 ttyt2 ttywf vcsa3
mcelog ptyc7 ptyq4 ptyu1 ptyxe sdf2 sg11 tty38 ttybd ttypa ttyt3 ttyx0 vcsa4
md0 ptyc8 ptyq5 ptyu2 ptyxf sdf3 sg12 tty39 ttybe ttypb ttyt4 ttyx1 vcsa5
md1 ptyc9 ptyq6 ptyu3 ptyy0 sdg sg13 tty4 ttybf ttypc ttyt5 ttyx2 vcsa6
md2 ptyca ptyq7 ptyu4 ptyy1 sdg1 sg14 tty40 ttyc0 ttypd ttyt6 ttyx3 vfio
md3 ptycb ptyq8 ptyu5 ptyy2 sdg2 sg15 tty41 ttyc1 ttype ttyt7 ttyx4 vg1
md5 ptycc ptyq9 ptyu6 ptyy3 sdg3 sg16 tty42 ttyc2 ttypf ttyt8 ttyx5 vg3
mem ptycd ptyqa ptyu7 ptyy4 sdh sg17 tty43 ttyc3 ttyq0 ttyt9 ttyx6 vg4
memory_bandwidth ptyce ptyqb ptyu8 ptyy5 sdh1 sg18 tty44 ttyc4 ttyq1 ttyta ttyx7 vga_arbiter
mpt2ctl ptycf ptyqc ptyu9 ptyy6 sdh2 sg19 tty45 ttyc5 ttyq2 ttytb ttyx8 vhost-net
mpt3ctl ptyd0 ptyqd ptyua ptyy7 sdh3 sg2 tty46 ttyc6 ttyq3 ttytc ttyx9 vhost-scsi
net ptyd1 ptyqe ptyub ptyy8 sdi sg20 tty47 ttyc7 ttyq4 ttytd ttyxa virtualization
network_latency ptyd2 ptyqf ptyuc ptyy9 sdi1 sg3 tty48 ttyc8 ttyq5 ttyte ttyxb zero
network_throughput ptyd3 ptyr0 ptyud ptyya sdi2 sg4 tty49 ttyc9 ttyq6 ttytf ttyxc zram0
null ptyd4 ptyr1 ptyue ptyyb sdi3 sg5 tty5 ttyca ttyq7 ttyu0 ttyxd zram1
nvidia0 ptyd5 ptyr2 ptyuf ptyyc sdj sg6 tty50 ttycb ttyq8 ttyu1 ttyxe zram2
nvidiactl ptyd6 ptyr3 ptyv0 ptyyd sdj1 sg7 tty51 ttycc ttyq9 ttyu2 ttyxf zram3
nvidia-uvm ptyd7 ptyr4 ptyv1 ptyye sdj2 sg8 tty52 ttycd ttyqa ttyu3 ttyy0 zram4
nvidia-uvm-tools ptyd8 ptyr5 ptyv2 ptyyf sdj3 sg9 tty53 ttyce ttyqb ttyu4 ttyy1 zram5
port ptyd9 ptyr6 ptyv3 ptyz0 sdk shm tty54 ttycf ttyqc ttyu5 ttyy2
ptmx ptyda ptyr7 ptyv4 ptyz1 sdk1 snapshot tty55 ttyd0 ttyqd ttyu6 ttyy3

$ lspci -d ::106
00:17.0 Class 0106: Device 8086:a352 (rev 10)

$ lspci -d ::107
02:00.0 Class 0107: Device 1000:0087 (rev 05)

$ ls -l /sys/class/scsi_host
total 0
lrwxrwxrwx 1 root root 0 Sep 9 06:45 host0 -> ../../devices/pci0000:00/0000:00:17.0/ata1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Sep 9 06:45 host1 -> ../../devices/pci0000:00/0000:00:17.0/ata2/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 Sep 9 06:45 host2 -> ../../devices/pci0000:00/0000:00:17.0/ata3/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Sep 9 06:45 host3 -> ../../devices/pci0000:00/0000:00:17.0/ata4/host3/scsi_host/host3
lrwxrwxrwx 1 root root 0 Sep 9 06:45 host4 -> ../../devices/pci0000:00/0000:00:01.1/0000:02:00.0/host4/scsi_host/host4
lrwxrwxrwx 1 root root 0 Sep 9 06:45 host5 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/host5/scsi_host/host5
lrwxrwxrwx 1 root root 0 Sep 9 06:45 host6 -> ../../devices/tcm_loop_0/tcm_loop_adapter_0/host6/scsi_host/host6

$ cat /etc/synoinfo.conf | grep portcfg
esataportcfg="0x00"
internalportcfg="0x3fffffffffff"
usbportcfg="0x3c00000000000"

$ cat /etc/synoinfo.conf | grep disks
maxdisks="26"

@aarpro
Copy link

aarpro commented Sep 9, 2023

取以下 日志 (在 dsm系统下)

ls /dev/
lspci -d ::106
lspci -d ::107
ls -l /sys/class/scsi_host
cat /etc/synoinfo.conf | grep portcfg
cat /etc/synoinfo.conf | grep disks
XXXXXX@DS918_2:/$ ls /dev/
block            md3                 ptybf  ptyea  ptyr5  ptyu0  ptywb  ptyz6   sdg2              tty25  tty7   ttyc8  ttyp3  ttyre  ttyu5  ttyx0  ttyzb
bsg              mem                 ptyc0  ptyeb  ptyr6  ptyu1  ptywc  ptyz7   sdg5              tty26  tty8   ttyc9  ttyp4  ttyrf  ttyu6  ttyx1  ttyzc
btrfs-control    memory_bandwidth    ptyc1  ptyec  ptyr7  ptyu2  ptywd  ptyz8   sdh               tty27  tty9   ttyca  ttyp5  ttys0  ttyu7  ttyx2  ttyzd
bus              mpt2ctl             ptyc2  ptyed  ptyr8  ptyu3  ptywe  ptyz9   sdh1              tty28  ttya0  ttycb  ttyp6  ttyS0  ttyu8  ttyx3  ttyze
char             mpt3ctl             ptyc3  ptyee  ptyr9  ptyu4  ptywf  ptyza   sdh2              tty29  ttya1  ttycc  ttyp7  ttys1  ttyu9  ttyx4  ttyzf
console          network_latency     ptyc4  ptyef  ptyra  ptyu5  ptyx0  ptyzb   sdh5              tty3   ttya2  ttycd  ttyp8  ttyS1  ttyua  ttyx5  urandom
core             network_throughput  ptyc5  ptyp0  ptyrb  ptyu6  ptyx1  ptyzc   sg0               tty30  ttya3  ttyce  ttyp9  ttys2  ttyub  ttyx6  vcs
cpu              null                ptyc6  ptyp1  ptyrc  ptyu7  ptyx2  ptyzd   sg1               tty31  ttya4  ttycf  ttypa  ttyS2  ttyuc  ttyx7  vcs1
cpu_dma_latency  port                ptyc7  ptyp2  ptyrd  ptyu8  ptyx3  ptyze   sg2               tty32  ttya5  ttyd0  ttypb  ttys3  ttyud  ttyx8  vcs2
dm-0             ptmx                ptyc8  ptyp3  ptyre  ptyu9  ptyx4  ptyzf   sg3               tty33  ttya6  ttyd1  ttypc  ttyS3  ttyue  ttyx9  vcs3
dm-1             ptp0                ptyc9  ptyp4  ptyrf  ptyua  ptyx5  ram0    sg4               tty34  ttya7  ttyd2  ttypd  ttys4  ttyuf  ttyxa  vcs4
dm-2             pts                 ptyca  ptyp5  ptys0  ptyub  ptyx6  ram1    sg5               tty35  ttya8  ttyd3  ttype  ttys5  ttyv0  ttyxb  vcs5
dm-3             ptya0               ptycb  ptyp6  ptys1  ptyuc  ptyx7  ram10   sg6               tty36  ttya9  ttyd4  ttypf  ttys6  ttyv1  ttyxc  vcs6
dm-4             ptya1               ptycc  ptyp7  ptys2  ptyud  ptyx8  ram11   shared_cache_vg1  tty37  ttyaa  ttyd5  ttyq0  ttys7  ttyv2  ttyxd  vcsa
dri              ptya2               ptycd  ptyp8  ptys3  ptyue  ptyx9  ram12   shm               tty38  ttyab  ttyd6  ttyq1  ttys8  ttyv3  ttyxe  vcsa1
fb0              ptya3               ptyce  ptyp9  ptys4  ptyuf  ptyxa  ram13   snapshot          tty39  ttyac  ttyd7  ttyq2  ttys9  ttyv4  ttyxf  vcsa2
fd               ptya4               ptycf  ptypa  ptys5  ptyv0  ptyxb  ram14   stderr            tty4   ttyad  ttyd8  ttyq3  ttysa  ttyv5  ttyy0  vcsa3
full             ptya5               ptyd0  ptypb  ptys6  ptyv1  ptyxc  ram15   stdin             tty40  ttyae  ttyd9  ttyq4  ttysb  ttyv6  ttyy1  vcsa4
fuse             ptya6               ptyd1  ptypc  ptys7  ptyv2  ptyxd  ram2    stdout            tty41  ttyaf  ttyda  ttyq5  ttysc  ttyv7  ttyy2  vcsa5
i2c-0            ptya7               ptyd2  ptypd  ptys8  ptyv3  ptyxe  ram3    synobios          tty42  ttyb0  ttydb  ttyq6  ttysd  ttyv8  ttyy3  vcsa6
i2c-1            ptya8               ptyd3  ptype  ptys9  ptyv4  ptyxf  ram4    synoboot          tty43  ttyb1  ttydc  ttyq7  ttyse  ttyv9  ttyy4  vg1
i2c-2            ptya9               ptyd4  ptypf  ptysa  ptyv5  ptyy0  ram5    synoboot1         tty44  ttyb2  ttydd  ttyq8  ttysf  ttyva  ttyy5  vga_arbiter
i2c-3            ptyaa               ptyd5  ptyq0  ptysb  ptyv6  ptyy1  ram6    synoboot2         tty45  ttyb3  ttyde  ttyq9  ttyt0  ttyvb  ttyy6  vhost-scsi
i2c-4            ptyab               ptyd6  ptyq1  ptysc  ptyv7  ptyy2  ram7    synoboot3         tty46  ttyb4  ttydf  ttyqa  ttyt1  ttyvc  ttyy7  zero
i2c-5            ptyac               ptyd7  ptyq2  ptysd  ptyv8  ptyy3  ram8    tty               tty47  ttyb5  ttye0  ttyqb  ttyt2  ttyvd  ttyy8  zram0
kmem             ptyad               ptyd8  ptyq3  ptyse  ptyv9  ptyy4  ram9    tty0              tty48  ttyb6  ttye1  ttyqc  ttyt3  ttyve  ttyy9  zram1
kmsg             ptyae               ptyd9  ptyq4  ptysf  ptyva  ptyy5  random  tty1              tty49  ttyb7  ttye2  ttyqd  ttyt4  ttyvf  ttyya  zram2
kvm              ptyaf               ptyda  ptyq5  ptyt0  ptyvb  ptyy6  rtc     tty10             tty5   ttyb8  ttye3  ttyqe  ttyt5  ttyw0  ttyyb  zram3
log              ptyb0               ptydb  ptyq6  ptyt1  ptyvc  ptyy7  rtc0    tty11             tty50  ttyb9  ttye4  ttyqf  ttyt6  ttyw1  ttyyc
loop0            ptyb1               ptydc  ptyq7  ptyt2  ptyvd  ptyy8  sdc     tty12             tty51  ttyba  ttye5  ttyr0  ttyt7  ttyw2  ttyyd
loop1            ptyb2               ptydd  ptyq8  ptyt3  ptyve  ptyy9  sdc1    tty13             tty52  ttybb  ttye6  ttyr1  ttyt8  ttyw3  ttyye
loop2            ptyb3               ptyde  ptyq9  ptyt4  ptyvf  ptyya  sdd     tty14             tty53  ttybc  ttye7  ttyr2  ttyt9  ttyw4  ttyyf
loop3            ptyb4               ptydf  ptyqa  ptyt5  ptyw0  ptyyb  sdd1    tty15             tty54  ttybd  ttye8  ttyr3  ttyta  ttyw5  ttyz0
loop4            ptyb5               ptye0  ptyqb  ptyt6  ptyw1  ptyyc  sde     tty16             tty55  ttybe  ttye9  ttyr4  ttytb  ttyw6  ttyz1
loop5            ptyb6               ptye1  ptyqc  ptyt7  ptyw2  ptyyd  sde1    tty17             tty56  ttybf  ttyea  ttyr5  ttytc  ttyw7  ttyz2
loop6            ptyb7               ptye2  ptyqd  ptyt8  ptyw3  ptyye  sde2    tty18             tty57  ttyc0  ttyeb  ttyr6  ttytd  ttyw8  ttyz3
loop7            ptyb8               ptye3  ptyqe  ptyt9  ptyw4  ptyyf  sde5    tty19             tty58  ttyc1  ttyec  ttyr7  ttyte  ttyw9  ttyz4
loop-control     ptyb9               ptye4  ptyqf  ptyta  ptyw5  ptyz0  sdf     tty2              tty59  ttyc2  ttyed  ttyr8  ttytf  ttywa  ttyz5
mapper           ptyba               ptye5  ptyr0  ptytb  ptyw6  ptyz1  sdf1    tty20             tty6   ttyc3  ttyee  ttyr9  ttyu0  ttywb  ttyz6
mcelog           ptybb               ptye6  ptyr1  ptytc  ptyw7  ptyz2  sdf2    tty21             tty60  ttyc4  ttyef  ttyra  ttyu1  ttywc  ttyz7
md0              ptybc               ptye7  ptyr2  ptytd  ptyw8  ptyz3  sdf5    tty22             tty61  ttyc5  ttyp0  ttyrb  ttyu2  ttywd  ttyz8
md1              ptybd               ptye8  ptyr3  ptyte  ptyw9  ptyz4  sdg     tty23             tty62  ttyc6  ttyp1  ttyrc  ttyu3  ttywe  ttyz9
md2              ptybe               ptye9  ptyr4  ptytf  ptywa  ptyz5  sdg1    tty24             tty63  ttyc7  ttyp2  ttyrd  ttyu4  ttywf  ttyza
XXXXXX@DS918_2:/$ lspci -d ::106
0000:00:17.0 Class 0106: Device 8086:a102 (rev 31)
0001:00:12.0 Class 0106: Device 8086:5ae3
0001:01:00.0 Class 0106: Device 1b4b:9215 (rev 11)
XXXXXX@DS918_2:/$ lspci -d ::107
XXXXXX@DS918_2:/$ ls -l /sys/class/scsi_host
total 0
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host0 -> ../../devices/pci0000:00/0000:00:17.0/ata1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host1 -> ../../devices/pci0000:00/0000:00:17.0/ata2/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host2 -> ../../devices/pci0000:00/0000:00:17.0/ata3/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host3 -> ../../devices/pci0000:00/0000:00:17.0/ata4/host3/scsi_host/host3
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host4 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/host4/scsi_host/host4
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host5 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/host5/scsi_host/host5
XXXXXX@DS918_2:/$ cat /etc/synoinfo.conf | grep portcfg
esataportcfg="0x00"
internalportcfg="0x7f"
usbportcfg="0x00"
XXXXXX@DS918_2:/$ cat /etc/synoinfo.conf | grep disks
maxdisks="7"
XXXXXX@DS918_2:/$ ^C
XXXXXX@DS918_2:/$
cpu_dma_latency  port                ptyc7  ptyp2  ptyrd  ptyu8  ptyx3  ptyze   sg2               tty32  ttya5  ttyd0  ttypb  ttys3  ttyud  ttyx8  vcs2
dm-0             ptmx                ptyc8  ptyp3  ptyre  ptyu9  ptyx4  ptyzf   sg3               tty33  ttya6  ttyd1  ttypc  ttyS3  ttyue  ttyx9  vcs3
dm-1             ptp0                ptyc9  ptyp4  ptyrf  ptyua  ptyx5  ram0    sg4               tty34  ttya7  ttyd2  ttypd  ttys4  ttyuf  ttyxa  vcs4
dm-2             pts                 ptyca  ptyp5  ptys0  ptyub  ptyx6  ram1    sg5               tty35  ttya8  ttyd3  ttype  ttys5  ttyv0  ttyxb  vcs5
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ ls /dev/
dri              ptya2               ptycd  ptyp8  ptys3  ptyue  ptyx9  ram12   shm               tty38  ttyab  ttyd6  ttyq1  ttys8  ttyv3  ttyxe  vcsa1
fb0              ptya3               ptyce  ptyp9  ptys4  ptyuf  ptyxa  ram13   snapshot          tty39  ttyac  ttyd7  ttyq2  ttys9  ttyv4  ttyxf  vcsa2
fd               ptya4               ptycf  ptypa  ptys5  ptyv0  ptyxb  ram14   stderr            tty4   ttyad  ttyd8  ttyq3  ttysa  ttyv5  ttyy0  vcsa3
full             ptya5               ptyd0  ptypb  ptys6  ptyv1  ptyxc  ram15   stdin             tty40  ttyae  ttyd9  ttyq4  ttysb  ttyv6  ttyy1  vcsa4
fuse             ptya6               ptyd1  ptypc  ptys7  ptyv2  ptyxd  ram2    stdout            tty41  ttyaf  ttyda  ttyq5  ttysc  ttyv7  ttyy2  vcsa5
i2c-0            ptya7               ptyd2  ptypd  ptys8  ptyv3  ptyxe  ram3    synobios          tty42  ttyb0  ttydb  ttyq6  ttysd  ttyv8  ttyy3  vcsa6
i2c-1            ptya8               ptyd3  ptype  ptys9  ptyv4  ptyxf  ram4    synoboot          tty43  ttyb1  ttydc  ttyq7  ttyse  ttyv9  ttyy4  vg1
i2c-2            ptya9               ptyd4  ptypf  ptysa  ptyv5  ptyy0  ram5    synoboot1         tty44  ttyb2  ttydd  ttyq8  ttysf  ttyva  ttyy5  vga_arbiter
i2c-3            ptyaa               ptyd5  ptyq0  ptysb  ptyv6  ptyy1  ram6    synoboot2         tty45  ttyb3  ttyde  ttyq9  ttyt0  ttyvb  ttyy6  vhost-scsi
i2c-4            ptyab               ptyd6  ptyq1  ptysc  ptyv7  ptyy2  ram7    synoboot3         tty46  ttyb4  ttydf  ttyqa  ttyt1  ttyvc  ttyy7  zero
i2c-5            ptyac               ptyd7  ptyq2  ptysd  ptyv8  ptyy3  ram8    tty               tty47  ttyb5  ttye0  ttyqb  ttyt2  ttyvd  ttyy8  zram0
kmem             ptyad               ptyd8  ptyq3  ptyse  ptyv9  ptyy4  ram9    tty0              tty48  ttyb6  ttye1  ttyqc  ttyt3  ttyve -sh: XXXXXX@DS918_2:/$: No such file or directory
 ttyy9  zram1
kmsg             ptyae               ptyd9  ptyq4  ptysf  ptyva  ptyy5  random  tty1              tty49  ttyb7  ttyeXXXXXX@DS918_2:/$ block            md3     tyx0  ttyzb ptybf  ptyea  ptyr5  ptyu0  ptywb  ptyz6   sdg2              tty25  tty7   ttyc8  ttyp3  ttyre  ttyu5  tt
-sh: block: command not found
XXXXXX@DS918_2:/$ bsg              mem                 ptyc0  ptyeb  ptyr6  ptyu1  ptywc  ptyz7   sdg5              tty26  tty8   ttyc9  ttyp4  ttyrf  ttyu6  ttyx1  ttyzc
-sh: bsg: command not found
XXXXXX@DS918_2:/$ btrfs-control    memory_bandwidth    ptyc1  ptyec  ptyr7  ptyu2  ptywd  ptyz8   sdh               tty27  tty9   ttyca  ttyp5  ttys0  ttyu7  ttyx2  ttyzd
-sh: btrfs-control: command not found
XXXXXX@DS918_2:/$ bus              mpt2ctl             ptyc2  ptyed  ptyr8  ptyu3  ptywe  ptyz9   sdh1              tty28  ttya0  ttycb  ttyp6  ttyS0  ttyu8  ttyx3  ttyze
-sh: bus: command not found
XXXXXX@DS918_2:/$ char             mpt3ctl             ptyc3  ptyee  ptyr9  ptyu4  ptywf  ptyza   sdh2              tty29  ttya1  ttycc  ttyp7  ttys1  ttyu9  ttyx4  ttyzf
-sh: char: command not found
XXXXXX@DS918_2:/$ console          network_latency     ptyc4  ptyef  ptyra  ptyu5  ptyx0  ptyzb   sdh5              tty3   ttya2  ttycd  ttyp8  ttyS1  ttyua  ttyx5  urandom
-sh: console: command not found
XXXXXX@DS918_2:/$ core             network_throughput  ptyc5  ptyp0  ptyrb  ptyu6  ptyx1  ptyzc   sg0               tty30  ttya3  ttyce  ttyp9  ttys2  ttyub  ttyx6  vcs
-sh: core: command not found
XXXXXX@DS918_2:/$ cpu              null                ptyc6  ptyp1  ptyrc  ptyu7  ptyx2  ptyzd   sg1               tty31  ttya4  ttycf  ttypa  ttyS2  ttyuc  ttyx7  vcs1
-sh: cpu: command not found
XXXXXX@DS918_2:/$ cpu_dma_latency  port                ptyc7  ptyp2  ptyrd  ptyu8  ptyx3  ptyze   sg2               tty32  ttya5  ttyd0  ttypb  ttys3  ttyud  ttyx8  vcs2
-sh: cpu_dma_latency: command not found
XXXXXX@DS918_2:/$ dm-0             ptmx                ptyc8  ptyp3  ptyre  ptyu9  ptyx4  ptyzf   sg3               tty33  ttya6  ttyd1  ttypc  ttyS3  ttyue  ttyx9  vcs3
-sh: dm-0: command not found
XXXXXX@DS918_2:/$ dm-1             ptp0                ptyc9  ptyp4  ptyrf  ptyua  ptyx5  ram0    sg4               tty34  ttya7  ttyd2  ttypd  ttys4  ttyuf  ttyxa  vcs4
-sh: dm-1: command not found
XXXXXX@DS918_2:/$ dm-2             pts                 ptyca  ptyp5  ptys0  ptyub  ptyx6  ram1    sg5               tty35  ttya8  ttyd3  ttype  ttys5  ttyv0  ttyxb  vcs5
-sh: dm-2: command not found
XXXXXX@DS918_2:/$ dm-3             ptya0               ptycb  ptyp6  ptys1  ptyuc  ptyx7  ram10   sg6               tty36  ttya9  ttyd4  ttypf  ttys6  ttyv1  ttyxc  vcs6
-sh: dm-3: command not found
XXXXXX@DS918_2:/$ dm-4             ptya1               ptycc  ptyp7  ptys2  ptyud  ptyx8  ram11   shared_cache_vg1  tty37  ttyaa  ttyd5  ttyq0  ttys7  ttyv2  ttyxd  vcsa
-sh: dm-4: command not found
XXXXXX@DS918_2:/$ dri              ptya2               ptycd  ptyp8  ptys3  ptyue  ptyx9  ram12   shm               tty38  ttyab  ttyd6  ttyq1  ttys8  ttyv3  ttyxe  vcsa1
-sh: dri: command not found
XXXXXX@DS918_2:/$ fb0              ptya3               ptyce  ptyp9  ptys4  ptyuf  ptyxa  ram13   snapshot          tty39  ttyac  ttyd7  ttyq2  ttys9  ttyv4  ttyxf  vcsa2
-sh: fb0: command not found
XXXXXX@DS918_2:/$ fd               ptya4               ptycf  ptypa  ptys5  ptyv0  ptyxb  ram14   stderr            tty4   ttyad  ttyd8  ttyq3  ttysa  ttyv5  ttyy0  vcsa3
-sh: fd: command not found
XXXXXX@DS918_2:/$ full             ptya5               ptyd0  ptypb  ptys6  ptyv1  ptyxc  ram15   stdin             tty40  ttyae  ttyd9  ttyq4  ttysb  ttyv6  ttyy1  vcsa4
-sh: full: command not found
XXXXXX@DS918_2:/$ fuse             ptya6               ptyd1  ptypc  ptys7  ptyv2  ptyxd  ram2    stdout            tty41  ttyaf  ttyda  ttyq5  ttysc  ttyv7  ttyy2  vcsa5
-sh: fuse: command not found
XXXXXX@DS918_2:/$ i2c-0            ptya7               ptyd2  ptypd  ptys8  ptyv3  ptyxe  ram3    synobios          tty42  ttyb0  ttydb  ttyq6  ttysd  ttyv8  ttyy3  vcsa6
-sh: i2c-0: command not found
XXXXXX@DS918_2:/$ i2c-1            ptya8               ptyd3  ptype  ptys9  ptyv4  ptyxf  ram4    synoboot          tty43  ttyb1  ttydc  ttyq7  ttyse  ttyv9  ttyy4  vg1
-sh: i2c-1: command not found
XXXXXX@DS918_2:/$ i2c-2            ptya9               ptyd4  ptypf  ptysa  ptyv5  ptyy0  ram5    synoboot1         tty44  ttyb2  ttydd  ttyq8  ttysf  ttyva  ttyy5  vga_arbiter
-sh: i2c-2: command not found
XXXXXX@DS918_2:/$ i2c-3            ptyaa               ptyd5  ptyq0  ptysb  ptyv6  ptyy1  ram6    synoboot2         tty45  ttyb3  ttyde  ttyq9  ttyt0  ttyvb  ttyy6  vhost-scsi
-sh: i2c-3: command not found
XXXXXX@DS918_2:/$ i2c-4            ptyab               ptyd6  ptyq1  ptysc  ptyv7  ptyy2  ram7    synoboot3         tty46  ttyb4  ttydf  ttyqa  ttyt1  ttyvc  ttyy7  zero
-sh: i2c-4: command not found
XXXXXX@DS918_2:/$ i2c-5            ptyac               ptyd7  ptyq2  ptysd  ptyv8  ptyy3  ram8    tty               tty47  ttyb5  ttye0  ttyqb  ttyt2  ttyvd  ttyy8  zram0
-sh: i2c-5: command not found
XXXXXX@DS918_2:/$ kmem             ptyad               ptyd8  ptyq3  ptyse  ptyv9  ptyy4  ram9    tty0              tty48  ttyb6  ttye1  ttyqc  ttyt3  ttyve  ttyy9  zram1
-sh: kmem: command not found
XXXXXX@DS918_2:/$ kmsg             ptyae               ptyd9  ptyq4  ptysf  ptyva  ptyy5  random  tty1              tty49  ttyb7  ttye2  ttyqd  ttyt4  ttyvf  ttyya  zram2
-sh: kmsg: command not found
XXXXXX@DS918_2:/$ kvm              ptyaf               ptyda  ptyq5  ptyt0  ptyvb  ptyy6  rtc     tty10             tty5   ttyb8  ttye3  ttyqe  ttyt5  ttyw0  ttyyb  zram3
-sh: kvm: command not found
XXXXXX@DS918_2:/$ log              ptyb0               ptydb  ptyq6  ptyt1  ptyvc  ptyy7  rtc0    tty11             tty50  ttyb9  ttye4  ttyqf  ttyt6  ttyw1  ttyyc
-sh: log: command not found
XXXXXX@DS918_2:/$ loop0            ptyb1               ptydc  ptyq7  ptyt2  ptyvd  ptyy8  sdc     tty12             tty51  ttyba  ttye5  ttyr0  ttyt7  ttyw2  ttyyd
-sh: loop0: command not found
XXXXXX@DS918_2:/$ loop1            ptyb2               ptydd  ptyq8  ptyt3  ptyve  ptyy9  sdc1    tty13             tty52  ttybb  ttye6  ttyr1  ttyt8  ttyw3  ttyye
-sh: loop1: command not found
XXXXXX@DS918_2:/$ loop2            ptyb3               ptyde  ptyq9  ptyt4  ptyvf  ptyya  sdd     tty14             tty53  ttybc  ttye7  ttyr2  ttyt9  ttyw4  ttyyf
-sh: loop2: command not found
XXXXXX@DS918_2:/$ loop3            ptyb4               ptydf  ptyqa  ptyt5  ptyw0  ptyyb  sdd1    tty15             tty54  ttybd  ttye8  ttyr3  ttyta  ttyw5  ttyz0
-sh: loop3: command not found
XXXXXX@DS918_2:/$ loop4            ptyb5               ptye0  ptyqb  ptyt6  ptyw1  ptyyc  sde     tty16             tty55  ttybe  ttye9  ttyr4  ttytb  ttyw6  ttyz1
-sh: loop4: command not found
XXXXXX@DS918_2:/$ loop5            ptyb6               ptye1  ptyqc  ptyt7  ptyw2  ptyyd  sde1    tty17             tty56  ttybf  ttyea  ttyr5  ttytc  ttyw7  ttyz2
-sh: loop5: command not found
XXXXXX@DS918_2:/$ loop6            ptyb7               ptye2  ptyqd  ptyt8  ptyw3  ptyye  sde2    tty18             tty57  ttyc0  ttyeb  ttyr6  ttytd  ttyw8  ttyz3
-sh: loop6: command not found
XXXXXX@DS918_2:/$ loop7            ptyb8               ptye3  ptyqe  ptyt9  ptyw4  ptyyf  sde5    tty19             tty58  ttyc1  ttyec  ttyr7  ttyte  ttyw9  ttyz4
-sh: loop7: command not found
XXXXXX@DS918_2:/$ loop-control     ptyb9               ptye4  ptyqf  ptyta  ptyw5  ptyz0  sdf     tty2              tty59  ttyc2  ttyed  ttyr8  ttytf  ttywa  ttyz5
-sh: loop-control: command not found
XXXXXX@DS918_2:/$ mapper           ptyba               ptye5  ptyr0  ptytb  ptyw6  ptyz1  sdf1    tty20             tty6   ttyc3  ttyee  ttyr9  ttyu0  ttywb  ttyz6
-sh: mapper: command not found
XXXXXX@DS918_2:/$ mcelog           ptybb               ptye6  ptyr1  ptytc  ptyw7  ptyz2  sdf2    tty21             tty60  ttyc4  ttyef  ttyra  ttyu1  ttywc  ttyz7
Usage:

  mcelog [options]  [mcelogdevice]
Decode machine check error records from current kernel.

  mcelog [options] --daemon
Run mcelog in daemon mode, waiting for errors from the kernel.

  mcelog [options] --client
Query a currently running mcelog daemon for errors

  mcelog [options] --ascii < log
  mcelog [options] --ascii --file log
Decode machine check ASCII output from kernel logs

Options:
--version           Show the version of mcelog and exit
--cpu CPU           Set CPU type CPU to decode (see below for valid types)
--intel-cpu FAMILY,MODEL  Set CPU type for an Intel CPU based on family and model from cpuid
--k8                Set the CPU to be an AMD K8
--p4                Set the CPU to be an Intel Pentium4
--core2             Set the CPU to be an Intel Core2
--generic           Set the CPU to a generic version
--cpumhz MHZ        Set CPU Mhz to decode time (output unreliable, not needed on new kernels)
--raw                (with --ascii) Dump in raw ASCII format for machine processing
--daemon            Run in background waiting for events (needs newer kernel)
--client            Query a currently running mcelog daemon for errors
--ignorenodev       Exit silently when the device cannot be opened
--file filename     With --ascii read machine check log from filename instead of stdin
--logfile filename  Log decoded machine checks in file filename
--syslog            Log decoded machine checks in syslog (default stdout or syslog for daemon)
--syslog-error       Log decoded machine checks in syslog with error level
--no-syslog         Never log anything to syslog
--logfile filename  Append log output to logfile instead of stdout
--dmi               Use SMBIOS information to decode DIMMs (needs root)
--no-dmi            Don't use SMBIOS information
--dmi-verbose       Dump SMBIOS information (for debugging)
--filter            Inhibit known bogus events (default on)
--no-filter         Don't inhibit known broken events
--config-file filename Read config information from config file instead of /etc/mcelog/mcelog.conf
--foreground        Keep in foreground (for debugging)
--num-errors N      Only process N errors (for testing)
--pidfile file       Write pid of daemon into file
--no-imc-log         Disable extended iMC logging
--is-cpu-supported  Exit with return code indicating whether the CPU is supported
--max-corr-err-counters Max page correctable error counters
--help               Display this message.

Valid CPUs: generic p6old core2 k8 p4 dunnington xeon74xx xeon7400 xeon5500 xeon5200 xeon5000 xeon5100 xeon3100 xeon3200 core_i7 core_i5 core_i3 nehalem westmere xeon71xx xeon7100 tulsa intel xeon75xx xeon7500 xeon7200 xeon7100 sandybridge sandybridge-ep ivybridge ivybridge-ep ivybridge-ex haswell haswell-ep haswell-ex broadwell broadwell-d broadwell-ep broadwell-ex knightslanding knightsmill xeon-v2 xeon-v3 xeon-v4 atom skylake skylake_server cascadelake_server kabylake denverton icelake_server icelake-d snowridge cometlake tigerlake rocketlake alderlake lakefield sapphirerapids_server
XXXXXX@DS918_2:/$ md0              ptybc               ptye7  ptyr2  ptytd  ptyw8  ptyz3  sdf5    tty22             tty61  ttyc5  ttyp0  ttyrb  ttyu2  ttywd  ttyz8
-sh: md0: command not found
XXXXXX@DS918_2:/$ md1              ptybd               ptye8  ptyr3  ptyte  ptyw9  ptyz4  sdg     tty23             tty62  ttyc6  ttyp1  ttyrc  ttyu3  ttywe  ttyz9
-sh: md1: command not found
XXXXXX@DS918_2:/$ md2              ptybe               ptye9  ptyr4  ptytf  ptywa  ptyz5  sdg1    tty24             tty63  ttyc7  ttyp2  ttyrd  ttyu4  ttywf  ttyza
-sh: md2: command not found
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ lspci -d ::106
-sh: XXXXXX@DS918_2:/$: No such file or directory
XXXXXX@DS918_2:/$ 0000:00:17.0 Class 0106: Device 8086:a102 (rev 31)
-sh: syntax error near unexpected token `('
XXXXXX@DS918_2:/$ 0001:00:12.0 Class 0106: Device 8086:5ae3
-sh: 0001:00:12.0: command not found
XXXXXX@DS918_2:/$ 0001:01:00.0 Class 0106: Device 1b4b:9215 (rev 11)
-sh: syntax error near unexpected token `('
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ lspci -d ::107
-sh: XXXXXX@DS918_2:/$: No such file or directory
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ ls -l /sys/class/scsi_host
-sh: XXXXXX@DS918_2:/$: No such file or directory
XXXXXX@DS918_2:/$ total 0
-sh: total: command not found
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host0 -> ../../devices/pci0000:00/0000:00:17.0/ata1/host0/scsi_host/host0
-sh: ../../devices/pci0000:00/0000:00:17.0/ata1/host0/scsi_host/host0: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host1 -> ../../devices/pci0000:00/0000:00:17.0/ata2/host1/scsi_host/host1
-sh: ../../devices/pci0000:00/0000:00:17.0/ata2/host1/scsi_host/host1: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host2 -> ../../devices/pci0000:00/0000:00:17.0/ata3/host2/scsi_host/host2
-sh: ../../devices/pci0000:00/0000:00:17.0/ata3/host2/scsi_host/host2: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host3 -> ../../devices/pci0000:00/0000:00:17.0/ata4/host3/scsi_host/host3
-sh: ../../devices/pci0000:00/0000:00:17.0/ata4/host3/scsi_host/host3: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host4 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/host4/scsi_host/host4
-sh: ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/host4/scsi_host/host4: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host5 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/host5/scsi_host/host5
-sh: ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/host5/scsi_host/host5: No such file or directory
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ cat /etc/synoinfo.conf | grep portcfg
-sh: XXXXXX@DS918_2:/$: No such file or directory
XXXXXX@DS918_2:/$ esataportcfg="0x00"
XXXXXX@DS918_2:/$ internalportcfg="0x7f"
XXXXXX@DS918_2:/$ usbportcfg="0x00"
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ cat /etc/synoinfo.conf | grep disks

@wjz304
Copy link
Contributor

wjz304 commented Sep 12, 2023

../../devices/tcm_loop_0/tcm_loop_adapter_0/host6/scsi_host/host6

../../devices/tcm_loop_0/tcm_loop_adapter_0/host6/scsi_host/host6
能确定这个是什么设备吗?

@wjz304
Copy link
Contributor

wjz304 commented Sep 12, 2023

取以下 日志 (在 dsm系统下)

ls /dev/
lspci -d ::106
lspci -d ::107
ls -l /sys/class/scsi_host
cat /etc/synoinfo.conf | grep portcfg
cat /etc/synoinfo.conf | grep disks
XXXXXX@DS918_2:/$ ls /dev/
block            md3                 ptybf  ptyea  ptyr5  ptyu0  ptywb  ptyz6   sdg2              tty25  tty7   ttyc8  ttyp3  ttyre  ttyu5  ttyx0  ttyzb
bsg              mem                 ptyc0  ptyeb  ptyr6  ptyu1  ptywc  ptyz7   sdg5              tty26  tty8   ttyc9  ttyp4  ttyrf  ttyu6  ttyx1  ttyzc
btrfs-control    memory_bandwidth    ptyc1  ptyec  ptyr7  ptyu2  ptywd  ptyz8   sdh               tty27  tty9   ttyca  ttyp5  ttys0  ttyu7  ttyx2  ttyzd
bus              mpt2ctl             ptyc2  ptyed  ptyr8  ptyu3  ptywe  ptyz9   sdh1              tty28  ttya0  ttycb  ttyp6  ttyS0  ttyu8  ttyx3  ttyze
char             mpt3ctl             ptyc3  ptyee  ptyr9  ptyu4  ptywf  ptyza   sdh2              tty29  ttya1  ttycc  ttyp7  ttys1  ttyu9  ttyx4  ttyzf
console          network_latency     ptyc4  ptyef  ptyra  ptyu5  ptyx0  ptyzb   sdh5              tty3   ttya2  ttycd  ttyp8  ttyS1  ttyua  ttyx5  urandom
core             network_throughput  ptyc5  ptyp0  ptyrb  ptyu6  ptyx1  ptyzc   sg0               tty30  ttya3  ttyce  ttyp9  ttys2  ttyub  ttyx6  vcs
cpu              null                ptyc6  ptyp1  ptyrc  ptyu7  ptyx2  ptyzd   sg1               tty31  ttya4  ttycf  ttypa  ttyS2  ttyuc  ttyx7  vcs1
cpu_dma_latency  port                ptyc7  ptyp2  ptyrd  ptyu8  ptyx3  ptyze   sg2               tty32  ttya5  ttyd0  ttypb  ttys3  ttyud  ttyx8  vcs2
dm-0             ptmx                ptyc8  ptyp3  ptyre  ptyu9  ptyx4  ptyzf   sg3               tty33  ttya6  ttyd1  ttypc  ttyS3  ttyue  ttyx9  vcs3
dm-1             ptp0                ptyc9  ptyp4  ptyrf  ptyua  ptyx5  ram0    sg4               tty34  ttya7  ttyd2  ttypd  ttys4  ttyuf  ttyxa  vcs4
dm-2             pts                 ptyca  ptyp5  ptys0  ptyub  ptyx6  ram1    sg5               tty35  ttya8  ttyd3  ttype  ttys5  ttyv0  ttyxb  vcs5
dm-3             ptya0               ptycb  ptyp6  ptys1  ptyuc  ptyx7  ram10   sg6               tty36  ttya9  ttyd4  ttypf  ttys6  ttyv1  ttyxc  vcs6
dm-4             ptya1               ptycc  ptyp7  ptys2  ptyud  ptyx8  ram11   shared_cache_vg1  tty37  ttyaa  ttyd5  ttyq0  ttys7  ttyv2  ttyxd  vcsa
dri              ptya2               ptycd  ptyp8  ptys3  ptyue  ptyx9  ram12   shm               tty38  ttyab  ttyd6  ttyq1  ttys8  ttyv3  ttyxe  vcsa1
fb0              ptya3               ptyce  ptyp9  ptys4  ptyuf  ptyxa  ram13   snapshot          tty39  ttyac  ttyd7  ttyq2  ttys9  ttyv4  ttyxf  vcsa2
fd               ptya4               ptycf  ptypa  ptys5  ptyv0  ptyxb  ram14   stderr            tty4   ttyad  ttyd8  ttyq3  ttysa  ttyv5  ttyy0  vcsa3
full             ptya5               ptyd0  ptypb  ptys6  ptyv1  ptyxc  ram15   stdin             tty40  ttyae  ttyd9  ttyq4  ttysb  ttyv6  ttyy1  vcsa4
fuse             ptya6               ptyd1  ptypc  ptys7  ptyv2  ptyxd  ram2    stdout            tty41  ttyaf  ttyda  ttyq5  ttysc  ttyv7  ttyy2  vcsa5
i2c-0            ptya7               ptyd2  ptypd  ptys8  ptyv3  ptyxe  ram3    synobios          tty42  ttyb0  ttydb  ttyq6  ttysd  ttyv8  ttyy3  vcsa6
i2c-1            ptya8               ptyd3  ptype  ptys9  ptyv4  ptyxf  ram4    synoboot          tty43  ttyb1  ttydc  ttyq7  ttyse  ttyv9  ttyy4  vg1
i2c-2            ptya9               ptyd4  ptypf  ptysa  ptyv5  ptyy0  ram5    synoboot1         tty44  ttyb2  ttydd  ttyq8  ttysf  ttyva  ttyy5  vga_arbiter
i2c-3            ptyaa               ptyd5  ptyq0  ptysb  ptyv6  ptyy1  ram6    synoboot2         tty45  ttyb3  ttyde  ttyq9  ttyt0  ttyvb  ttyy6  vhost-scsi
i2c-4            ptyab               ptyd6  ptyq1  ptysc  ptyv7  ptyy2  ram7    synoboot3         tty46  ttyb4  ttydf  ttyqa  ttyt1  ttyvc  ttyy7  zero
i2c-5            ptyac               ptyd7  ptyq2  ptysd  ptyv8  ptyy3  ram8    tty               tty47  ttyb5  ttye0  ttyqb  ttyt2  ttyvd  ttyy8  zram0
kmem             ptyad               ptyd8  ptyq3  ptyse  ptyv9  ptyy4  ram9    tty0              tty48  ttyb6  ttye1  ttyqc  ttyt3  ttyve  ttyy9  zram1
kmsg             ptyae               ptyd9  ptyq4  ptysf  ptyva  ptyy5  random  tty1              tty49  ttyb7  ttye2  ttyqd  ttyt4  ttyvf  ttyya  zram2
kvm              ptyaf               ptyda  ptyq5  ptyt0  ptyvb  ptyy6  rtc     tty10             tty5   ttyb8  ttye3  ttyqe  ttyt5  ttyw0  ttyyb  zram3
log              ptyb0               ptydb  ptyq6  ptyt1  ptyvc  ptyy7  rtc0    tty11             tty50  ttyb9  ttye4  ttyqf  ttyt6  ttyw1  ttyyc
loop0            ptyb1               ptydc  ptyq7  ptyt2  ptyvd  ptyy8  sdc     tty12             tty51  ttyba  ttye5  ttyr0  ttyt7  ttyw2  ttyyd
loop1            ptyb2               ptydd  ptyq8  ptyt3  ptyve  ptyy9  sdc1    tty13             tty52  ttybb  ttye6  ttyr1  ttyt8  ttyw3  ttyye
loop2            ptyb3               ptyde  ptyq9  ptyt4  ptyvf  ptyya  sdd     tty14             tty53  ttybc  ttye7  ttyr2  ttyt9  ttyw4  ttyyf
loop3            ptyb4               ptydf  ptyqa  ptyt5  ptyw0  ptyyb  sdd1    tty15             tty54  ttybd  ttye8  ttyr3  ttyta  ttyw5  ttyz0
loop4            ptyb5               ptye0  ptyqb  ptyt6  ptyw1  ptyyc  sde     tty16             tty55  ttybe  ttye9  ttyr4  ttytb  ttyw6  ttyz1
loop5            ptyb6               ptye1  ptyqc  ptyt7  ptyw2  ptyyd  sde1    tty17             tty56  ttybf  ttyea  ttyr5  ttytc  ttyw7  ttyz2
loop6            ptyb7               ptye2  ptyqd  ptyt8  ptyw3  ptyye  sde2    tty18             tty57  ttyc0  ttyeb  ttyr6  ttytd  ttyw8  ttyz3
loop7            ptyb8               ptye3  ptyqe  ptyt9  ptyw4  ptyyf  sde5    tty19             tty58  ttyc1  ttyec  ttyr7  ttyte  ttyw9  ttyz4
loop-control     ptyb9               ptye4  ptyqf  ptyta  ptyw5  ptyz0  sdf     tty2              tty59  ttyc2  ttyed  ttyr8  ttytf  ttywa  ttyz5
mapper           ptyba               ptye5  ptyr0  ptytb  ptyw6  ptyz1  sdf1    tty20             tty6   ttyc3  ttyee  ttyr9  ttyu0  ttywb  ttyz6
mcelog           ptybb               ptye6  ptyr1  ptytc  ptyw7  ptyz2  sdf2    tty21             tty60  ttyc4  ttyef  ttyra  ttyu1  ttywc  ttyz7
md0              ptybc               ptye7  ptyr2  ptytd  ptyw8  ptyz3  sdf5    tty22             tty61  ttyc5  ttyp0  ttyrb  ttyu2  ttywd  ttyz8
md1              ptybd               ptye8  ptyr3  ptyte  ptyw9  ptyz4  sdg     tty23             tty62  ttyc6  ttyp1  ttyrc  ttyu3  ttywe  ttyz9
md2              ptybe               ptye9  ptyr4  ptytf  ptywa  ptyz5  sdg1    tty24             tty63  ttyc7  ttyp2  ttyrd  ttyu4  ttywf  ttyza
XXXXXX@DS918_2:/$ lspci -d ::106
0000:00:17.0 Class 0106: Device 8086:a102 (rev 31)
0001:00:12.0 Class 0106: Device 8086:5ae3
0001:01:00.0 Class 0106: Device 1b4b:9215 (rev 11)
XXXXXX@DS918_2:/$ lspci -d ::107
XXXXXX@DS918_2:/$ ls -l /sys/class/scsi_host
total 0
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host0 -> ../../devices/pci0000:00/0000:00:17.0/ata1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host1 -> ../../devices/pci0000:00/0000:00:17.0/ata2/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host2 -> ../../devices/pci0000:00/0000:00:17.0/ata3/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host3 -> ../../devices/pci0000:00/0000:00:17.0/ata4/host3/scsi_host/host3
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host4 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/host4/scsi_host/host4
lrwxrwxrwx 1 root root 0 Sep  9 22:45 host5 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/host5/scsi_host/host5
XXXXXX@DS918_2:/$ cat /etc/synoinfo.conf | grep portcfg
esataportcfg="0x00"
internalportcfg="0x7f"
usbportcfg="0x00"
XXXXXX@DS918_2:/$ cat /etc/synoinfo.conf | grep disks
maxdisks="7"
XXXXXX@DS918_2:/$ ^C
XXXXXX@DS918_2:/$
cpu_dma_latency  port                ptyc7  ptyp2  ptyrd  ptyu8  ptyx3  ptyze   sg2               tty32  ttya5  ttyd0  ttypb  ttys3  ttyud  ttyx8  vcs2
dm-0             ptmx                ptyc8  ptyp3  ptyre  ptyu9  ptyx4  ptyzf   sg3               tty33  ttya6  ttyd1  ttypc  ttyS3  ttyue  ttyx9  vcs3
dm-1             ptp0                ptyc9  ptyp4  ptyrf  ptyua  ptyx5  ram0    sg4               tty34  ttya7  ttyd2  ttypd  ttys4  ttyuf  ttyxa  vcs4
dm-2             pts                 ptyca  ptyp5  ptys0  ptyub  ptyx6  ram1    sg5               tty35  ttya8  ttyd3  ttype  ttys5  ttyv0  ttyxb  vcs5
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ ls /dev/
dri              ptya2               ptycd  ptyp8  ptys3  ptyue  ptyx9  ram12   shm               tty38  ttyab  ttyd6  ttyq1  ttys8  ttyv3  ttyxe  vcsa1
fb0              ptya3               ptyce  ptyp9  ptys4  ptyuf  ptyxa  ram13   snapshot          tty39  ttyac  ttyd7  ttyq2  ttys9  ttyv4  ttyxf  vcsa2
fd               ptya4               ptycf  ptypa  ptys5  ptyv0  ptyxb  ram14   stderr            tty4   ttyad  ttyd8  ttyq3  ttysa  ttyv5  ttyy0  vcsa3
full             ptya5               ptyd0  ptypb  ptys6  ptyv1  ptyxc  ram15   stdin             tty40  ttyae  ttyd9  ttyq4  ttysb  ttyv6  ttyy1  vcsa4
fuse             ptya6               ptyd1  ptypc  ptys7  ptyv2  ptyxd  ram2    stdout            tty41  ttyaf  ttyda  ttyq5  ttysc  ttyv7  ttyy2  vcsa5
i2c-0            ptya7               ptyd2  ptypd  ptys8  ptyv3  ptyxe  ram3    synobios          tty42  ttyb0  ttydb  ttyq6  ttysd  ttyv8  ttyy3  vcsa6
i2c-1            ptya8               ptyd3  ptype  ptys9  ptyv4  ptyxf  ram4    synoboot          tty43  ttyb1  ttydc  ttyq7  ttyse  ttyv9  ttyy4  vg1
i2c-2            ptya9               ptyd4  ptypf  ptysa  ptyv5  ptyy0  ram5    synoboot1         tty44  ttyb2  ttydd  ttyq8  ttysf  ttyva  ttyy5  vga_arbiter
i2c-3            ptyaa               ptyd5  ptyq0  ptysb  ptyv6  ptyy1  ram6    synoboot2         tty45  ttyb3  ttyde  ttyq9  ttyt0  ttyvb  ttyy6  vhost-scsi
i2c-4            ptyab               ptyd6  ptyq1  ptysc  ptyv7  ptyy2  ram7    synoboot3         tty46  ttyb4  ttydf  ttyqa  ttyt1  ttyvc  ttyy7  zero
i2c-5            ptyac               ptyd7  ptyq2  ptysd  ptyv8  ptyy3  ram8    tty               tty47  ttyb5  ttye0  ttyqb  ttyt2  ttyvd  ttyy8  zram0
kmem             ptyad               ptyd8  ptyq3  ptyse  ptyv9  ptyy4  ram9    tty0              tty48  ttyb6  ttye1  ttyqc  ttyt3  ttyve -sh: XXXXXX@DS918_2:/$: No such file or directory
 ttyy9  zram1
kmsg             ptyae               ptyd9  ptyq4  ptysf  ptyva  ptyy5  random  tty1              tty49  ttyb7  ttyeXXXXXX@DS918_2:/$ block            md3     tyx0  ttyzb ptybf  ptyea  ptyr5  ptyu0  ptywb  ptyz6   sdg2              tty25  tty7   ttyc8  ttyp3  ttyre  ttyu5  tt
-sh: block: command not found
XXXXXX@DS918_2:/$ bsg              mem                 ptyc0  ptyeb  ptyr6  ptyu1  ptywc  ptyz7   sdg5              tty26  tty8   ttyc9  ttyp4  ttyrf  ttyu6  ttyx1  ttyzc
-sh: bsg: command not found
XXXXXX@DS918_2:/$ btrfs-control    memory_bandwidth    ptyc1  ptyec  ptyr7  ptyu2  ptywd  ptyz8   sdh               tty27  tty9   ttyca  ttyp5  ttys0  ttyu7  ttyx2  ttyzd
-sh: btrfs-control: command not found
XXXXXX@DS918_2:/$ bus              mpt2ctl             ptyc2  ptyed  ptyr8  ptyu3  ptywe  ptyz9   sdh1              tty28  ttya0  ttycb  ttyp6  ttyS0  ttyu8  ttyx3  ttyze
-sh: bus: command not found
XXXXXX@DS918_2:/$ char             mpt3ctl             ptyc3  ptyee  ptyr9  ptyu4  ptywf  ptyza   sdh2              tty29  ttya1  ttycc  ttyp7  ttys1  ttyu9  ttyx4  ttyzf
-sh: char: command not found
XXXXXX@DS918_2:/$ console          network_latency     ptyc4  ptyef  ptyra  ptyu5  ptyx0  ptyzb   sdh5              tty3   ttya2  ttycd  ttyp8  ttyS1  ttyua  ttyx5  urandom
-sh: console: command not found
XXXXXX@DS918_2:/$ core             network_throughput  ptyc5  ptyp0  ptyrb  ptyu6  ptyx1  ptyzc   sg0               tty30  ttya3  ttyce  ttyp9  ttys2  ttyub  ttyx6  vcs
-sh: core: command not found
XXXXXX@DS918_2:/$ cpu              null                ptyc6  ptyp1  ptyrc  ptyu7  ptyx2  ptyzd   sg1               tty31  ttya4  ttycf  ttypa  ttyS2  ttyuc  ttyx7  vcs1
-sh: cpu: command not found
XXXXXX@DS918_2:/$ cpu_dma_latency  port                ptyc7  ptyp2  ptyrd  ptyu8  ptyx3  ptyze   sg2               tty32  ttya5  ttyd0  ttypb  ttys3  ttyud  ttyx8  vcs2
-sh: cpu_dma_latency: command not found
XXXXXX@DS918_2:/$ dm-0             ptmx                ptyc8  ptyp3  ptyre  ptyu9  ptyx4  ptyzf   sg3               tty33  ttya6  ttyd1  ttypc  ttyS3  ttyue  ttyx9  vcs3
-sh: dm-0: command not found
XXXXXX@DS918_2:/$ dm-1             ptp0                ptyc9  ptyp4  ptyrf  ptyua  ptyx5  ram0    sg4               tty34  ttya7  ttyd2  ttypd  ttys4  ttyuf  ttyxa  vcs4
-sh: dm-1: command not found
XXXXXX@DS918_2:/$ dm-2             pts                 ptyca  ptyp5  ptys0  ptyub  ptyx6  ram1    sg5               tty35  ttya8  ttyd3  ttype  ttys5  ttyv0  ttyxb  vcs5
-sh: dm-2: command not found
XXXXXX@DS918_2:/$ dm-3             ptya0               ptycb  ptyp6  ptys1  ptyuc  ptyx7  ram10   sg6               tty36  ttya9  ttyd4  ttypf  ttys6  ttyv1  ttyxc  vcs6
-sh: dm-3: command not found
XXXXXX@DS918_2:/$ dm-4             ptya1               ptycc  ptyp7  ptys2  ptyud  ptyx8  ram11   shared_cache_vg1  tty37  ttyaa  ttyd5  ttyq0  ttys7  ttyv2  ttyxd  vcsa
-sh: dm-4: command not found
XXXXXX@DS918_2:/$ dri              ptya2               ptycd  ptyp8  ptys3  ptyue  ptyx9  ram12   shm               tty38  ttyab  ttyd6  ttyq1  ttys8  ttyv3  ttyxe  vcsa1
-sh: dri: command not found
XXXXXX@DS918_2:/$ fb0              ptya3               ptyce  ptyp9  ptys4  ptyuf  ptyxa  ram13   snapshot          tty39  ttyac  ttyd7  ttyq2  ttys9  ttyv4  ttyxf  vcsa2
-sh: fb0: command not found
XXXXXX@DS918_2:/$ fd               ptya4               ptycf  ptypa  ptys5  ptyv0  ptyxb  ram14   stderr            tty4   ttyad  ttyd8  ttyq3  ttysa  ttyv5  ttyy0  vcsa3
-sh: fd: command not found
XXXXXX@DS918_2:/$ full             ptya5               ptyd0  ptypb  ptys6  ptyv1  ptyxc  ram15   stdin             tty40  ttyae  ttyd9  ttyq4  ttysb  ttyv6  ttyy1  vcsa4
-sh: full: command not found
XXXXXX@DS918_2:/$ fuse             ptya6               ptyd1  ptypc  ptys7  ptyv2  ptyxd  ram2    stdout            tty41  ttyaf  ttyda  ttyq5  ttysc  ttyv7  ttyy2  vcsa5
-sh: fuse: command not found
XXXXXX@DS918_2:/$ i2c-0            ptya7               ptyd2  ptypd  ptys8  ptyv3  ptyxe  ram3    synobios          tty42  ttyb0  ttydb  ttyq6  ttysd  ttyv8  ttyy3  vcsa6
-sh: i2c-0: command not found
XXXXXX@DS918_2:/$ i2c-1            ptya8               ptyd3  ptype  ptys9  ptyv4  ptyxf  ram4    synoboot          tty43  ttyb1  ttydc  ttyq7  ttyse  ttyv9  ttyy4  vg1
-sh: i2c-1: command not found
XXXXXX@DS918_2:/$ i2c-2            ptya9               ptyd4  ptypf  ptysa  ptyv5  ptyy0  ram5    synoboot1         tty44  ttyb2  ttydd  ttyq8  ttysf  ttyva  ttyy5  vga_arbiter
-sh: i2c-2: command not found
XXXXXX@DS918_2:/$ i2c-3            ptyaa               ptyd5  ptyq0  ptysb  ptyv6  ptyy1  ram6    synoboot2         tty45  ttyb3  ttyde  ttyq9  ttyt0  ttyvb  ttyy6  vhost-scsi
-sh: i2c-3: command not found
XXXXXX@DS918_2:/$ i2c-4            ptyab               ptyd6  ptyq1  ptysc  ptyv7  ptyy2  ram7    synoboot3         tty46  ttyb4  ttydf  ttyqa  ttyt1  ttyvc  ttyy7  zero
-sh: i2c-4: command not found
XXXXXX@DS918_2:/$ i2c-5            ptyac               ptyd7  ptyq2  ptysd  ptyv8  ptyy3  ram8    tty               tty47  ttyb5  ttye0  ttyqb  ttyt2  ttyvd  ttyy8  zram0
-sh: i2c-5: command not found
XXXXXX@DS918_2:/$ kmem             ptyad               ptyd8  ptyq3  ptyse  ptyv9  ptyy4  ram9    tty0              tty48  ttyb6  ttye1  ttyqc  ttyt3  ttyve  ttyy9  zram1
-sh: kmem: command not found
XXXXXX@DS918_2:/$ kmsg             ptyae               ptyd9  ptyq4  ptysf  ptyva  ptyy5  random  tty1              tty49  ttyb7  ttye2  ttyqd  ttyt4  ttyvf  ttyya  zram2
-sh: kmsg: command not found
XXXXXX@DS918_2:/$ kvm              ptyaf               ptyda  ptyq5  ptyt0  ptyvb  ptyy6  rtc     tty10             tty5   ttyb8  ttye3  ttyqe  ttyt5  ttyw0  ttyyb  zram3
-sh: kvm: command not found
XXXXXX@DS918_2:/$ log              ptyb0               ptydb  ptyq6  ptyt1  ptyvc  ptyy7  rtc0    tty11             tty50  ttyb9  ttye4  ttyqf  ttyt6  ttyw1  ttyyc
-sh: log: command not found
XXXXXX@DS918_2:/$ loop0            ptyb1               ptydc  ptyq7  ptyt2  ptyvd  ptyy8  sdc     tty12             tty51  ttyba  ttye5  ttyr0  ttyt7  ttyw2  ttyyd
-sh: loop0: command not found
XXXXXX@DS918_2:/$ loop1            ptyb2               ptydd  ptyq8  ptyt3  ptyve  ptyy9  sdc1    tty13             tty52  ttybb  ttye6  ttyr1  ttyt8  ttyw3  ttyye
-sh: loop1: command not found
XXXXXX@DS918_2:/$ loop2            ptyb3               ptyde  ptyq9  ptyt4  ptyvf  ptyya  sdd     tty14             tty53  ttybc  ttye7  ttyr2  ttyt9  ttyw4  ttyyf
-sh: loop2: command not found
XXXXXX@DS918_2:/$ loop3            ptyb4               ptydf  ptyqa  ptyt5  ptyw0  ptyyb  sdd1    tty15             tty54  ttybd  ttye8  ttyr3  ttyta  ttyw5  ttyz0
-sh: loop3: command not found
XXXXXX@DS918_2:/$ loop4            ptyb5               ptye0  ptyqb  ptyt6  ptyw1  ptyyc  sde     tty16             tty55  ttybe  ttye9  ttyr4  ttytb  ttyw6  ttyz1
-sh: loop4: command not found
XXXXXX@DS918_2:/$ loop5            ptyb6               ptye1  ptyqc  ptyt7  ptyw2  ptyyd  sde1    tty17             tty56  ttybf  ttyea  ttyr5  ttytc  ttyw7  ttyz2
-sh: loop5: command not found
XXXXXX@DS918_2:/$ loop6            ptyb7               ptye2  ptyqd  ptyt8  ptyw3  ptyye  sde2    tty18             tty57  ttyc0  ttyeb  ttyr6  ttytd  ttyw8  ttyz3
-sh: loop6: command not found
XXXXXX@DS918_2:/$ loop7            ptyb8               ptye3  ptyqe  ptyt9  ptyw4  ptyyf  sde5    tty19             tty58  ttyc1  ttyec  ttyr7  ttyte  ttyw9  ttyz4
-sh: loop7: command not found
XXXXXX@DS918_2:/$ loop-control     ptyb9               ptye4  ptyqf  ptyta  ptyw5  ptyz0  sdf     tty2              tty59  ttyc2  ttyed  ttyr8  ttytf  ttywa  ttyz5
-sh: loop-control: command not found
XXXXXX@DS918_2:/$ mapper           ptyba               ptye5  ptyr0  ptytb  ptyw6  ptyz1  sdf1    tty20             tty6   ttyc3  ttyee  ttyr9  ttyu0  ttywb  ttyz6
-sh: mapper: command not found
XXXXXX@DS918_2:/$ mcelog           ptybb               ptye6  ptyr1  ptytc  ptyw7  ptyz2  sdf2    tty21             tty60  ttyc4  ttyef  ttyra  ttyu1  ttywc  ttyz7
Usage:

  mcelog [options]  [mcelogdevice]
Decode machine check error records from current kernel.

  mcelog [options] --daemon
Run mcelog in daemon mode, waiting for errors from the kernel.

  mcelog [options] --client
Query a currently running mcelog daemon for errors

  mcelog [options] --ascii < log
  mcelog [options] --ascii --file log
Decode machine check ASCII output from kernel logs

Options:
--version           Show the version of mcelog and exit
--cpu CPU           Set CPU type CPU to decode (see below for valid types)
--intel-cpu FAMILY,MODEL  Set CPU type for an Intel CPU based on family and model from cpuid
--k8                Set the CPU to be an AMD K8
--p4                Set the CPU to be an Intel Pentium4
--core2             Set the CPU to be an Intel Core2
--generic           Set the CPU to a generic version
--cpumhz MHZ        Set CPU Mhz to decode time (output unreliable, not needed on new kernels)
--raw                (with --ascii) Dump in raw ASCII format for machine processing
--daemon            Run in background waiting for events (needs newer kernel)
--client            Query a currently running mcelog daemon for errors
--ignorenodev       Exit silently when the device cannot be opened
--file filename     With --ascii read machine check log from filename instead of stdin
--logfile filename  Log decoded machine checks in file filename
--syslog            Log decoded machine checks in syslog (default stdout or syslog for daemon)
--syslog-error       Log decoded machine checks in syslog with error level
--no-syslog         Never log anything to syslog
--logfile filename  Append log output to logfile instead of stdout
--dmi               Use SMBIOS information to decode DIMMs (needs root)
--no-dmi            Don't use SMBIOS information
--dmi-verbose       Dump SMBIOS information (for debugging)
--filter            Inhibit known bogus events (default on)
--no-filter         Don't inhibit known broken events
--config-file filename Read config information from config file instead of /etc/mcelog/mcelog.conf
--foreground        Keep in foreground (for debugging)
--num-errors N      Only process N errors (for testing)
--pidfile file       Write pid of daemon into file
--no-imc-log         Disable extended iMC logging
--is-cpu-supported  Exit with return code indicating whether the CPU is supported
--max-corr-err-counters Max page correctable error counters
--help               Display this message.

Valid CPUs: generic p6old core2 k8 p4 dunnington xeon74xx xeon7400 xeon5500 xeon5200 xeon5000 xeon5100 xeon3100 xeon3200 core_i7 core_i5 core_i3 nehalem westmere xeon71xx xeon7100 tulsa intel xeon75xx xeon7500 xeon7200 xeon7100 sandybridge sandybridge-ep ivybridge ivybridge-ep ivybridge-ex haswell haswell-ep haswell-ex broadwell broadwell-d broadwell-ep broadwell-ex knightslanding knightsmill xeon-v2 xeon-v3 xeon-v4 atom skylake skylake_server cascadelake_server kabylake denverton icelake_server icelake-d snowridge cometlake tigerlake rocketlake alderlake lakefield sapphirerapids_server
XXXXXX@DS918_2:/$ md0              ptybc               ptye7  ptyr2  ptytd  ptyw8  ptyz3  sdf5    tty22             tty61  ttyc5  ttyp0  ttyrb  ttyu2  ttywd  ttyz8
-sh: md0: command not found
XXXXXX@DS918_2:/$ md1              ptybd               ptye8  ptyr3  ptyte  ptyw9  ptyz4  sdg     tty23             tty62  ttyc6  ttyp1  ttyrc  ttyu3  ttywe  ttyz9
-sh: md1: command not found
XXXXXX@DS918_2:/$ md2              ptybe               ptye9  ptyr4  ptytf  ptywa  ptyz5  sdg1    tty24             tty63  ttyc7  ttyp2  ttyrd  ttyu4  ttywf  ttyza
-sh: md2: command not found
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ lspci -d ::106
-sh: XXXXXX@DS918_2:/$: No such file or directory
XXXXXX@DS918_2:/$ 0000:00:17.0 Class 0106: Device 8086:a102 (rev 31)
-sh: syntax error near unexpected token `('
XXXXXX@DS918_2:/$ 0001:00:12.0 Class 0106: Device 8086:5ae3
-sh: 0001:00:12.0: command not found
XXXXXX@DS918_2:/$ 0001:01:00.0 Class 0106: Device 1b4b:9215 (rev 11)
-sh: syntax error near unexpected token `('
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ lspci -d ::107
-sh: XXXXXX@DS918_2:/$: No such file or directory
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ ls -l /sys/class/scsi_host
-sh: XXXXXX@DS918_2:/$: No such file or directory
XXXXXX@DS918_2:/$ total 0
-sh: total: command not found
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host0 -> ../../devices/pci0000:00/0000:00:17.0/ata1/host0/scsi_host/host0
-sh: ../../devices/pci0000:00/0000:00:17.0/ata1/host0/scsi_host/host0: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host1 -> ../../devices/pci0000:00/0000:00:17.0/ata2/host1/scsi_host/host1
-sh: ../../devices/pci0000:00/0000:00:17.0/ata2/host1/scsi_host/host1: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host2 -> ../../devices/pci0000:00/0000:00:17.0/ata3/host2/scsi_host/host2
-sh: ../../devices/pci0000:00/0000:00:17.0/ata3/host2/scsi_host/host2: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host3 -> ../../devices/pci0000:00/0000:00:17.0/ata4/host3/scsi_host/host3
-sh: ../../devices/pci0000:00/0000:00:17.0/ata4/host3/scsi_host/host3: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host4 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/host4/scsi_host/host4
-sh: ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/host4/scsi_host/host4: No such file or directory
XXXXXX@DS918_2:/$ lrwxrwxrwx 1 root root 0 Sep  9 22:45 host5 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/host5/scsi_host/host5
-sh: ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/host5/scsi_host/host5: No such file or directory
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ cat /etc/synoinfo.conf | grep portcfg
-sh: XXXXXX@DS918_2:/$: No such file or directory
XXXXXX@DS918_2:/$ esataportcfg="0x00"
XXXXXX@DS918_2:/$ internalportcfg="0x7f"
XXXXXX@DS918_2:/$ usbportcfg="0x00"
XXXXXX@DS918_2:/$ XXXXXX@DS918_2:/$ cat /etc/synoinfo.conf | grep disks

5个sata + 1个 usb, 看不到的哪个应该在usb里面了

@jiang123574
Copy link
Author

https://github.com/wjz304/arpl-addons/releases/tag/23.9.2
@jiang123574 优化了一下 *portcfg 和disks相关的参数获取方式,请测试。

这个是传到插件里对吧,今天试了,没有效果

@aarpro
Copy link

aarpro commented Sep 12, 2023

5个sata + 1个 usb, 看不到的哪个应该在usb里面了

Do I need to change something in the settings? edit config file ? which one ?

UPD Unfortunately, I have already dismantled the NAS from which the logs send to you.

Now I have 3 working servers:

ASRock J3355B-ITX / Celeron J3355 / 2 SSD cache on motherboard SATA and 4 HDD on LSI SAS 9211-4i controller / Arpl and addons version: 23.9.1 - after rebooting: system section error in the last HDD disk on LSI SAS

Advantech ASMB-260I-21A1 / Atom C3558 / 2 SSD cache on motherboard SATA and 4 HDD on LSI SAS 9211-4i controller / Arpl and addons version: 23.9.1 - after rebooting: system section error in the last HDD disk on LSI SAS

problem HDD system section error is solved by instant recovery after pressing the corresponding button in DSM interface

China ITX-B360V3,0 motherboard (6 SATA / 2 NVME) / i5-9500T / 2 NVME cache on motherboard slots and 5 HDD on motherboard SATA / Arpl and addons version: 23.9.1 - no any problems.

@wjz304
Copy link
Contributor

wjz304 commented Sep 12, 2023

5个sata + 1个 usb, 看不到的哪个应该在usb里面了

Do I need to change something in the settings? edit config file ? which one ?

UPD Unfortunately, I have already dismantled the NAS from which the logs send to you.

Now I have 3 working servers:

ASRock J3355B-ITX / Celeron J3355 / 2 SSD cache on motherboard SATA and 4 HDD on LSI SAS 9211-4i controller / Arpl and addons version: 23.9.1 - after rebooting: system section error in the last HDD disk on LSI SAS

Advantech ASMB-260I-21A1 / Atom C3558 / 2 SSD cache on motherboard SATA and 4 HDD on LSI SAS 9211-4i controller / Arpl and addons version: 23.9.1 - after rebooting: system section error in the last HDD disk on LSI SAS

problem HDD system section error is solved by instant recovery after pressing the corresponding button in DSM interface

China ITX-B360V3,0 motherboard (6 SATA / 2 NVME) / i5-9500T / 2 NVME cache on motherboard slots and 5 HDD on motherboard SATA / Arpl and addons version: 23.9.1 - no any problems.

According to @snailium, I currently do not have the issue of environmental reproduction
#201 (comment)

@aarpro
Copy link

aarpro commented Sep 12, 2023

According to @snailium, I currently do not have the issue of environmental reproduction

If I understood you correctly, then no logs are required from me anymore?
also not required testing addons version: 23.9.2
Only expectation...
Right ?

@wjz304
Copy link
Contributor

wjz304 commented Sep 12, 2023

According to @snailium, I currently do not have the issue of environmental reproduction

If I understood you correctly, then no logs are required from me anymore? also not required testing addons version: 23.9.2 Only expectation... Right ?

Yes

@wjz304
Copy link
Contributor

wjz304 commented Sep 12, 2023

I will do some tests these days

@wjz304
Copy link
Contributor

wjz304 commented Sep 17, 2023

Okay, I'm testing it. Maybe the copy action caused permission loss

@aarpro
Copy link

aarpro commented Sep 17, 2023

root@DS3622:~# stat -c "%a %n" /usr/bin/hdddb.sh
644 /usr/bin/hdddb.sh

It looks like arpl-i18n hasn't made hdddb.sh executable.

Run this command: sudo 750 /usr/bin/hdddb.sh

Then try: sudo /usr/bin/hdddb.sh -nfr

i run only this command:

chmod a+x /usr/bin/hdddb.sh
/usr/bin/hdddb.sh -n

And everything worked

2023-09-18_010758

@007revad
Copy link

Okay, I'm testing it. Maybe the copy action caused permission loss

Forgot the -p flag maybe? cp -p

@wjz304
Copy link
Contributor

wjz304 commented Sep 17, 2023

image
My testing machine seems to be working fine

@wjz304
Copy link
Contributor

wjz304 commented Sep 17, 2023

@aarpro ls -al /usr/bin/*.sh

@aarpro
Copy link

aarpro commented Sep 17, 2023

ls -al /usr/bin/*.sh

2023-09-18_010900

@wjz304
Copy link
Contributor

wjz304 commented Sep 17, 2023

The copy actions of several addons are the same, why only hdddb. sh lost its permissions?
Are there any special operations?

@aarpro
Copy link

aarpro commented Sep 17, 2023

The copy actions of several addons are the same, why only hdddb. sh lost its permissions? Are there any special operations?

I don't know it is important or not, but only on DS3622 microcode version detecting problems, on DS918+ - is no such problem

@wjz304
Copy link
Contributor

wjz304 commented Sep 17, 2023

image
@007revad
Guess the upgrade process was executed. I think the code should be given execution permission, and the attachment comes with execution permission

@snailium
Copy link

snailium commented Sep 17, 2023

$ ls -al /usr/bin/*.sh
-rwxr-xr-x 1 root root   614 Sep 15 17:17 /usr/bin/arpl-reboot.sh
-rwxr-xr-x 1 root root 38417 Sep 15 17:17 /usr/bin/cpuinfo.sh
-rw-r--r-- 1 root root 61022 Sep 15 17:17 /usr/bin/hdddb.sh
-rwxr-xr-x 1 root root  2229 Sep 15 17:17 /usr/bin/storagepanel.sh

Confirmed DS3622+ has permission problem.

EDIT

DVA3221 also has permission problem.

@wjz304
Copy link
Contributor

wjz304 commented Sep 17, 2023

$ ls -al /usr/bin/*.sh
-rwxr-xr-x 1 root root   614 Sep 15 17:17 /usr/bin/arpl-reboot.sh
-rwxr-xr-x 1 root root 38417 Sep 15 17:17 /usr/bin/cpuinfo.sh
-rw-r--r-- 1 root root 61022 Sep 15 17:17 /usr/bin/hdddb.sh
-rwxr-xr-x 1 root root  2229 Sep 15 17:17 /usr/bin/storagepanel.sh

Confirmed DS3622+ has permission problem.

What is the current version of arpl addons?

@snailium
Copy link

$ ls -al /usr/bin/*.sh
-rwxr-xr-x 1 root root   614 Sep 15 17:17 /usr/bin/arpl-reboot.sh
-rwxr-xr-x 1 root root 38417 Sep 15 17:17 /usr/bin/cpuinfo.sh
-rw-r--r-- 1 root root 61022 Sep 15 17:17 /usr/bin/hdddb.sh
-rwxr-xr-x 1 root root  2229 Sep 15 17:17 /usr/bin/storagepanel.sh

Confirmed DS3622+ has permission problem.

What is the current version of arpl addons?

23.9.1

@wjz304
Copy link
Contributor

wjz304 commented Sep 17, 2023

是从之前的版本一直迁移上来的吧?

@wjz304
Copy link
Contributor

wjz304 commented Sep 17, 2023

image
@007revad
This location retains the permissions for the source files (i.e./tmp/*. sh), but due to the code not having execute permissions (i.e. sh in the attached compressed package does not have execute permissions), the execute permissions are lost after performing the upgrade

@007revad
Copy link

@wjz304
Line 587 sets the permissions. But I noticed it would set chmod 744 on all !?!? .sh files in the same location as hdddb.sh

And it would fail to set the permissions if the user had removed the .sh file extension.

@wjz304
Copy link
Contributor

wjz304 commented Sep 18, 2023

@wjz304 Line 587 sets the permissions. But I noticed it would set chmod 744 on all !?!? .sh files in the same location as hdddb.sh

And it would fail to set the permissions if the user had removed the .sh file extension.

Sorry, I don't fully understand the script due to the short time, but the upgrade process relies on the original file name, maybe because I don't keeping the original name

@007revad
Copy link

@wjz304 Line 587 sets the permissions. But I noticed it would set chmod 744 on all !?!? .sh files in the same location as hdddb.sh
And it would fail to set the permissions if the user had removed the .sh file extension.

Sorry, I don't fully understand the script due to the short time, but the upgrade process relies on the original file name, maybe because I don't keeping the original name

The upgrade process works for even if the file has been renamed. Lines 151 to 159 get the filename and the location the script is running from, so it can update the correct file.

@wjz304
Copy link
Contributor

wjz304 commented Sep 18, 2023

I just tested and got stuck in an infinite update loop,

@wjz304
Copy link
Contributor

wjz304 commented Sep 18, 2023

I just tested and got stuck in an infinite update loop,

It seems to be related to the network

@wjz304
Copy link
Contributor

wjz304 commented Sep 18, 2023

Hi guys, Same problem with virtio_scsi (I pass my disks by mapping them under proxmox). Impossible to have all my disks displayed with the latest (pre-)versions or I have weird behaviors, so I downgraded to 23.6.7 modules and addons and no more problem. I don't know if this message can be useful or act as a warning, since I don't give any details, but if necessary, let me know what you need.

test https://github.com/wjz304/arpl-modules/actions/runs/6215442785
(Artifacts)

@007revad
Copy link

I just tested and got stuck in an infinite update loop,

Thanks. I just tested it and you are correct. I've broken something because it used to work.

Give me 30 minutes and I'll work out what it is wrong.

@007revad
Copy link

007revad commented Sep 18, 2023

Give me 30 minutes and I'll work out what it is wrong.

The problem was the script was copying the new version with it's original name to /usr/bin/syno_hdd_db.sh instead of replacing /usr/bin/hdddb.sh

I've fixed it but found some other cases where it could fail to update that I want to fix too before pushing it github.

@wjz304
Copy link
Contributor

wjz304 commented Sep 18, 2023

Give me 30 minutes and I'll work out what it is wrong.

The problem was the script was copying the new version with it's original name to /usr/bin/syno_hdd_db.sh instead of replacing /usr/bin/hdddb.sh

I've fixed it but found some other cases where it could fail to update that I want to fix too before pushing it github.

good job!

@007revad
Copy link

I've released a new version that fixes the bugs when the script updates itself.
https://github.com/007revad/Synology_HDD_db/releases/tag/v3.1.64

@wjz304
Copy link
Contributor

wjz304 commented Sep 19, 2023

@007revad
Thank you very much. Also, could you do similar processing for 'syno_enable_m2_volume‘?

@007revad
Copy link

@007revad Thank you very much. Also, could you do similar processing for 'syno_enable_m2_volume‘?

Yes, I realised I need to make the same changes to my other scripts.

@007revad
Copy link

I've released a new version of syno_enable_m2_volume with the same fixes, plus 2 new options:

  • Added --autoupdate=[age] option to auto update synology_hdd_db x days after new version released.
    • Autoupdate logs update success or errors to DSM system log.
  • Added -e --email option to disable coloured output to make task scheduler emails easier to read.

https://github.com/007revad/Synology_enable_M2_volume/releases/tag/v1.0.9

@wjz304
Copy link
Contributor

wjz304 commented Sep 19, 2023

@007revad thx!

@wjz304
Copy link
Contributor

wjz304 commented Sep 19, 2023

If anyone has other questions, please re-create the issue. This issue is temporarily closed.

@wjz304 wjz304 closed this as completed Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants