Jump to content
XPEnology Community

[SOLVED] Need help mapping drives for DSM 6.0.2


mmedeiro

Recommended Posts

Hi,

 

I'm currently on a 5 bay Syno + NAS with 2 dual bay expansion units for a total of 9 drives in a single SHS raid. I'm looking to move this to a PC/XPEnology setup without transferring the data to new drive. I want to physically move the drives to the newly created NAS while keeping the RAID intact.

 

Hardware

2011 Sabertooth X79 with a I7 4820k CPU

LSI00244 16 port sata controller

 

Is it possible to get 2 raid PCI controllers and run them in tandem, i.e. 2 8-port raid cards for a total of 16 ports while running 1 raid array across the 2 cards. At this point im not interested in splitting the raid arrays i would like to continue with the monster i created.

 

I'm hoping this is possible, if not; thats cool, i guess i'll have to move the 32tb of data via transfer which should take roughly 12 centuries lol.

 

 

[spoiler=More info]Hardware

x79 Sabertooth motherboard with an Intel 4820k CPU

Intel® X79 chipset :

2 x SATA 6Gb/s port(s), brown

4 x SATA 3Gb/s port(s), black

Support Raid 0, 1, 5, 10

Marvell® PCIe 9128 controller :

2 x SATA 6Gb/s port(s), gray

 

32 GB of ram

2 8 port LSI PSI Sata cards SAS9211-8I

 

Here is my dmesg exported

https://mega.nz/#!q8p1XYgS!xjCMRdLxQL41 ... _zEcGIQch0

 

Currently only the Marvell PCIe ports are recognizing drives, the other on-board ports are not recognized in DSM

 

I need to correctly map the sataports and transfer a 9 disk SHR-2 array from my old Syno Diskstation to this Xpenology station.

 

Link to comment
Share on other sites

Correct. All 9 are currently on 1 SHR-2 raid. I'm looking to move the raid from a Syno box to a Xpenoplogy machine. If i can do this using 2 raid cards that are cheaper and easier to source rather than a single card with all 12 ports that would be the last piece to the puzzle.

 

Thanks

Link to comment
Share on other sites

If you don't got them yet, you can find in my signature a model of SATA Extension Card that is working fine with XPenology.

 

I don't see at this point why your migration may fail. Let's take the time to have one more advice to be sure.

 

 

Of course you will take care of correctly config your Grub with the good combination of

SataPortMap=422

 

The first 4 representing the number of your SATA drives wired on your motherboard, the nexts the number of you SATA drives wired on secondary cards.

E.G. : 5 SATA on motherboard, 4 on secondary SATA Card => SataPortMap=52

Link to comment
Share on other sites

Great.

 

Here is my Mobo

Intel® X79 chipset :

2 x SATA 6Gb/s port(s), brown

4 x SATA 3Gb/s port(s), black

Support Raid 0, 1, 5, 10

Marvell® PCIe 9128 controller :

2 x SATA 6Gb/s port(s), gray

 

I also have 2 on the rear panel that i would not be using.

 

I will be adding 3 of the cards you suggested for 6 additional ports soo..

 

SataPortMap=86 or SataPortMap=8222?

 

Thanks,

Link to comment
Share on other sites

Haha I just started looking at the boxes and now I'm at a bit of a road block. The mobo, ram and CPU are being sourced from my old rig so my only costs will be the box, PSU and PCI sata cards. I wanted to spend less than $500 on the box but it looks like a 16 drive box is going to run me much more than that.

Link to comment
Share on other sites

hi,

 

there is no "tandem" its just software raid on sata ports, if there is more then one controller providing the ports the order of the controller/ports might be important

(depending on how you specify it in the syno config file, the default is 12 ports in a row, behind that the sata ports and then the usb ports)

 

you might take thist into consideration if you want to move your drives directly to a new hardware

viewtopic.php?f=2&t=16933

 

afaik the SataPortMap is about how the ports are spread over the controllers and the order of the ports

in the case of your board (you have not specifiyd the brand) it might be

SataPortMap=242 or SataPortMap=62

the 88SE9128 chip has only 2 ports so the 2 external ports you mention might have a diffrent (additional) controller you did not specify or there are "switchable" from 2 internal to 2 extrenal (sometimes seen this with controller cards, not so often on boards - provide more/exaxt information and the predictions get better)

for 9 disks/ports you still missing ports so you will need a additional controller with at least 2 ports

if you have all ports in a row, fill the "slots" (ports) without a gap and specify the ports (internal sata, external sata, usb ports, ->

) in the config correctly, then to set SataPortMap might be of no importance

 

you should realy be carefull if you do this without a backup and tranfering the drives directly, if you do you should map the order of the drives from the "old" system and should do a test installtion on the new system with one drive (test-installing the dsm 6.x) and map the ports with a additional drive so you know exactly the order of the ports in you new system, after you are shure about the port mapping you could put in your 9 drives and install the new dsm to it (keeping the data raid)

