Jump to content
XPEnology Community

DSM detect ASM1602 as /dev/sdn


Florian Hahner

Recommended Posts

hi guys,

 

before start, my config

 

grafik.png.290f352be83921d49a615a6906d0bb75.png

 

i use the vmware standard scsi controller for the 50MB HDD and a additional 12GB Disk.

 

[   11.023091] scsi4 : ioc0: LSI53C1030 B0, FwRev=01032920h, Ports=1, MaxQ=128, IRQ=17
[   11.052676] scsi 4:0:0:0: Direct-Access     VMware   Virtual disk             2.0  PQ: 0 ANSI: 6
[   11.052684] scsi target4:0:0: Beginning Domain Validation
[   11.052934] scsi target4:0:0: Domain Validation skipping write tests
[   11.052935] scsi target4:0:0: Ending Domain Validation
[   11.052952] scsi target4:0:0: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, offset 127)
[   11.054216] sd 4:0:0:0: [sda] 102400 512-byte logical blocks: (52.4 MB/50.0 MiB)
[   11.054344] sd 4:0:0:0: [sda] Write Protect is off
[   11.054347] sd 4:0:0:0: [sda] Mode Sense: 61 00 00 00
[   11.054379] sd 4:0:0:0: [sda] Cache data unavailable
[   11.054380] sd 4:0:0:0: [sda] Assuming drive cache: write through
[   11.056484] sd 4:0:0:0: [sda] Cache data unavailable
[   11.056496] sd 4:0:0:0: [sda] Assuming drive cache: write through
[   11.057651] scsi 4:0:1:0: Direct-Access     VMware   Virtual disk             2.0  PQ: 0 ANSI: 6
[   11.057657] scsi target4:0:1: Beginning Domain Validation
[   11.057970] scsi target4:0:1: Domain Validation skipping write tests
[   11.057972] scsi target4:0:1: Ending Domain Validation
[   11.057991] scsi target4:0:1: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, offset 127)
[   11.058853]  sda: sda1 sda2 sda3
[   11.065311] sd 4:0:1:0: [sdb] 25165824 512-byte logical blocks: (12.8 GB/12.0 GiB)
[   11.065407] sd 4:0:1:0: [sdb] Write Protect is off
[   11.065410] sd 4:0:1:0: [sdb] Mode Sense: 61 00 00 00
[   11.065424] sd 4:0:1:0: [sdb] Cache data unavailable
[   11.065426] sd 4:0:1:0: [sdb] Assuming drive cache: write through
[   11.066852] sd 4:0:0:0: [sda] Cache data unavailable
[   11.066854] sd 4:0:0:0: [sda] Assuming drive cache: write through
[   11.067750] sd 4:0:0:0: [sda] Attached SCSI disk
[   11.069857] sd 4:0:1:0: [sdb] Cache data unavailable
[   11.069859] sd 4:0:1:0: [sdb] Assuming drive cache: write through
[   11.103995]  sdb: sdb1 sdb2
[   11.104812] sd 4:0:1:0: [sdb] Cache data unavailable
[   11.104814] sd 4:0:1:0: [sdb] Assuming drive cache: write through
[   11.105696] sd 4:0:1:0: [sdb] Attached SCSI disk

Both are correctly recognized as SDA and SDB

 

Furthermore i passtrough a ASM1602 Controller directly into the VM. The connect hard drive is also detected.

 

[    3.434074] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    3.434201] ata2.00: ATA-9: WDC WD40EZRX-00SPEB0, 80.00A80, max UDMA/133
[    3.434205] ata2.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[    3.434364] ata2.00: configured for UDMA/133
[    3.434529] scsi 1:0:0:0: Direct-Access     WDC      WD40EZRX-00SPEB0         80.0 PQ: 0 ANSI: 5
[    3.435149] sd 1:0:0:0: [sdn] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
[    3.435151] sd 1:0:0:0: [sdn] 4096-byte physical blocks
[    3.435187] sd 1:0:0:0: [sdn] Write Protect is off
[    3.435188] sd 1:0:0:0: [sdn] Mode Sense: 00 3a 00 00
[    3.435203] sd 1:0:0:0: [sdn] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.437169] ata3: send port disabled event
[    3.437390] ata4: send port disabled event
[   10.790930]  sdn: sdn1
[   10.791309] sd 1:0:0:0: [sdn] Attached SCSI disk
[   10.791331] registered taskstats version 1

