Jump to content
XPEnology Community
  • 0

sataportmap and diskidx again


gorski

Question

Hi All,

I have 2 baremetal machines who work very well ...

as hardware i have intel sata on motherboard with 6 ports + HBA card with 8 sata ports

what i need to do to show correct numbering when i preview hdd info page ?

disk 7 is not available on both machines

sataportmap=6  diskidxmap=00 in both machines. Using latest DSM

 

 

Screenshot%202024-01-14%2011535511.pngScreenshot%202024-01-14%201512271.png

Thanks

@Peter Suh

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

[HBA Recommended settings from flyride]

 

Not EUDEV , Use Only DDSML (If you use TCRP-mshell )

 

"SataPortMap": "12",

"DiskIdxMap": "1000",

"SasIdxMap: "0"

 

"MaxDisks: "24"

 

 

If you do this and still cannot see the disk,

I recommend switching to the SA6400 model that supports disk automapping.
There is no need for manual settings such as SataPortMap, and it supports HBA.

Link to comment
Share on other sites

  • 0

It seems there is still some missunderstanding with SataPortMap values.

 

SataPortMap works with 1 digit matching a sata board.

The number you assign limits the number or disks detected on each sata board.

 

I you set :

12 : First sata board will only have one disk detected, and second sata board will detect only 2 disks.

 

Your current settings limits your sataboard to 6 disks max, and 2nd Sata board is not configured at all, so default is used.

 

In the beginning you should try to remove SataPortMap and DiskIdxMap and check how it is handled/detected.

 

If with this (wrong) settings you only see 6 disks instead of the 7... maybe it means sata board are detected reversed, and your first sata is actually the 8 ports.

 

So SataPortMap would be more like 86 (8 disks for first sata board and 6 disks for 2nd sata board).

 

Regarding DiskIdxMap, it works with 2 digits for each sata board. and match the one digit from SataPortMap

This parameter defines the start position of the first disk from each sata board.

 

If you set DiskIdxMap = 1000

you actually say :

First disk sata board 1 will begin in position 10.

First disk sata board 2 will begin in position 0.

 

As you already know, disks are labelled with letters starting from /dev/sda

 

So position 0 is "a" and position 10 is like "k"

 

So regarding DiskIdxMap=1000 you force first sata board disk 1 to begin at /dev/sdk, and you force first disk from sata board 2 to begin at /dev/sda

 

and depending of the SataPortMap value you set earlier, you may limit available disks...

If your sata controller has 8 ports but you limit SataPortMap single digit to 6, last 2 slots from your sata board won't be detected.

 

You should never randomly take these values from a tutorial without understanding them.

 

Most of the time there are not needed, they only help to "order" the disks in DSM GUI to make something cosy.

Only some times you have to specify it to fix undetected sata controllers or disks when there is like 3 sata boards etc...

 

As an example on Proxmox Q35 VM machines, there is a dummy Sata board controller unused.

When you don't set SataPortMap / DiskIdxMap, the first disk shown in DSM GUI is always empty.

So on Q35 VM machine, configuring it as "SataPortMap=18 DiskIdxMap=1000"

you say there is only one disk on 1 sata bard controller, and move the first dummy sata controller board to /dev/sdk

And you say there is 8 disks on sata controller board 2 (the real one used on the VM) and says the first disk start at /dev/sda

But this is only to have something "pretty" on DSM GUI.

You could let it without any settings, the first slot(s) would be empty in DSM, but it would work as usual.

 

Edited by Orphée
Link to comment
Share on other sites

  • 0

n

So.

I populated port 6 from motherboard sata controler and all in HBA card.

satamap and driveidxmap are empty

Command line: withefi earlyprintk syno_hw_version=RS4021xs+ console=ttyS0,115200n8 netif_num=3 pid=0x3379 earlycon=uart8250,io,0x3f8,115200n8 syno_port_thaw=1 mac2=A0369F4E8D08 mac3=A0369F4E8D0A mac1=F832E4A093F0 sn=2250T2RCZFQSY vid=0x23a5 elevator=elevator loglevel=15 HddHotplug=0 DiskIdxMap syno_hdd_detect=0 vender_format_version=2 syno_hdd_powerup_seq=0 log_buf_len=32M root=/dev/md0 SataPortMap skip_vender_mac_interfaces=0,1,2,3,4,5,6,7 panic=5

 