imho you should be prepared that the synology dsm riad fails and you have to use an live linux trom usb to manualy reasemble/recover your data raid and backup/offload it (after your first attempt of directly migarting fails spectecular)

 

beside putting in all 9 drives in install the new dsm (without the option to modify the configuration first, the first boot will be with the 12 drive default of the 3615/3617) there is also the option to install one addtional (10th) drive first, modify the config according to the new hadware, put the 9 old drives in and see if the system comes up booting from the one drive and "spreading" the working system to the 9 "additional" drives (expanding the system partition raid1 from 1 drive to 10 drives) if that works you will have the system on all 10 drives an can remove the 10th drive

it might be possible to test all this in a vm (virtualbox) before doing it with the baremetal but it will take some time

its much safer and easyer to have a backup of all date

Link to comment
Share on other sites

Wow. Thanks for the reply. I would not be devastated if i lost the data to be honest. I'm worried the sata ports on the rear panel will some how effect my setup and break the 9 disk array. I have the 8 ports on the board and i'm looking to add 4 via 2 pci cards. I want to expand the disk array to 12 and I'm hoping the major improvement in hardware will drastically cut down the time it takes to add and replace disks in the raid array bc currently it takes like 2 weeks to add or replace a single disk which really sucks.

Link to comment
Share on other sites

Cool i appreciate that! Board is the x79 ASUS Sabertooth with 64gb RAM and a 4820k CPU. I bought the LSI SAS9211-8I 8PORT rather than the 2 cards and already built the system. Tomorrow I will attempt the installation of Xpenology before moving my array to the machine. Your advice would be appreciated!

Link to comment
Share on other sites

I'm almost in the same boat. That's a nightmare!

 

Actually:

HP N54L + LSI SAS9211-8I + 5.2 DSM

 

N54L has 6 sata ports (4 sata, 1 eSata, 1 optical Sata) and 6 USB ports

LSI SAS9211-8I has 8 sata ports.

I changed ODD with a hot swap bay case.

 

I want Back eSATA and ODD set as eSATA. That's my goal.

As the 8 ports of the LSI SAS9211-8I appear as one on esataportcfg (7th) and can't separate 2 from the rest, my solution was:

Four internal disks are controlled by the LSI SAS9211-8I

Back eSATA and hot swap bay case (ODD) are set eSATA and controlled by N54L MOBO

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00(ODD)(back_eSATA) 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0(LSI 8 ports)00 (MOBO_sata)(MOBO_sata)(MOBO_sata)(MOBO_sata) = internalportcfg

 

So, config that works flawlessly:

 

esataportcfg="0x0030"

usbportcfg="0x3f80"

internalportcfg="0x004f"

maxdisks="12"

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0100 1111 = internalportcfg

 

I think is time to move to 6.1.1, but after reading and reading some times, I still can't understand and I'm not sure what to set on grub and synoinfo.conf.

Link to comment
Share on other sites

I'm almost in the same boat. That's a nightmare!

 

Actually:

HP N54L + LSI SAS9211-8I + 5.2 DSM

 

N54L has 6 sata ports (4 sata, 1 eSata, 1 optical Sata) and 6 USB ports

LSI SAS9211-8I has 8 sata ports.

I changed ODD with a hot swap bay case.

 

I want Back eSATA and ODD set as eSATA. That's my goal.

As the 8 ports of the LSI SAS9211-8I appear as one on esataportcfg (7th) and can't separate 2 from the rest, my solution was:

Four internal disks are controlled by the LSI SAS9211-8I

Back eSATA and hot swap bay case (ODD) are set eSATA and controlled by N54L MOBO

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00(ODD)(back_eSATA) 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0(LSI 8 ports)00 (MOBO_sata)(MOBO_sata)(MOBO_sata)(MOBO_sata) = internalportcfg

 

So, config that works flawlessly:

 

esataportcfg="0x0030"

usbportcfg="0x3f80"

internalportcfg="0x004f"

maxdisks="12"

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0100 1111 = internalportcfg

 

I think is time to move to 6.1.1, but after reading and reading some times, I still can't understand and I'm not sure what to set on grub and synoinfo.conf.

 

imho (if i "gap" in the internal sata ports is allowed - never tried that) this would be the configuration to try:

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0000 1111 1100 0000 0000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1100 1111 = internalportcfg

esataportcfg="0x0030"

usbportcfg="0x‭fc000‬"

internalportcfg="0x‭3fcf"

maxdisks="12"

 

 

asumtion on that is the system (dsm) finds the 4+2 (or 4+1+1) onboard first and the lsi is last

 

what you did (with the placeholders for a "1") would correctly "writen" look like this

(lis = 8 Ports = 8 x 1, mobo 4 x 1)

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 011 1111 1100 1111 = internalportcfg

 

or with additinal "0" from the right side, so its good to read

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1100 1111 = internalportcfg

 

(red marks a error, 3 bit instead of 4, but in this case it does'nt matter it's only the "0" for filling)

you see the problem (to "read" from left to right = lower bits first)?