So, the drive is mapped as SDN.

 

My problem is, that this drive is shown as external sata drive.

 

IG-88 give me the hint with HDD extend via synoinfo.conf. I tried several times. And even killed my whole installation.

 

I dont really understand the existing tutorials. Here are my ideas

 

as i have 2x internal drive (50MB + 12GB HDD ) and 2x internal drive on pci controller i sum up with 4 drives, so for internalportcfg i use

 

0000 0000 0000 0000 0000 0000 0000 1111 (internalportcfg)

 

as i have no esata ports i set 0

0000 0000 0000 0000 0000 0000 0000 0000 (esataportcfg)

 

admin@srv-nas-003:/$ lsusb
|__usb1          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:02:02.0) hub
|__usb2          1d6b:0001:0310 09  1.10   12MBit/s 0mA 1IF  (uhci_hcd 0000:02:00.0) hub
  |__2-1         0e0f:0003:0103 00  1.10   12MBit/s 0mA 1IF  (VMware VMware Virtual USB Mouse ffffffd1ffffffa2ffffffd7ffffffb8)
  |__2-2         0e0f:0002:0100 09  1.10   12MBit/s 0mA 1IF  ( ffffffd6ffffffa3ffffffebffffffcb) hub
admin@srv-nas-003:/$

If i understand this correctly then i have to mapped 4 devices

 

0000 0000 0000 0000 0000 0000 1111 0000 (usbportcfg)

 

But this wont work. What do i wrong ?

 

best regards

 

 

 

 

 

 

grafik.png

Link to comment
Share on other sites

hi,

 

drives are not important, its about ports

whatever is counted in that vm, the fact that you asm1062 drive was sdn indicates your port of the asm controller where above the default 12 port count and so the drive on the asm can't be a internal driver

default internal in bin

0000 0000 0000 0000 0000 1111 1111 1111

a blunt way, but ok for testing (and without proper logs !!!) would be to define 24 internal ports, set esata to 0 and dame for usb (just for testing) also the max drive has to be set to 24

0000 0000 1111 1111 1111 1111 1111 1111

maxdisks=24

internalportcfg=0xffffff

 

with dmesg log it would be possible to see how many "ports" come from something erlse (scsi controller?)

in virtualbox i use a ide drive (piix3) instead of the usb boot stick (3615/3617) and a lsi-logic scsi for the dsm disks, for 916+ vm its all ahci sata, 50mb for boot (instead of usb) and following sata ports for dsm drives

dont know whats possible in esxi

 

 

Link to comment
Share on other sites

So. I do a little testing. I removed the ASM1602 ans insert a VMware SCSI Controller with an 8GB HDD.

 

grafik.thumb.png.1cd7f78a2a802293044f7ed1260ca9fc.png

 

So. Have a look at dmesg

 

