Xpenology and SAS Controller - HBA


Recommended Posts

Wonder how we can get it to use UUID or /dev/disk/by-id instead of the /dev/sdf or WWN etc....

 

As that's always been a problem with linux.... Shuffling drive orders around unless you lock it to a specific UUID or by-id format.

 

Not as bad with madam I admit.... But still a hassle..... Especially when say you have a drive fail..... As you then play the guessing game of " which drive is it that's dead"

 

.

Link to post
Share on other sites

So I played around with a grub delay, but not much help since it doesn't initialize the card and spin up the disks until the mptsas driver loads.

 

I also noticed I have another issue with esxi which you probably don't. Because the is is installed on a virtual disk on a SCSI controller, it is reserving 16 ports for that SCSI controller. Which means I don't think I really have enough ports in the synoconfig. I did notice that all my disks except the one virtual boot drive were all 17+ numbered. I think I only have 20 set right now, so I'll play with that some more tomorrow. Still don't think it should effect the drives jumping numbers though.

 

I like the idea of using the UUID, but have to sleep for tonight. Maybe I'll check that out tomorrow.

Link to post
Share on other sites

Is it possible to change md0 or md1 wich are created during boot. I got 8 hdds on an 3ware 9550SXU and i can see only four disks. They are numbered from 9 -12. Im using the 4.3.3810 Beta 5 with hba drivers. on the controller the disks are set as single devices. i dont user the onboard intel sata controller because after installation my system hangs on checking the hdds on the sata ports.

Link to post
Share on other sites
So I played around with a grub delay, but not much help since it doesn't initialize the card and spin up the disks until the mptsas driver loads.

 

I also noticed I have another issue with esxi which you probably don't. Because the is is installed on a virtual disk on a SCSI controller, it is reserving 16 ports for that SCSI controller. Which means I don't think I really have enough ports in the synoconfig. I did notice that all my disks except the one virtual boot drive were all 17+ numbered. I think I only have 20 set right now, so I'll play with that some more tomorrow. Still don't think it should effect the drives jumping numbers though.

 

I like the idea of using the UUID, but have to sleep for tonight. Maybe I'll check that out tomorrow.

 

Can you set the virtual disks to be sata not SCSI?

In proxmox I could... But was limited to 6 or 8 sata drives

 

Did you play with the hex codes to set your number of drives ports?

 

.

Link to post
Share on other sites
Is it possible to change md0 or md1 wich are created during boot. I got 8 hdds on an 3ware 9550SXU and i can see only four disks. They are numbered from 9 -12. Im using the 4.3.3810 Beta 5 with hba drivers. on the controller the disks are set as single devices. i dont user the onboard intel sata controller because after installation my system hangs on checking the hdds on the sata ports.

 

Md0 is the boot partition

Md1 is the OS partition

 

So no your stuck with them

 

You will have to edit

 

Esata

Usbport

Internal port

 

Hex codes to be able to see any more than 12 (in total ) ports

 

Eg sounds like you have without knowing your hardware.

 

6 x sata ports

2 x IDE ports

Or

8 sata ports/esata

 

So adding the controller.... Naturally it only see's the 1st 4 ports of it.... 8 + 4 = 12

 

You will note the default in /etc.defaults/synoinfo.conf says

 

Internalport="0x0fff"

 

You will need to change that higher

 

Re read my 1st post.

 

.

Link to post
Share on other sites
Xpenology and SAS HBA Controller Guide

 

Motherboard has the following Ports

 

2 x White SATA Ports (G-SATA)

6 x Blue SATA Ports

2 x E-SATA Ports

1 x IDE Port

 

Initially had troubles with the ordering and naming of ATA / SCSI devices

So in the Bios I disabled the G-SATA and the E-SATA Ports

 

Leaving Just the 6 x SATA and IDE Running

 

OK on to the installation

Sections we are interested in are

 

any lines with “ata”

 

eg

