Jump to content
XPEnology Community

Automated RedPill Loader (ARPL)


fbelavenuto

Recommended Posts

2 hours ago, CapedBaldy said:

I had issues with the NAS not being detected on my network. Managed to use an older version of ARPL it all went well. It got past the .pat load page where I encountered an issue with other loaders.

What hardware, and what older verion works? 

Link to comment
Share on other sites

I just Upgraded my NAS from a i3 12100 to a i7 13700k and now my Drives are no longer detected by the OS. In Bios i enabled hotplug and all drives are detected there. But if i boot the OS i cant get to the login, i just get a "no drives detected" warning where i can refresh. 

Any idea how or why this is?

I tryed to rebuild the bootloader and there the Sata ports are green so it should work??

Iam very much confused

Screenshot 2023-08-18 125804.png

Edited by Timon-H
added a pic
Link to comment
Share on other sites

BLUF: I recently migrated my Proxmox Synology/Xpenology VM from DSM 6 to DSM 7 and it is working well. All Drives/Volumes are seen and operating. My storage is located on a Lenovo SA120 DAS; but the DAS is no longer appearing as an external enclosure in the DSM. I'm trying to figure out how to configure ARPL so that DSM sees the enclosure correctly.

 

System:

ASRock X570 Taichi | Ryzen 3700x | Kingston KSM32ED8/16HD-DDR4-16 GB (x2) | Kingston KSM26ED8/16ME-DDR4-16 GB (x2)
MSI Radeon RX 560 4GT LP OC GPU | Hauppauge 1229 WinTV-HVR-2255 | LSI SAS9207-8e 8-Port External HBA | Lenovo SA120 

PVE Manager Version 7.4-16/0f39f621 | Kernel Version Linux 5.15.107-2-pve | DS3622xs+ DSM 7.1.1-42962 Update 6

 

Background:

The Lenovo SA120 DAS's fans may be operated via a Python script (https://github.com/td147x/Synology-Lenovo-SA120-Fanspeed) and DSM "Scheduled tasks". Aside from modifying the Python script to see all of the drives (devices_to_check = ['/dev/sg*','/dev/ses*'] becomes devices_to_check = ['/dev/sg*']), the secret sauce to the script is sg_ses reporting the enclosure as ThinkServerSA120. 

 

I installed Entware and sg3_utils. I verified all Modules are loaded via ARPL (including the Fusion MPT module).

 

Summary:

Help me please. ;-) Does anyone have an idea of how to have an external enclosure  report as such to DSM 7? The script worked in DSM 6.

 

Reports:

sg_map -i
/dev/sg0  /dev/sr0  QEMU      QEMU DVD-ROM      2.5+
/dev/sg1  /dev/sdg  QEMU  HARDDISK  2.5+
/dev/sg2  /dev/sdm  ATA       ST6000NE0021-2EN  EN02
/dev/sg3  /dev/sdn  ATA       ST6000NE0021-2EN  EN02
/dev/sg4  /dev/sdo  ATA       ST6000VN001-2BB1  SC60
/dev/sg5  /dev/sdp  ATA       WDC WD60EFRX-68L  0A82
/dev/sg6  /dev/sdq  ATA       WDC WD60EFRX-68L  0A82
/dev/sg7  /dev/sdr  ATA       WDC WD60EFRX-68L  0A82
/dev/sg8  /dev/sds  ATA       ST6000DM001-1XY1  CC48
/dev/sg9  /dev/sdt  ATA       ST6000VN001-2BB1  SC60
/dev/sg10  /dev/sdu  ATA       ST4000DM000-1F21  CC52
/dev/sg11  /dev/sdv  ATA       ST4000DM000-1F21  CC54
/dev/sg12  /dev/sdw  ATA       ST4000DM000-1F21  CC51
/dev/sg13  /dev/sdx  ATA       ST4000DM000-1F21  CC52
/dev/sg14  LENOVO    ThinkServerSA120  1008
/dev/sg15  QEMU      QEMU HARDDISK     2.5+
sudo sg_ses -v /dev/sg10
    inquiry cdb: 12 00 00 00 24 00
  ATA       ST4000DM000-1F21  CC52
    disk device (not an enclosure)
    request sense cmd: 03 00 00 00 fc 00