result.same as before

 

Screenshot%202024-01-15%20175141.png

 

with

"SataPortMap": "12",

"DiskIdxMap": "1000",

"SasIdxMap: "0"

"MaxDisks: "24"

 

get mess :) one disk is missing ... but they count good no holes between

 

Screenshot%202024-01-15%20180326.png

 

 

 

"SataPortMap": "86",

"DiskIdxMap": "0600",

"SasIdxMap: "0"

 

result is here ... bad

 

Screenshot%202024-01-15%20182414.png

I try and many others 618 816 with no luck :)

 

sa6300 is not option too

not see disks

 

Screenshot%202024-01-15%20171536.png

bonus pics

 

20240115_185926.jpg

 

20240115_190005.jpg

 

any suggestion ?

Link to comment
Share on other sites

  • 0

easy :)

 0.000000] Command line: withefi earlyprintk syno_hw_version=RS4021xs+ console=ttyS0,115200n8 netif_num=3 pid=0x3379 earlycon=uart8250,io,0x3f8,115200n8 syno_port_thaw=1 mac2=A0369F4E8D08 mac3=A0369F4E8D0A mac1=F832E4A093F0 sn=2250T2RCZFQSY vid=0x23a5 elevator=elevato
r loglevel=15 SasIdxMap=0 HddHotplug=0 DiskIdxMap=00 syno_hdd_detect=0 vender_format_version=2 syno_hdd_powerup_seq=0 log_buf_len=32M root=/dev/md0 SataPortMap=8 skip_vender_mac_interfaces=0,1,2,3,4,5,6,7 panic=5

 

sasidxmap is here ...

 

Screenshot%202024-01-15%20214752.png

one disk less :) no nice picture in rack panel ... :)

other ? this /dev/synoboot eat latter .. :)

 

 

 

 

  • Confused 1
Link to comment
Share on other sites

  • 0

i change this in /etc/synoinfo.conf and /etc.defaults/synoinfo.conf after reboot i have default values except usbportconfig ? what must be reason ?

 

before reboot
ash-4.4# cat /etc/synoinfo.conf | grep 'portcfg'
esataportcfg="0x0000000000"
internalportcfg="0x000001FE3F"
usbportcfg="0x00000001C0"
ash-4.4# cat /etc.defaults/synoinfo.conf | grep 'portcfg'
esataportcfg="0x0000000000"
internalportcfg="0x000001FE3F"
usbportcfg="0x00000001C0"

 

after reboot

esataportcfg="0x00"
internalportcfg="0xffff"
usbportcfg="0x00000001C0"

 

 

Link to comment
Share on other sites

  • 0
3 hours ago, gorski said:

i change this in /etc/synoinfo.conf and /etc.defaults/synoinfo.conf after reboot i have default values except usbportconfig ? what must be reason ?

 

before reboot
ash-4.4# cat /etc/synoinfo.conf | grep 'portcfg'
esataportcfg="0x0000000000"
internalportcfg="0x000001FE3F"
usbportcfg="0x00000001C0"
ash-4.4# cat /etc.defaults/synoinfo.conf | grep 'portcfg'
esataportcfg="0x0000000000"
internalportcfg="0x000001FE3F"
usbportcfg="0x00000001C0"

 

after reboot

esataportcfg="0x00"
internalportcfg="0xffff"
usbportcfg="0x00000001C0"

 

 

Need confirmation from @Peter Suh. I don’t know much about whether mshell has an automatic setting mechanism. If so, how to skip them?

Edited by wjz304
Link to comment
Share on other sites

  • 0
1 hour ago, wjz304 said:

Need confirmation from @Peter Suh. I don’t know much about whether mshell has an automatic setting mechanism. If so, how to skip them?

 

 

This configuration file appears to be interfering with manually changed settings.

 

For RS4021xs+ only, I will clear the value so that it does not interfere with this manual setting.
Would you like to try rebuilding the loader?

 

https://github.com/PeterSuh-Q3/redpill-load/commit/110e232b3943dd1f30766b7dd6475c7b8692be68

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...