ata1: SATA max UDMA/133 cmd 0xf800 ctl 0xf700 bmdma 0xf400 irq 19
ata2: SATA max UDMA/133 cmd 0xf600 ctl 0xf500 bmdma 0xf408 irq 19

 

and

 

any lines with either scsi 6:0:1:0 (SCSI ID) or sdf sdg (SCSI Disk name) etc

 

which on my system looked like

 

[   48.951449] sd 6:0:0:0: [sdg] Attached SCSI disk
[   64.175853] sd 6:0:1:0: [sdh] Attached SCSI disk
[   81.747607] sd 6:0:2:0: [sdi] Attached SCSI disk
[   96.979070] sd 6:0:3:0: [sdj] Attached SCSI disk
[  112.225771] sd 6:0:4:0: [sdk] Attached SCSI disk
[  127.505919] sd 6:0:5:0: [sdl] Attached SCSI disk
[  142.699620] sd 6:0:6:0: [sdm] Attached SCSI disk
[  147.877444] sd 7:0:0:0: [sdn] Attached SCSI disk
[  162.870125] sd 7:0:1:0: [sdo] Attached SCSI disk
[  177.689232] sd 7:0:2:0: [sdp] Attached SCSI disk
[  192.850133] sd 7:0:3:0: [sdq] Attached SCSI disk
[  207.879982] sd 7:0:4:0: [sdr] Attached SCSI disk
[  223.134753] sd 7:0:5:0: [sds] Attached SCSI disk
[  238.134077] sd 7:0:6:0: [sdt] Attached SCSI disk
[  253.164540] sd 7:0:7:0: [sdu] Attached SCSI disk

 

which equals

7 drives on 1st SAS controller (sdg to sdm)

8 drives on second SAS controller (sdn to sdu)

 

ATA drives sda sdb sdc sdd sde sdf are missing... as I do not have any drives connected to the 6 x Onboard Motherboard SATA Ports

 

Good all drives connected to the SAS Controller are detected by the system

 

Now we need to work out how many USB ports the system found, which on my system was 9

 

Now comes the fun part (as I am not very good at binary calculations)

 

This is how I found best to do is like so

 

Write down (or type into a text editor) something similar to this

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 USB PORTS
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 DRIVE PORTS

 

as it will help unscramble the mystery

 

Now from the info we gathered out of dmesg we can work out ports

 

eg

on my system there was found 22 Drive Ports

(6 x SATA on Motherboard + 16 x SAS Ports)

and 9 USB Ports

 

so I changed

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 USB PORTS
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 DRIVE PORTS

 

to

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 USB PORTS
0000 0000 0000 0000 0000 0011 1111 1111 1111 1111 1111 DRIVE PORTS

 

22 “Ones” counting from the right

 

Which when you lookup somewhere like here http://www.vlsm-calc.net/decbinhex.php

I converted to mean 3fffff

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 USB PORTS
0000 0000 0000 0000 0000 0011 1111 1111 1111 1111 1111 DRIVE PORTS = 3fffff

 

then same for the USB ports......

 

** Though we cannot have any “ones” occupying the same space **

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 USB PORTS
0000 0000 0000 0000 0000 0011 1111 1111 1111 1111 1111 DRIVE PORTS = 3fffff
changes into
0000 0000 0000 0111 1111 1100 0000 0000 0000 0000 0000 USB PORTS = 7fc00000
0000 0000 0000 0000 0000 0011 1111 1111 1111 1111 1111 DRIVE PORTS = 3fffff

 

now we have some hex codes to work with

7fc00000

3fffff

 

we can edit the synoinfo.conf files (there are 2 of them)

 

located @

 

/etc/synoinfo.conf

/etc.defaults/synoinfo.conf

 

edit the etc.defaults file

 

scroll down and find the 3 lines

 

esataportcfg=”0x1000”
usbportcfg="0xffe000"    
internalportcfg=”0xfff”

 

which I changed to what I calculated above