Request Sense near startup detected something:
  Sense key: No Sense, additional: Additional sense: No additional sense information
  ... continue
    Receive diagnostic results cdb: 1c 01 00 ff fc 00
Receive diagnostic results:
Fixed format, current; Sense key: Illegal Request
Additional sense: Invalid command operation code
Attempt to fetch Supported Diagnostic Pages dpage failed
    Sense category: 9
sudo python /volume1/apps/sa120/fanspeed.py 1
Enclosure not found on /dev/sg15
Enclosure not found on /dev/sg14
Enclosure not found on /dev/sg13
Enclosure not found on /dev/sg12
Enclosure not found on /dev/sg11
Enclosure not found on /dev/sg10
Enclosure not found on /dev/sg9
Enclosure not found on /dev/sg8
Enclosure not found on /dev/sg7
Enclosure not found on /dev/sg6
Enclosure not found on /dev/sg5
Enclosure not found on /dev/sg4
Enclosure not found on /dev/sg3
Enclosure not found on /dev/sg2
Enclosure not found on /dev/sg1
Enclosure not found on /dev/sg0
Could not find enclosure

image.thumb.png.30264ff987297a54470dc97c431fa7e4.pngimage.thumb.png.db1fc81dd1b42ced59b8c05edc7c9cd7.png

Edited by Uuugh
Link to comment
Share on other sites

Well, upon further investigation the enclosure is being reported. I'll need to work on the script.

The script uses sg_ses -p

sg_ses -p /dev/sg14
'--page=PG' argument abbreviation "/dev/sg14" not found
Here are the choices:
Diagnostic pages, followed by abbreviation(s) then page code:
    Supported Diagnostic Pages  [sdp] [0x0]
    Configuration (SES)  [cf] [0x1]
    Enclosure Status/Control (SES)  [ec,es] [0x2]
    Help Text (SES)  [ht] [0x3]
    String In/Out (SES)  [str] [0x4]
    Threshold In/Out (SES)  [th] [0x5]
    Array Status/Control (SES, obsolete)  [ac,as] [0x6]
    Element Descriptor (SES)  [ed] [0x7]
    Short Enclosure Status (SES)  [ses] [0x8]
    Enclosure Busy (SES-2)  [eb] [0x9]
    Additional Element Status (SES-2)  [aes] [0xa]
    Subenclosure Help Text (SES-2)  [sht] [0xb]
    Subenclosure String In/Out (SES-2)  [sstr] [0xc]
    Supported SES Diagnostic Pages (SES-2)  [ssp] [0xd]
    Download Microcode (SES-2)  [dm] [0xe]
    Subenclosure Nickname (SES-2)  [snic] [0xf]
    Protocol Specific (SAS transport)  [] [0x3f]
    Translate Address (SBC)  [] [0x40]
    Device Status (SBC)  [] [0x41]
    Rebuild Assist (SBC)  [] [0x42]
    All SES diagnostic pages output (sg_ses)  [all] [0xff]
Some error occurred, try again with '-v' or '-vv' for more information

vs sg_ses -v

sg_ses -v /dev/sg14
    inquiry cdb: 12 00 00 00 24 00
  LENOVO    ThinkServerSA120  1008
    enclosure services device
    request sense cmd: 03 00 00 00 fc 00
Request Sense near startup detected something:
  Sense key: No Sense, additional: Additional sense: No additional sense information
  ... continue
    Receive diagnostic results cdb: 1c 01 00 ff fc 00
Supported diagnostic pages:
  Supported Diagnostic Pages [sdp] [0x0]
  Configuration (SES) [cf] [0x1]
  Enclosure Status/Control (SES) [ec,es] [0x2]
  String In/Out (SES) [str] [0x4]
  Element Descriptor (SES) [ed] [0x7]
  Additional Element Status (SES-2) [aes] [0xa]
  Download Microcode (SES-2) [dm] [0xe]
  <unknown> [0x93]
  <unknown> [0x94]
  <unknown> [0x97]

 

Edited by Uuugh
Link to comment
Share on other sites

Solved. My posts feel like SPAM now. I'll wrap up the corrected script and instructions, upload to GitHub, and paste a link in a new post. Hopefully this will help anyone using DSM7 with a Lenovo LS120 DAS.

 