[    2.902150] sd 0:0:0:0: [sda] Cache data unavailable
[    2.902152] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    2.902994] scsi 0:0:1:0: Direct-Access     VMware   Virtual disk             2.0  PQ: 0 ANSI: 6
[    2.903000] scsi target0:0:1: Beginning Domain Validation
[    2.903232] scsi target0:0:1: Domain Validation skipping write tests
[    2.903234] scsi target0:0:1: Ending Domain Validation
[    2.903253] scsi target0:0:1: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, offset 127)
[    2.905926] sd 0:0:1:0: [sdb] 25165824 512-byte logical blocks: (12.8 GB/12.0 GiB)
[    2.906012] sd 0:0:1:0: [sdb] Write Protect is off
[    2.906014] sd 0:0:1:0: [sdb] Mode Sense: 61 00 00 00
[    2.906029] sd 0:0:1:0: [sdb] Cache data unavailable
[    2.906030] sd 0:0:1:0: [sdb] Assuming drive cache: write through
[    2.908084] sd 0:0:1:0: [sdb] Cache data unavailable
[    2.908087] sd 0:0:1:0: [sdb] Assuming drive cache: write through
[    2.910046] mptbase: ioc1: Initiating bringup
[    2.929004] ioc1: LSI53C1030 B0: Capabilities={Initiator}
[    2.935299]  sda: sda1 sda2 sda3
[    2.936340] sd 0:0:0:0: [sda] Cache data unavailable
[    2.936343] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    2.936702] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.937743]  sdb: sdb1 sdb2
[    2.939118] sd 0:0:1:0: [sdb] Cache data unavailable
[    2.939119] sd 0:0:1:0: [sdb] Assuming drive cache: write through
[    2.939572] sd 0:0:1:0: [sdb] Attached SCSI disk
[    2.969296] scsi1 : ioc1: LSI53C1030 B0, FwRev=01032920h, Ports=1, MaxQ=128, IRQ=18
[    2.998125] scsi 1:0:0:0: Direct-Access     VMware   Virtual disk             2.0  PQ: 0 ANSI: 6
[    2.998134] scsi target1:0:0: Beginning Domain Validation
[    2.998515] scsi target1:0:0: Domain Validation skipping write tests
[    2.998516] scsi target1:0:0: Ending Domain Validation
[    2.998538] scsi target1:0:0: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, offset 127)
[    2.999553] sd 1:0:0:0: [sdc] 16777216 512-byte logical blocks: (8.58 GB/8.00 GiB)
[    2.999655] sd 1:0:0:0: [sdc] Write Protect is off
[    2.999657] sd 1:0:0:0: [sdc] Mode Sense: 61 00 00 00
[    2.999679] sd 1:0:0:0: [sdc] Cache data unavailable
[    2.999681] sd 1:0:0:0: [sdc] Assuming drive cache: write through
[    3.001098] sd 1:0:0:0: [sdc] Cache data unavailable
[    3.001100] sd 1:0:0:0: [sdc] Assuming drive cache: write through
[    3.008084]  sdc: unknown partition table
[    3.008334] sd 1:0:0:0: [sdc] Cache data unavailable
[    3.008336] sd 1:0:0:0: [sdc] Assuming drive cache: write through
[    3.008718] sd 1:0:0:0: [sdc] Attached SCSI disk

As i see, there is a second scsi controller. Also the third HDD is mapped as /dev/sdc

grafik.png.03b8053826d522ee6fea9c05df4de8ee.png

 

There is a difference is the controller a SCSI or SATA one. Maybe i'll modifiy the udev rules.

 

*** Update ***

I revert the changes (now only one scsi controller and passtrough of asm1026)

It realy seems that udev make a difference between the both disks

root@srv-nas-003:~# udevadm info --query=property --name /dev/sdn
DEVNAME=/dev/sdn
DEVPATH=/devices/pci0000:00/0000:00:15.0/0000:03:00.0/ata2/host1/target1:0:0/1:0:0:0/block/sdn
DEVTYPE=disk
ID_PART_TABLE_TYPE=gpt
MAJOR=8
MINOR=208
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sd
PHYSDEVPATH=/devices/pci0000:00/0000:00:15.0/0000:03:00.0/ata2/host1/target1:0:0/1:0:0:0
SUBSYSTEM=block
SYNO_DEV_DISKPORTTYPE=USBHUB
SYNO_INFO_PLATFORM_NAME=bromolow
SYNO_KERNEL_VERSION=3.10
USEC_INITIALIZED=205106

 

root@srv-nas-003:~# udevadm info --query=property --name /dev/sdb
DEVNAME=/dev/sdb
DEVPATH=/devices/pci0000:00/0000:00:10.0/host4/target4:0:1/4:0:1:0/block/sdb
DEVTYPE=disk
ID_PART_TABLE_TYPE=dos
MAJOR=8
MINOR=16
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sd
PHYSDEVPATH=/devices/pci0000:00/0000:00:10.0/host4/target4:0:1/4:0:1:0
SUBSYSTEM=block
SYNO_DEV_DISKPORTTYPE=SATA
SYNO_INFO_PLATFORM_NAME=bromolow
SYNO_KERNEL_VERSION=3.10
USEC_INITIALIZED=202768