esataportcfg=”0x0000” <<< (no E-SATA Ports)
usbportcfg="0x7fc00000"  <<< (9 USB Ports)  
internalportcfg=”0x3fffff” <<< (22 Internal Drive Ports)

 

Hi Stanza

 

I have the following configuration system

Systemboard Configuration: MSI MS-7582/Fuzion

eSATA = 2

1394 = 1

SATAII = 10 (1 SATA system disk connected)

IDE = 1 (boot stick active)

USB = 10

LSI SAS 2008 Adapter = 8 ports (8 disk connected HBA MPT flashed. But see only 4 disks.)

 

I typed the "dmesg" command but can only find 4 HBA disks....even they not popup in diskmanager I can probablly get

them up by entering the hex code. The problem can be that only one channel works after flashing it to IT mode.

does it NEED to be visual already when showing the dmesg command or does that change when changing the sysinfo.conf file?

I mean. Do I need to concentrate on flashing the LSI SAS 2008 D2607 Fujitsu showing 8 disks after reboot or do I need to concentrate on the conf file hex editing?

Do you know how I should make the parameters or could you help me calculate how the parameters should be with this setup above.

I need to use later also all SATA ports with more disks. So they need to be active.

 

Hope for a little assistance.

Link to post
Share on other sites

I changed only the file /etc.defaults/synoinfo.conf

esataportcfg=”0x0000” <<< (no E-SATA Ports)

usbportcfg="0xffc0000" <<< (10 USB Ports)

internalportcfg=”0x3ffff” <<< (18 Internal Drive Ports)

 

And did go directly into DM and refreshed and get up 4 of 5 connected SAS disks....nothing else...

So I wonder if the crossflash on the SAS card only works on just one channel of that SAS card.. What do you think.

If so then all is explained and I can go ahead to flash it correct somehow first.

Agree?

Link to post
Share on other sites

I have a similar problem on another board.

 

What id's are your drives showing up as

 

Eg 1st sata controller drive show as

 

1.0.0.1

1.0.1.0

Etc

 

Second controller

 

2.0.0.1

2.0.1.0

 

When HBA loads my drives were

 

14.0.0.1

14.0.1.0

Etc

 

Disabled some sata controllers in bios and drives became

7.0.0.1

7.0.1.0

 

Which xpenology liked..... Must not like SD devices higher than a certain number?

 

Oh and sorry... Don't use skype or similar programs.

 

.

Link to post
Share on other sites

This is the outcome.

See pasted result from "dmesg".

Just to say I got the problem and it is on the flashing of the d2607 fujitsu LSI SAS card that show only LUN 0 one of the channels when booting up in dos and list connected drives.

I do not know how really to return back to original firmware and bios so I can check that the adapter is 100% ok on both channels.

Systemboard Configuration: MSI MS-7582/Fuzion

eSATA = 2

1394 = 1

SATAII = 10 (1 SATA system disk connected)

IDE = 1

USB = 10

LSI SAS 2008 Adapter = 8 ports (8 disk connected HBA MPT flashed. But see only 4 disks.)

 

 

internalports=

[ 0.724276] ata1: SATA max UDMA/133 abar m8192@0xfbefe000 port 0xfbefe100 irq 19

[ 0.724390] ata2: SATA max UDMA/133 abar m8192@0xfbefe000 port 0xfbefe180 irq 19

[ 1.344629] ata3: SATA max UDMA/133 abar m8192@0xfbffe000 port 0xfbffe100 irq 18

[ 1.344742] ata4: SATA max UDMA/133 abar m8192@0xfbffe000 port 0xfbffe180 irq 18

[ 1.954889] ata5: SATA max UDMA/133 cmd 0x7c00 ctl 0x7880 bmdma 0x7400 irq 19

[ 1.954979] ata6: SATA max UDMA/133 cmd 0x7800 ctl 0x7480 bmdma 0x7408 irq 19

