Operating System - Linux
1752286 Members
4680 Online
108786 Solutions
New Discussion юеВ

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

 
SOLVED
Go to solution
Alzhy
Honored Contributor

Possible to set Boot Controller Order (Proliant) from Linux Command Line?

We're moving our RHEL systems to SAN Boot whilst maintaining a local (RAID P401 based LUN) boot ennvironment as fallback OE environment.

So currently I have 2 independent boot environments, each with each own Grub config.

When I want to switch to my SAN Boot -- I need to press F9 or F11, go to the BIOS and select my FC-HBA as my primary boot controller.

I can already enable my FC-HBA bioses via the Qlogic command line facility "scli" but is there a way to set the Boot Controller Order from Linux?

Or is there a better way? unfortunately -- it seems the Boot Selector on HP Proliants does not offer a facility to pick which disk to boot from. Other servers from Dell and IBM have that facility from within their Boot Menu.

Other ideas welcome on how to manage my boot environments.

TIA!


Hakuna Matata.
11 REPLIES 11
David Claypool
Honored Contributor

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

If you have the hp-health package installed you will have the hpasmcli command available. Look at "SET BOOT FIRST XXX"
Matti_Kurkela
Honored Contributor

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

The usual way Proliants do it is that the main system BIOS menus can be used to select the Boot Controller Order only. To select a specific disk, you must access the configuration menu of the boot controller itself (on SmartArrays, press F8 while the controller is initializing; something else on FC HBAs) and see if the controller supports that option.

Some Proliant BIOS settings can be changed using the "hpacucli" command that comes with the hpasm/hp-health package. Alas, the Boot Controller Order is not one of those parameters.

MK
MK
Lucifer Megacruel
Valued Contributor

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

Hi Alzhy,

I am a linux enthusiast and has zero experience with enterprise class Linux hardware.So apologies in advance for pig headness if any :).

Here is what I think would help , why not modify grub configuration of local disk to provide a option to boot from SAN too ?

I have setup network booting with grub once. You need to modify the grub.conf and run the grubinstall script. This can potentially render the system unbootable , so prepare a rescue disk iso , so that can recover incase anything goes bad :).

--Lucifer
"To Denouce the Evils of Truth and Love. To cause may hem and destruction and necromancy , Lucifer is here"
Alzhy
Honored Contributor

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

Lucy and Matti,

My two boot environments are to be independently bootable. Each has its own Grub config that will have no facility to boot environments from the other disk.

On X-Series beemer servers - their Boot Menu when FC-HBA BIOSes with a Boot LUN configured allows selection on which Disk to Boot - Default (Disk0) points to the SAN Boot LUN, 2ndary would be the first local (raid or local lain sas) .. etc.

On Proliants, one has to sepcificy Boot Controller Order -- if you want to boot from SAN, you need to set your FC-HBAs to be on Boot Order 1 and 2 (for multipath) .

Surely there is a way to change whatever BIOS settings from the OS - Linux or WIndows. Or is there ?

Hakuna Matata.
Alzhy
Honored Contributor

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

hpasmcli> set boot
Invalid Arguments
SET BOOT FIRST [ CDROM | FLOPPY | HDD | PXE | USBKEY ]
SET BOOT ONCE [ CDROM | FLOPPY | HDD | PXE | RBSU ]

Partially helpful - RBSU will boot to BIOS - at least that saves one POST cycle switching to a Boot Controller.

Hakuna Matata.
Michael Leu
Honored Contributor
Solution

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

Maybe conrep from the SSSTK (http://www.hp.com/servers/sstoolkit) could do this?

Once upon a time I tried to explain to HP that 'SET BOOT FIRST PXE' is quite useless when you have additional PXE capable network cards installed. The only option seems to be going into the 'curses' BIOS, as not even the command line BIOS has this fine grained control... :-(
Alzhy
Honored Contributor

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

Dead URL Michael.

hpasmcli is good enough right now. At least one could set it to RBSU which reboots the system to the BIOS where the Boto Controller Order can be specified.

WOuld have been uber-kool if there was a tool to:

SET BOOT ONCE FC_HBA1 #1

To specify that my FC HBA adapter #1 would provide the "C" drive that will be the default HDD boot device.

Hakuna Matata.
Michael Leu
Honored Contributor

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

Hmpf, the ')' got included, here it is again:
http://www.hp.com/servers/sstoolkit
Jimmy Vance
HPE Pro

Re: Possible to set Boot Controller Order (Proliant) from Linux Command Line?

HP has several CLI utilities to manipulate disks and boot order. For your needs to switch between the Smart Array controller and a FC HBA, you will have to use the conrep utility to change the storage controller order in the BIOS

Conrep is available for both Windows and Linux and is part of the SmartStart Scripting Toolkit.

http://www.hp.com/servers/sstoolkit

There is a standalone version of conrep, but I'm not sure of the URL

No support by private messages. Please ask the forum!