Dear Moderator. Feel free to delete these three posts and I will repost a solution.

 

Thanks 

Link to comment
Share on other sites

20 hours ago, Timon-H said:

I just Upgraded my NAS from a i3 12100 to a i7 13700k and now my Drives are no longer detected by the OS. In Bios i enabled hotplug and all drives are detected there. But if i boot the OS i cant get to the login, i just get a "no drives detected" warning where i can refresh. 

Any idea how or why this is?

I tryed to rebuild the bootloader and there the Sata ports are green so it should work??

Iam very much confused

Screenshot 2023-08-18 125804.png

Something just broke ig. Since i updated the Bios (for the new CPU gen) i lost the Option to pick between AHCI and RAID in the Sata config menu. I now tryed the oldest Bios version that still supports the 13700k, still no AHCI setting. Maybe i should just buy a PCIe to Sata port card.... Do you guys have a recommendation for a 4-8Port card?

Link to comment
Share on other sites

Il y a 3 heures, Timon-H a dit :

Something just broke ig. Since i updated the Bios (for the new CPU gen) i lost the Option to pick between AHCI and RAID in the Sata config menu. I now tryed the oldest Bios version that still supports the 13700k, still no AHCI setting. Maybe i should just buy a PCIe to Sata port card.... Do you guys have a recommendation for a 4-8Port card?

Maybe the SATA controller options are renamed like “Intel Optane mode” ?

Does AHCI mode reappear when you put back the i3 12th Gen ?

 

Otherwise, if I remember correctly, ASmedia chipset based SATA 3.0 cards were supported a bit better than Marvel ones, but this was for DSM6 and Jun’s loader. Generally, beware of the PCI-E port Gen and width, because for example a cheap PCI express Gen 3.0 on a x2 port could be a bottleneck (connector bandwidth is 8x2 lines=16 GT/s —> 1970MB/s) if having more than 4 SATA 3.0 ports, it’s been saturated under full load (example with 4 very good SSD bursting at 585MB/s —> 4x585=2340MB/s) so if you see a model with 8 ports, expect poor performance on the RAID array or forget it and choose a better model designed to fit on x4, x8 or x16 connector, or a more recent PCI-Express Gen as bandwidth is almost doubled at each revision (of course CPU and motherboard need to be recent to support the latest revision, but prices should be insane… 😉)

Edited by mojojojotroi
Link to comment
Share on other sites

2 hours ago, mojojojotroi said:

Maybe the SATA controller options are renamed like “Intel Optane mode” ?

Does AHCI mode reappear when you put back the i3 12th Gen ?

 

Otherwise, if I remember correctly, ASmedia chipset based SATA 3.0 cards were supported a bit better than Marvel ones, but this was for DSM6 and Jun’s loader. Generally, beware of the PCI-E port Gen and width, because for example a cheap PCI express Gen 3.0 on a x2 port could be a bottleneck (connector bandwidth is 8x2 lines=16 GT/s —> 1970MB/s) if having more than 4 SATA 3.0 ports, it’s been saturated under full load (example with 4 very good SSD bursting at 585MB/s —> 4x585=2340MB/s) so if you see a model with 8 ports, expect poor performance on the RAID array or forget it and choose a better model designed to fit on x4, x8 or x16 connector, or a more recent PCI-Express Gen as bandwidth is almost doubled at each revision (of course CPU and motherboard need to be recent to support the latest revision, but prices should be insane… 😉)

I searched the UEFI again. in the drive list section i can see AHCI Mode. I cant change that but dont need to. i guess the Uefi Settings are fine.. 

So why then is the OS not picking up drives. I cant even login. The webui instantly says no drives detected... I only changed CPU and updated the BIOS wtf??
Iam thinking of installing the i3 again and downgrading the Bios just to get it (hopefully) to work again.

 

Edit: I tryed now the i3 again. Same problem. Now iam going to install the oldest Bios i can find to check if that fixes it.

Edited by Timon-H
Link to comment
Share on other sites

Now it's completely rip. 

I installed the oldest bios and now the os doesn't boot at all. 

I have tryed reformating the usb stick and loading the bootloader again. No success. It tryes to boot, everything looks like it's booting but the website doesn't show anything even after 20min of waiting.  