[ 2.564060] ata7: SATA max UDMA/133 cmd 0x6c00 ctl 0x6880 bmdma 0x6400 irq 19

[ 2.564149] ata8: SATA max UDMA/133 cmd 0x6800 ctl 0x6480 bmdma 0x6408 irq 19

[ 3.173401] ata9: PATA max UDMA/100 cmd 0xdc00 ctl 0xd880 bmdma 0xd400 irq 16

[ 3.173491] ata10: PATA max UDMA/100 cmd 0xd800 ctl 0xd480 bmdma 0xd408 irq 16

[ 3.174764] ata11: PATA max UDMA/100 cmd 0xec00 ctl 0xe880 bmdma 0xe400 irq 19

[ 3.174878] ata12: PATA max UDMA/100 cmd 0xe800 ctl 0xe480 bmdma 0xe408 irq 19

[ 3.175815] ata13: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14

 

[ 3.444947] sd 5:0:0:0: [sdf] Attached SCSI disk

[ 18.105388] sd 14:0:0:0: [sdo] Attached SCSI disk

[ 18.388012] sd 14:0:1:0: [sdp] Attached SCSI disk

[ 18.498711] sd 14:0:2:0: [sdq] Attached SCSI disk

[ 19.660890] sd 14:0:3:0: [sdr] Attached SCSI disk

Link to post
Share on other sites

Now I a stuck with only getting 1 channel Active and see only 4 disks attached even both channels is filledwith disks. Activated bio on thecard and it shows only 4 disks so I have only one channel active. Do anyone know how to disable enable a specific channel on a SAS card?

It's a Fujitsu SAS d2607 adapter that is flashed fully ok as a LSI SAS 9211-8i HBA IT mode.

2118it.bin P18 = ok

But see only 4 disks. :oops:

Link to post
Share on other sites
sounds like you have either a bad cable... or the wrong type on the 2nd port

 

do you have SAS to SATA FORWARD breakout cable? not reverse?

 

swap cables......do you see the OTHER 4 drives only?

 

I have to check if the Cables should be mounted o specific port on the card. I guess it was just to mount any of the Cables....hmm I have to chec directly tonight.

The both Cables has worked without any problems Before so te Cables should be ok but I have dismounted them a few times and if there is need to have them on specific port I have to check and test that. If so then it solved but I do not Think the have to be on specific port right?

Link to post
Share on other sites

Stanza, I checked everything yesterday and also in the Bios at startup of the card and it really shows only the top port disks connected.....the bottom port of the Fujitsu D2607 flashed to LSI SAS 9211-9i HBA IT mode I only can see disk mounted on the top connector. All 8 disks is fine and shows ok from top connector the bottom do not find any disks. I do not even guess it searching on that port. I guess the top port is called LUN 0 and thats fine all disk found. The bottom connector should be called LUN 1 but no disk is found.

Of course I have connected the cables several times really firmly and checked also the cables, but sorry to say I have not got it to work. I also reflashed the hole card and still same problem that top connector is the only active.

Do anyone have any idea how to activate or check the connectors in a program or so?

 

I have to say one thing that I have in mind hear as well perhaps related to this problem.

The sbr file I put on the card to get it flashed is h200.sbr, my guess is that I get the problem due to that sbr file is placed to the card when flashing it.

Some of these h200 cards has only 1 connector. Do anyone have a h200.sbr file that is taken out from a othe model of card I know it works on this d267 with h200.sbr and also Dell Perc cards but not H700 card. I will try once more to see if it possible ot go back to d2607.sbr but I have tried before but will do it once more tonight. Else I need to buy a new card.

Prefeered IBM1015 model I guess. :sad:

Link to post
Share on other sites

I can now totally confirm that the Fujitsu LSI SAS Card D2607 after all type of flashing to IT mode has no possibility to activate more than LUN 0(port A).

So LUN 1(port B) can't be activated. So I am stuck with 4 ports to use nothing else.

