From 7b3e61311e44d4bf05d546bb448d9497f7949022 Mon Sep 17 00:00:00 2001 From: markdhooper Date: Wed, 6 Sep 2023 09:39:57 -0300 Subject: [PATCH] added hotfix for aliasing MI4 with X11SPi-TF Motherboards --- CHANGELOG.md | 4 ++-- manifest.json | 8 ++++---- packaging/el7/main.spec | 2 ++ packaging/el8/main.spec | 2 ++ packaging/focal/changelog | 6 ++++++ src/fakeroot/opt/45drives/tools/dmap | 7 +++++++ 6 files changed, 23 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e99d479..2f24085 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ -## 45drives-tools 2.2.2-6 +## 45drives-tools 2.2.3-1 -* added rudimentary bus address translation for ROMED8-2T Motherboards \ No newline at end of file +* added hotfix for aliasing MI4 servers that use X11SPi-TF Motherboards \ No newline at end of file diff --git a/manifest.json b/manifest.json index e8a25d3..da0375a 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "name": "45drives-tools", "title": "45drives-tools", "prerelease": false, - "version": "2.2.2", - "buildVersion": "6", + "version": "2.2.3", + "buildVersion": "1", "author": "Mark Hooper ", "url": "https://github.com/45Drives/tools", "category": "utils", @@ -64,8 +64,8 @@ ], "changelog": { "urgency": "medium", - "version": "2.2.2", - "buildVersion": "6", + "version": "2.2.3", + "buildVersion": "1", "ignore": [], "date": null, "packager": "Mark Hooper ", diff --git a/packaging/el7/main.spec b/packaging/el7/main.spec index bf98975..d826eba 100644 --- a/packaging/el7/main.spec +++ b/packaging/el7/main.spec @@ -55,6 +55,8 @@ fi %{_bindir}/* %changelog +* Wed Sep 06 2023 Mark Hooper 2.2.3-1 +- added hotfix for aliasing MI4 servers that use X11SPi-TF Motherboards * Mon Jun 12 2023 Mark Hooper 2.2.2-6 - added rudimentary bus address translation for ROMED8-2T Motherboards * Tue May 23 2023 Mark Hooper 2.2.2-5 diff --git a/packaging/el8/main.spec b/packaging/el8/main.spec index ccde011..3e9ea3e 100644 --- a/packaging/el8/main.spec +++ b/packaging/el8/main.spec @@ -55,6 +55,8 @@ fi %{_bindir}/* %changelog +* Wed Sep 06 2023 Mark Hooper 2.2.3-1 +- added hotfix for aliasing MI4 servers that use X11SPi-TF Motherboards * Mon Jun 12 2023 Mark Hooper 2.2.2-6 - added rudimentary bus address translation for ROMED8-2T Motherboards * Tue May 23 2023 Mark Hooper 2.2.2-5 diff --git a/packaging/focal/changelog b/packaging/focal/changelog index bf9805e..9c8b1ae 100644 --- a/packaging/focal/changelog +++ b/packaging/focal/changelog @@ -1,3 +1,9 @@ +45drives-tools (2.2.3-1focal) focal; urgency=medium + + * added hotfix for aliasing MI4 servers that use X11SPi-TF Motherboards + + -- Mark Hooper Wed, 06 Sep 2023 06:37:04 -0300 + 45drives-tools (2.2.2-6focal) focal; urgency=medium * added rudimentary bus address translation for ROMED8-2T Motherboards diff --git a/src/fakeroot/opt/45drives/tools/dmap b/src/fakeroot/opt/45drives/tools/dmap index 0404a63..a3b5e33 100755 --- a/src/fakeroot/opt/45drives/tools/dmap +++ b/src/fakeroot/opt/45drives/tools/dmap @@ -750,6 +750,13 @@ def alias_mi4(model,os_name,os_version_id,mobo_model): for i in range(0,4): #alias the drives connected to the on board sata sata connectors vdev_id_str += "alias 1-{drive} /dev/disk/by-path/pci-{addr}-ata-{i}{s}\n".format(drive=i+1,addr=bus_address_sata,i=i+5,s=ata_suffix) + elif mobo_model in ["X11SPi-TF"]: + # The X11SPi-TF would use the S-SATA ports for the boot drives, so it starts at the first I-SATA port. 1,2,3 and 4 are used here. + # a hard coded bus address. + bus_address_sata = "0000:17:00.0" + for i in range(0,4): + #alias the drives connected to the on board sata sata connectors + vdev_id_str += "alias 1-{drive} /dev/disk/by-path/pci-{addr}-ata-{i}{s}\n".format(drive=i+1,addr=bus_address_sata,i=i+1,s=ata_suffix) elif mobo_model in ["ROMED8-2T"]: # this is the AMD board made by ASRock Rack. It staggers two sata controllers. # these correspond to the on board mini sas hd connectors for sata_2, sata_3, sata_4, sata_5 using a 4 port fan out cable each.