Iam so done man. All my data is on those 4 drives and a simple CPU upgrade crashes the hole system. Yes I know I need a backup but I don't yet have one.. my friend wants a Nas then I can backup to his Nas but atm I don't yet have a good backup solution... 

Iam now trying a different usb stick i guess.. I don't have any other idea

  • Sad 1
Link to comment
Share on other sites

il y a 33 minutes, Timon-H a dit :

Now it's completely rip. 

I installed the oldest bios and now the os doesn't boot at all. 

I have tryed reformating the usb stick and loading the bootloader again. No success. It tryes to boot, everything looks like it's booting but the website doesn't show anything even after 20min of waiting.  

Iam so done man. All my data is on those 4 drives and a simple CPU upgrade crashes the hole system. Yes I know I need a backup but I don't yet have one.. my friend wants a Nas then I can backup to his Nas but atm I don't yet have a good backup solution... 

Iam now trying a different usb stick i guess.. I don't have any other idea

What is the behaviour when booting on something else ? (Live CD, Linux/Windows install boot USB ?)

Link to comment
Share on other sites

Just now, mojojojotroi said:

What is the behaviour when booting on something else ? (Live CD, Linux/Windows install boot USB ?)

I now tryed a Ubuntu Stick i have kicking around. Boots right up to desktop. 

Its just something wrong with my Bootloader i guess.

Thats how i install ist:
1. burn arpl to Usb

2. Boot from usb

3. configure model (DS3622XS+)

4. configure Buildnumber (42962)

5. use Serialgen.

6. build loader 

7. Boot loader.

8. try to load the webui (in my case 192.168.178.59:5000)

 

Nothing loads. Before i installed the old bios i would get some "please wait" and then the notification that no drives are detected. In bios all drives where detected tho. But now i get nothing.. 

Link to comment
Share on other sites

il y a une heure, Timon-H a dit :

I now tryed a Ubuntu Stick i have kicking around. Boots right up to desktop. 

Its just something wrong with my Bootloader i guess.

Thats how i install ist:
1. burn arpl to Usb

2. Boot from usb

3. configure model (DS3622XS+)

4. configure Buildnumber (42962)

5. use Serialgen.

6. build loader 

7. Boot loader.

8. try to load the webui (in my case 192.168.178.59:5000)

 

Nothing loads. Before i installed the old bios i would get some "please wait" and then the notification that no drives are detected. In bios all drives where detected tho. But now i get nothing.. 

What's your motherboard model ?

Network chipset ? (Realtek 8125B, Intel I219-V, I215-V, ...) ?
Did you tick the checkbox to load the corresponding driver when configuring the loader ?

Link to comment
Share on other sites

Just now, mojojojotroi said:

What's your motherboard model ?

Network chipset ? (Realtek 8125B, Intel I219-V, I215-V, ...) ?
Did you tick the checkbox to load the corresponding driver when configuring the loader ?

Mainboard: Biostar b660GTN with Realtek RTL8125B Controller. 

For me all Modules are pre selected. So all those drivers should be present. 

Link to comment
Share on other sites

à l’instant, Timon-H a dit :

Mainboard: Biostar b660GTN with Realtek RTL8125B Controller. 

For me all Modules are pre selected. So all those drivers should be present. 

I have the same behaviour with the same chipset on my MSI B460-I, seems no way to disable it, so no better when adding a Intel I350-T2 on the free PCI-E slot... Hoping good luck to you with this sh*t

  • Like 1
Link to comment
Share on other sites

Just now, mojojojotroi said:

I have the same behaviour with the same chipset on my MSI B460-I, seems no way to disable it, so no better when adding a Intel I350-T2 on the free PCI-E slot... Hoping good luck to you with this sh*t

The problem is, it worked. It worked for months just fine. But then i had to upgrade the CPU.... Now its RIP.. I hate it

Link to comment
Share on other sites

Hi all!

Tried ARPL loader, but finally went to an fork, named ARC loader, that frequently updated, and offers more extras, ame patch, online patch, powersched,  and surveillance patch. But unfortunately, tied on more baremetal servers, if i patch surveillance, get 58 cams, but the desktop app begin freezing, stopping camera. All case finished same result, if i uninstall and reinstall surveillance station to nas, everything's works fine. What will be the solution? 

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