Thats was comes out of 2 months work and investigation until now.

This weekend I mounted everything together and used 4 disks attached with beta5 of 4.3 DSM and HBA drivers and changed a fex hex codes and everything is working like a charm.

Thanks for your effort to make this OS working on other hardware.

 

Some other thing. Some have also mentioned that if a SAS card is flashed to IT mode it can use many more harddisks on it.

Is that true. In that case can it be possible that this card can use another cable on LUN0 for having 8 disks connected anyway?

Or is the max still 4 harddisk whatever I do?

Link to post
Share on other sites

I was able to go beyond 12 disk limit using this guide, but tested it only on VMware Workstation/Player using virtual LSI controller (SCSI) and RS3614xs+ model. Using the right hex code will also allow you to automatically grow by 3 ports every time you reach the maximum :smile:.

Link to post
Share on other sites
  • 2 weeks later...

Can someone give me the hexcodes to enter into the synoinfo.conf in /etc and etc.defaults for this configuration.

I only get 10 disks then the last 2 shows only up as SSD disks -1 degrees. My last problem is that I also have a 4TB disk also attached to internal SATA but that not even popup....perhaps maxdisk=16 or 24 not working...I have tried it all

Please send me some hexcode for this config and to work with a total of 14 disks.

 

I have the following configuration system

Systemboard Configuration: MSI MS-7582/Fuzion

eSATA = 2 ports

SATA = 10 ports(1 SATA system disk connected) Not all disk showing up last 2 wiht -1 degreees :smile:

IDE = 1 (nothing connected)

USB = 10 (boot stick active)

LSI SAS 2008 Adapter = 4 ports activated and 4 disks connected

 

I have tried this hexcodes but not luck still 2 last disks showing -1 degrees as ssd disks but they are internal sata disks.

 

I changed only the file /etc.defaults/synoinfo.conf becasue then when I update MD it shows directly if any changes in that file.

esataportcfg=”0x0000” <<< (no E-SATA Ports)

usbportcfg="0xffc0000" <<< (10 USB Ports)

internalportcfg=”0x3ffff” <<< (18 Internal Drive Ports)

:ugeek:

Link to post
Share on other sites

Can someone give me the hexcodes to enter into the synoinfo.conf in /etc and etc.defaults for this configuration.

I only get 10 disks then the last 2 shows only up as SSD disks -1 degrees. My last problem is that I also have a 4TB disk also attached to internal SATA but that not even popup....perhaps maxdisk=16 or 24 not working...I have tried it all

Please send me some hexcode for this config and to work with a total of 14 disks.

 

I have the following configuration system

Systemboard Configuration: MSI MS-7582/Fuzion

eSATA = 2 ports

SATA = 10 ports(1 SATA system disk connected) Not all disk showing up last 2 wiht -1 degreees :smile:

IDE = 1 (nothing connected)

USB = 10 (boot stick active)

LSI SAS 2008 Adapter = 4 ports activated and 4 disks connected

 

I have tried this hexcodes but not luck still 2 last disks showing -1 degrees as ssd disks but they are internal sata disks.

 

I changed only the file /etc.defaults/synoinfo.conf becasue then when I update MD it shows directly if any changes in that file.

esataportcfg=”0x0000” <<< (no E-SATA Ports)

usbportcfg="0xffc0000" <<< (10 USB Ports)

internalportcfg=”0x3ffff” <<< (18 Internal Drive Ports)

:ugeek:

Link to post
Share on other sites

Need more info

 

Which ACTUAL SAS controller are you using? I havn't seen a 4 port 2008 controller......is it a 4 port or are you only using 4 ports of an 8 port controlller?

 

Which ports are drives connected too? all 10 x SATA + 4 on the SAS controller?

 

How are they connected? eg direct by cables? or drives are in backplanes.....and do the backplanes have any SAS expander?

 

.if you have troubles, most find it best to go higher on the hex code than the ports you have.

 

