grugo

Members
  • Posts

    13
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

grugo's Achievements

Noob

Noob (1/14)

5

Reputation

  1. Yes, it would, but I don't know how much of the host you need to implement and use this on a container. No rush at all. Compiling patchs with Kernel Helper works. Do have in mind Unraid kernel versions, patch are different.
  2. The repo has 2 parts. The first one is to enable passthrough (AKA HBA) mode in the controller. The tool "tells" the RAID controller to change its internal configuration, doing it immediately, without requiring reboot. I was referring to this when I said change modes. However, to get system actually see and use disks in HBA mode, the kernel patches are required. That is where https://github.com/im-0/hpsahba/tree/master/kernel come into pay. After the patch, this functionality is disabled by default. To enable, load module hpsa with parameter hpsa_use_nvram_hba_flag set to "1". Or set it in the kernel command line: "hpsa.hpsa_use_nvram_hba_flag=1". Or even edit syslinux.cfg to include the flags. But patchs need to be done before, if not, the module will have no idea what flag are you talking about. HPESSA (HPE Smart Storage Administrator) is a tool to manage, diagnose, and monitor HPE array controllers and the SAS host bus adapters. You can use it with the P410i to create, modify and remove arrays, but you can't set it in HBA mode.
  3. You can't change modes using iLO. Neither it can be done with HPESSA (HPE Smart Storage Administrator) live CD / software. It was only available for itanium-based servers only (officially). I change the mode using a Ubuntu Desktop Live USB.
  4. Yes. Repo is quite good documented as well. I don't think it would be necessary to install the hpsahba tool (maybe in a separated docker?). Patchs are for kernels 4.x and 5.x
  5. root@Tower:~# uptime 09:48:35 up 7 min, 0 users, load average: 0.00, 0.06, 0.04 root@Tower:~# lsscsi [0:0:0:0] disk SanDisk Cruzer Blade 1.00 /dev/sda [1:0:0:0] storage HP P410i 6.64 - root@Tower:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 11.1M 1 loop /lib/modules loop1 7:1 0 21.4M 1 loop /lib/firmware sda 8:0 1 7.5G 0 disk └─sda1 8:1 1 7.5G 0 part /boot root@Tower:~# lspci 00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13) 00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13) 00:02.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 2 (rev 13) 00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13) 00:04.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 4 (rev 13) 00:05.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 (rev 13) 00:06.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 6 (rev 13) 00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13) 00:08.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 8 (rev 13) 00:09.0 PCI bridge: Intel Corporation 7500/5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 13) 00:0a.0 PCI bridge: Intel Corporation 7500/5520/5500/X58 I/O Hub PCI Express Root Port 10 (rev 13) 00:0d.0 Host bridge: Intel Corporation Device 343a (rev 13) 00:0d.1 Host bridge: Intel Corporation Device 343b (rev 13) 00:0d.2 Host bridge: Intel Corporation Device 343c (rev 13) 00:0d.3 Host bridge: Intel Corporation Device 343d (rev 13) 00:0d.4 Host bridge: Intel Corporation 7500/5520/5500/X58 Physical Layer Port 0 (rev 13) 00:0d.5 Host bridge: Intel Corporation 7500/5520/5500 Physical Layer Port 1 (rev 13) 00:0d.6 Host bridge: Intel Corporation Device 341a (rev 13) 00:0e.0 Host bridge: Intel Corporation Device 341c (rev 13) 00:0e.1 Host bridge: Intel Corporation Device 341d (rev 13) 00:0e.2 Host bridge: Intel Corporation Device 341e (rev 13) 00:0e.3 Host bridge: Intel Corporation Device 341f (rev 13) 00:0e.4 Host bridge: Intel Corporation Device 3439 (rev 13) 00:14.0 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub System Management Registers (rev 13) 00:14.1 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13) 00:14.2 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13) 00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1 00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5 00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1 00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2 00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3 00:1d.3 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6 00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90) 00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller 01:03.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] ES1000 (rev 02) 02:00.0 System peripheral: Hewlett-Packard Company Integrated Lights-Out Standard Slave Instrumentation & System Support (rev 04) 02:00.2 System peripheral: Hewlett-Packard Company Integrated Lights-Out Standard Management Processor Support and Messaging (rev 04) 02:00.4 USB controller: Hewlett-Packard Company Integrated Lights-Out Standard Virtual USB Controller (rev 01) 03:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 03:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 04:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 04:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 05:00.0 RAID bus controller: Hewlett-Packard Company Smart Array G6 controllers (rev 01) 3e:00.0 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture Generic Non-core Registers (rev 02) 3e:00.1 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture System Address Decoder (rev 02) 3e:02.0 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 0 (rev 02) 3e:02.1 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 0 (rev 02) 3e:02.2 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 0 (rev 02) 3e:02.3 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 1 (rev 02) 3e:02.4 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 1 (rev 02) 3e:02.5 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 1 (rev 02) 3e:03.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Registers (rev 02) 3e:03.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Target Address Decoder (rev 02) 3e:03.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller RAS Registers (rev 02) 3e:03.4 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Test Registers (rev 02) 3e:04.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Control (rev 02) 3e:04.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Address (rev 02) 3e:04.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Rank (rev 02) 3e:04.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Thermal Control (rev 02) 3e:05.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Control (rev 02) 3e:05.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Address (rev 02) 3e:05.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Rank (rev 02) 3e:05.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Thermal Control (rev 02) 3e:06.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Control (rev 02) 3e:06.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Address (rev 02) 3e:06.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Rank (rev 02) 3e:06.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Thermal Control (rev 02) 3f:00.0 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture Generic Non-core Registers (rev 02) 3f:00.1 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture System Address Decoder (rev 02) 3f:02.0 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 0 (rev 02) 3f:02.1 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 0 (rev 02) 3f:02.2 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 0 (rev 02) 3f:02.3 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 1 (rev 02) 3f:02.4 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 1 (rev 02) 3f:02.5 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 1 (rev 02) 3f:03.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Registers (rev 02) 3f:03.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Target Address Decoder (rev 02) 3f:03.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller RAS Registers (rev 02) 3f:03.4 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Test Registers (rev 02) 3f:04.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Control (rev 02) 3f:04.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Address (rev 02) 3f:04.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Rank (rev 02) 3f:04.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Thermal Control (rev 02) 3f:05.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Control (rev 02) 3f:05.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Address (rev 02) 3f:05.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Rank (rev 02) 3f:05.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Thermal Control (rev 02) 3f:06.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Control (rev 02) 3f:06.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Address (rev 02) 3f:06.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Rank (rev 02) 3f:06.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Thermal Control (rev 02) root@Tower:~# lsscsi -d [0:0:0:0] disk SanDisk Cruzer Blade 1.00 /dev/sda [8:0] [1:0:0:0] storage HP P410i 6.64 - root@Tower:~# lsscsi -l [0:0:0:0] disk SanDisk Cruzer Blade 1.00 /dev/sda state=running queue_depth=1 scsi_level=7 type=0 device_blocked=0 timeout=30 [1:0:0:0] storage HP P410i 6.64 - state=running queue_depth=32 scsi_level=6 type=12 device_blocked=0 timeout=120 root@Tower:~# cat /proc/devices Character devices: 1 mem 4 /dev/vc/0 4 tty 4 ttyS 5 /dev/tty 5 /dev/console 5 /dev/ptmx 6 lp 7 vcs 10 misc 13 input 21 sg 29 fb 128 ptm 136 pts 180 usb 189 usb_device 202 cpu/msr 203 cpu/cpuid 226 drm 248 hidraw 249 vfio 250 uio 251 bsg 252 ptp 253 pps 254 rtc Block devices: 7 loop 8 sd 9 md 65 sd 66 sd 67 sd 68 sd 69 sd 70 sd 71 sd 128 sd 129 sd 130 sd 131 sd 132 sd 133 sd 134 sd 135 sd 259 blkext root@Tower:~# ls /dev/disk/by- by-id/ by-label/ by-path/ by-uuid/ root@Tower:~# ls /dev/disk/by-id/ usb-SanDisk_Cruzer_Blade_4C531001640627114584-0:0@ usb-SanDisk_Cruzer_Blade_4C531001640627114584-0:0-part1@ I'm not sure what do you mean with "dump" of /dev/disk/by-id, so I'm gonna post some info, before and after reload the module. That was the before, now the after root@Tower:~# modprobe -r hpsa root@Tower:~# modprobe hpsa hpsa_use_nvram_hba_flag=1 root@Tower:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 11.1M 1 loop /lib/modules loop1 7:1 0 21.4M 1 loop /lib/firmware sda 8:0 1 7.5G 0 disk └─sda1 8:1 1 7.5G 0 part /boot sdb 8:16 0 465.8G 0 disk └─sdb1 8:17 0 465.8G 0 part sdc 8:32 0 4.5T 0 disk └─sdc1 8:33 0 4.5T 0 part sdd 8:48 0 931.5G 0 disk └─sdd1 8:49 0 931.5G 0 part sde 8:64 0 931.5G 0 disk └─sde1 8:65 0 931.5G 0 part sdf 8:80 0 111.8G 0 disk └─sdf1 8:81 0 111.8G 0 part sdg 8:96 0 931.5G 0 disk └─sdg1 8:97 0 931.5G 0 part sdh 8:112 0 931.5G 0 disk └─sdh1 8:113 0 931.5G 0 part root@Tower:~# lsscsi [0:0:0:0] disk SanDisk Cruzer Blade 1.00 /dev/sda [1:0:0:0] storage HP P410i 6.64 - [1:0:1:0] disk ATA HGST HTS725050A7 A340 /dev/sdb [1:0:2:0] disk ATA ST5000LM000-2AN1 0001 /dev/sdc [1:0:3:0] disk ATA ST1000LM048-2E71 0001 /dev/sdd [1:0:4:0] disk ATA ST1000LM048-2E71 0001 /dev/sde [1:0:5:0] disk ATA Samsung SSD 850 1B6Q /dev/sdf [1:0:6:0] disk ATA ST1000LM048-2E71 0001 /dev/sdg [1:0:7:0] disk ATA ST1000LM048-2E71 0001 /dev/sdh root@Tower:~# ls /dev/disk/by-id/ ata-ST5000LM000-2AN170_WCJ2M109@ scsi-35000c500d4d8c8cd-part1@ scsi-35000cca85ec07e21@ usb-SanDisk_Cruzer_Blade_4C531001640627114584-0:0-part1@ wwn-0x5000c500d4d8c8cd@ wwn-0x5000c500d4da58ff-part1@ ata-ST5000LM000-2AN170_WCJ2M109-part1@ scsi-35000c500d4d98336@ scsi-35000cca85ec07e21-part1@ wwn-0x5000c500c3ad1f6d@ wwn-0x5000c500d4d8c8cd-part1@ wwn-0x5000cca85ec07e21@ scsi-35000c500d4cf60f5@ scsi-35000c500d4d98336-part1@ scsi-35002538d40245b34@ wwn-0x5000c500c3ad1f6d-part1@ wwn-0x5000c500d4d98336@ wwn-0x5000cca85ec07e21-part1@ scsi-35000c500d4cf60f5-part1@ scsi-35000c500d4da58ff@ scsi-35002538d40245b34-part1@ wwn-0x5000c500d4cf60f5@ wwn-0x5000c500d4d98336-part1@ wwn-0x5002538d40245b34@ scsi-35000c500d4d8c8cd@ scsi-35000c500d4da58ff-part1@ usb-SanDisk_Cruzer_Blade_4C531001640627114584-0:0@ wwn-0x5000c500d4cf60f5-part1@ wwn-0x5000c500d4da58ff@ wwn-0x5002538d40245b34-part1@
  6. Before or after the patch ? And if after, before or after the parameter ?
  7. Ok, I make it work. Sadly, I had to pop out one of the drives and use a drive-to-usb adapter and create the array to use docker. After read how that pugin/docker works, it was quite easy. Once you have it working, create a file in /etc/modprobe.d/ called hpsa.conf and place the following options hpsa hpsa_use_nvram_hba_flag=1 With that it will load the parameter on load. So, after that, modprobe -r hpsa modprobe hpsa and you should see the drives. Thanks a lot @ich777!
  8. In the repo https://github.com/im-0/hpsahba there are instructions for kernels 4.x and 5.x, so no problem for 6.8.2, 6.8.3, 6.9.0rc1 and 6.9.0rc2. The problem with that approach is that you need docker, and because the driver is not patch, the array is not started due to no disks listed. Am I wrong @ich777?
  9. Thumbs up to this change. It would be nice to have it implemented, even as a plugin. Mode can be easily change with an Ubuntu Desktop Live USB, but driver patch needs to be done within UnRAID. Patch is from 2018, but sadly was rejected. https://patchwork.kernel.org/project/linux-scsi/patch/[email protected]/ root@Tower:~# lsscsi [0:0:0:0] disk SanDisk Cruzer Blade 1.00 /dev/sda [1:0:0:0] storage HP P410i 6.64 - root@Tower:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 11.4M 1 loop /lib/modules loop1 7:1 0 18.6M 1 loop /lib/firmware sda 8:0 1 7.5G 0 disk └─sda1 8:1 1 7.5G 0 part /boot