Remember /dev/sdb is the 12GB HDD an VMWare SCSI Controller and /dev/sdn is 4TB HDD on ASM1062

 

SDN = SYNO_DEV_DISKPORTTYPE=USBHUB

SDB = SYNO_DEV_DISKPORTTYPE=SATA

Edited by Florian Hahner
Link to comment
Share on other sites

So maybe IG-88 is right. I need to modify the config. This is the original synoinfo.conf

 

 

grafik.png.6754f6c02f9c6dfd282133732553b49e.png

 

If /dev/sda maps the index 1 then /dev/sdn maps the index  14, which is programmed as esata port. so we must change

 

grafik.png.2d655b1cf800ef837d10126e8ff1566c.png

 

Also we must increase the maxdisks parameter from 12 to 16

 

So. Give it a try.

 

 

Link to comment
Share on other sites

hi,

 

well not a nice solution, if you update with a full *.pat file (~200MB, like 6.1.3->6.1.4) you will loose your modification and the 12 disk default will be back

i guess there must be better solutions as there are loads of esxi users and i dont expect all of them used that kind of mod

is there any indication in dmesg about sdc, sdd, sde, ...

 

what happens if you make you boot device ide or sata (the 50MB) and the only other controller with one disk is the asm1062?

Link to comment
Share on other sites

So. As you propose, i build a VM witd IDE Disks instead of SCSI Disks

 

grafik.png.ba60881247b5bc8b1ef5511b8512ea55.png

 

After start this VM DSM Installation says "No Disc present"

 

grafik.thumb.png.848be6f7f096d09021f590c819cd4aff.png

 

So in the next step, i remove the 8GB IDE HDD, install SCSI Controller, and add a 8GB SCSI HDD.

 

Now i'm able to install DSM. We conclude that DSM will not recognize or accept IDE HDDs.

 

After installation, have a look at the ASM1026 Controller.

 

[    3.427640] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    3.427784] ata2.00: ATA-9: WDC WD40EZRX-00SPEB0, 80.00A80, max UDMA/133
[    3.427789] ata2.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[    3.427972] ata2.00: configured for UDMA/133
[    3.428137] scsi 1:0:0:0: Direct-Access     WDC      WD40EZRX-00SPEB0         80.0 PQ: 0 ANSI: 5
[    3.428761] sd 1:0:0:0: [sdn] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
[    3.428763] sd 1:0:0:0: [sdn] 4096-byte physical blocks
[    3.428798] sd 1:0:0:0: [sdn] Write Protect is off
[    3.428799] sd 1:0:0:0: [sdn] Mode Sense: 00 3a 00 00
[    3.428814] sd 1:0:0:0: [sdn] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.430540] ata3: send port disabled event
[    3.430865] ata4: send port disabled event
[    3.448414]  sdn: sdn1 sdn2 sdn3
[    3.449443] sd 1:0:0:0: [sdn] Attached SCSI disk

 

root@srv-nas-004:~# udevadm info --query=property --name /dev/sdn
DEVNAME=/dev/sdn
DEVPATH=/devices/pci0000:00/0000:00:15.0/0000:03:00.0/ata2/host1/target1:0:0/1:0:0:0/block/sdn
DEVTYPE=disk
ID_PART_TABLE_TYPE=gpt
MAJOR=8
MINOR=208
PHYSDEVBUS=scsi
PHYSDEVDRIVER=sd
PHYSDEVPATH=/devices/pci0000:00/0000:00:15.0/0000:03:00.0/ata2/host1/target1:0:0/1:0:0:0
SUBSYSTEM=block
SYNO_DEV_DISKPORTTYPE=ESATA
SYNO_INFO_PLATFORM_NAME=bromolow
SYNO_KERNEL_VERSION=3.10
USEC_INITIALIZED=21128

So. Different count of SCSI Drives but still mapping of 4TB HDD on /dev/sdn.

 

I'll try to understand which rule maps my 4TB to /dev/sdn and come back later...

 

Good night from germany.

 

Florian

 

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
Reply to this topic...

×   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...