you have

esataportcfg=”0x0000” <<< (no E-SATA Ports), but you say the board has 2 x E-SATA.......are any drives connected? if not it's best to dissable the ports in the BIOS

 

.

Link to post
Share on other sites

Need more info

 

Which ACTUAL SAS controller are you using? I havn't seen a 4 port 2008 controller......is it a 4 port or are you only using 4 ports of an 8 port controlller?

 

Which ports are drives connected too? all 10 x SATA + 4 on the SAS controller?

 

How are they connected? eg direct by cables? or drives are in backplanes.....and do the backplanes have any SAS expander?

 

.if you have troubles, most find it best to go higher on the hex code than the ports you have.

 

you have

esataportcfg=”0x0000” <<< (no E-SATA Ports), but you say the board has 2 x E-SATA.......are any drives connected? if not it's best to dissable the ports in the BIOS

 

.

Link to post
Share on other sites

I have the Fujitsu 8port D2607 card but after IT flash it can only activate one LUN with 4 ports thats fine. Can be done better.

After that I have 10 internal SATA ports disk added to all ports.

10 USB ports. 1used for boot stick :smile:

I have now laborate but can only see the 12 disks not the last 2 internal SATA disks.

I have tried exchanged the disks and the problem follows that the last 2 internal SATA ports is not showing in the DM.

I have set maxdisk to 16 no change and also tried many different hexcode parameters. tried all hehe and also added so I have 23 internal ports and 10 usb ports and also tried esataports=0x0010 and 0x0100 then even more disk disappear :eek:)

 

So now I miss 2 disks that I would like to get going like you showed before...but got problem rebooting :smile: for heat problems.

Anyway I need help to get them up and online for raiding in my only volume SHR-2.

How can we fix this?

Link to post
Share on other sites

I have the Fujitsu 8port D2607 card but after IT flash it can only activate one LUN with 4 ports thats fine. Can be done better.

After that I have 10 internal SATA ports disk added to all ports.

10 USB ports. 1used for boot stick :smile:

I have now laborate but can only see the 12 disks not the last 2 internal SATA disks.

I have tried exchanged the disks and the problem follows that the last 2 internal SATA ports is not showing in the DM.

I have set maxdisk to 16 no change and also tried many different hexcode parameters. tried all hehe and also added so I have 23 internal ports and 10 usb ports and also tried esataports=0x0010 and 0x0100 then even more disk disappear :eek:)

 

So now I miss 2 disks that I would like to get going like you showed before...but got problem rebooting :smile: for heat problems.

Anyway I need help to get them up and online for raiding in my only volume SHR-2.

How can we fix this?

Link to post
Share on other sites
I have the Fujitsu 8port D2607 card but after IT flash it can only activate one LUN with 4 ports thats fine. Can be done better.

After that I have 10 internal SATA ports disk added to all ports.

10 USB ports. 1used for boot stick :smile:

I have now laborate but can only see the 12 disks not the last 2 internal SATA disks.

I have tried exchanged the disks and the problem follows that the last 2 internal SATA ports is not showing in the DM.

I have set maxdisk to 16 no change and also tried many different hexcode parameters. tried all hehe and also added so I have 23 internal ports and 10 usb ports and also tried esataports=0x0010 and 0x0100 then even more disk disappear :eek:)

 

So now I miss 2 disks that I would like to get going like you showed before...but got problem rebooting :smile: for heat problems.

Anyway I need help to get them up and online for raiding in my only volume SHR-2.

How can we fix this?

 

ok for 23 internal ports

 

try 0xFFFFFF 24 ports

 

and usb as

 

0xFFF000000 12 ports

 

E-sata cannot overlap usb or internal hance why your 0x0010 and 0x0100 didn't work

 

to enable E-sata you would have to push USBports further left (add an extra 0 to the right) eg 0xFFF0000000

 

and e-sata would become 0x01000000 etc

Link to post
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.