internal and usb overlaping - not good

Link to comment
Share on other sites

asumtion on that is the system (dsm) finds the 4+2 (or 4+1+1) onboard first and the lsi is last

 

what you did (with the placeholders for a "1") would correctly "writen" look like this

(lis = 8 Ports = 8 x 1, mobo 4 x 1)

 

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 011 1111 1100 1111 = internalportcfg

 

or with additinal "0" from the right side, so its good to read

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 1111 1100 1111 = internalportcfg

 

(red marks a error, 3 bit instead of 4, but in this case it does'nt matter it's only the "0" for filling)

you see the problem (to "read" from left to right = lower bits first)?

internal and usb overlaping - not good

 

It makes sense. I'll try it. Not sure why I had seven "1" on usbportcfg.

And what about Grub? SataPortMap=68 ?

Link to comment
Share on other sites

So out of the box DSM recognized the 8 LSI ports and then 4 out of the 8 Mobo ports. I tried hotswapping between the MOBO ports but only 2 out of the 4 listed are working. So the two marvell ports are working but the 6 intel ports are now. Im fine with buying another LSI card and running 18 ports. I have no idea how to use GRUB to map the ports correctly.

 

This is my mobos sata controllers.

 

Intel® X79 chipset :

2 x SATA 6Gb/s port(s), brown

4 x SATA 3Gb/s port(s), black

Support Raid 0, 1, 5, 10

These 2 are part of the 4 since

Marvell® PCIe 9128 controller :

2 x SATA 6Gb/s port(s), gray

Link to comment
Share on other sites

So out of the box DSM recognized the 8 LSI ports and then 4 out of the 8 Mobo ports. I tried hotswapping between the MOBO ports but only 2 out of the 4 listed are working. So the two marvell ports are working but the 6 intel ports are now. Im fine with buying another LSI card and running 18 ports. I have no idea how to use GRUB to map the ports correctly.

 

This is my mobos sata controllers.

 

Intel® X79 chipset :

2 x SATA 6Gb/s port(s), brown

4 x SATA 3Gb/s port(s), black

Support Raid 0, 1, 5, 10

These 2 are part of the 4 since

Marvell® PCIe 9128 controller :

2 x SATA 6Gb/s port(s), gray

 

 

Did you try SataPortMap=242 or SataPortMap=62?

Link to comment
Share on other sites

So out of the box DSM recognized the 8 LSI ports and then 4 out of the 8 Mobo ports. I tried hotswapping between the MOBO ports but only 2 out of the 4 listed are working. So the two marvell ports are working but the 6 intel ports are now. Im fine with buying another LSI card and running 18 ports. I have no idea how to use GRUB to map the ports correctly.

 

This is my mobos sata controllers.

 

Intel® X79 chipset :

2 x SATA 6Gb/s port(s), brown

4 x SATA 3Gb/s port(s), black

Support Raid 0, 1, 5, 10

These 2 are part of the 4 since

Marvell® PCIe 9128 controller :

2 x SATA 6Gb/s port(s), gray

 

well i took you word for granted that the mobo has 6 ports, if there are 8 (6+2) and they are found before the lsi it will look different in the mapping

the bits/ports in the mapping have to tke all "visible" sata ports into account

so if its 6+2+8 the correct mapping will look like this

0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1100 0000 = esataportcfg

0000 0000 0000 0000 0000 0000 0011 1111 0000 0000 0000 0000 = usbportcfg

0000 0000 0000 0000 0000 0000 0000 0000 1111 1111 0011 1111 = internalportcfg

esataportcfg="0xc0"

usbportcfg="0x‭3f0000‬"

internalportcfg="0x‭ff3f"

maxdisks="14"

Link to comment
Share on other sites

I have to be honest would you, you're talking above my head at this point. DSM recognized 8 LSI then 4 MOBO ports. I just ordered another 8 ports LSI card and i think im just going to forgo using the onboard port bc I just don't have a good grasp of mapping. Im a total Iinux beginner and this might as well be Chinese to me at this point lol. If theres a good tut that will explain this all to me than im sure i can learn but right now i cannot interpret your instructions.

Link to comment
Share on other sites

Ok so i was able to figure out how to edit these values. Now i have to figure out which controller is being seen first second and third. I now have 2 LSI controllers for 16 ports and then the above onboard sata ports. I have uploaded my dmesg below hopefully someone can decipher.

 

https://mega.nz/#!q8p1XYgS!xjCMRdLxQL41 ... _zEcGIQch0

WOW! A lot of stuff!

This is what I see:

First controller: 6 ports

Second: 2 ports

the third: 8 ports

and I see only one drive connected to the motherboard directly: Seagate 5Tb (ST5000DM000-1FK178)

then mpt2sas0 (LSI card): 8 ports (Sandisck SSD, 3x5Tb, 4Tb)

and mpt2sas1 (LSI card): 8 ports (3x4Tb, 2x5Tb)

also you have 8 USB buses.

All correct at this point?

Edited by Guest
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...