1752808 Members
5621 Online
108789 Solutions
New Discussion юеВ

Re: Linux Boot Options.

 
SOLVED
Go to solution
MSwift
Regular Advisor

Linux Boot Options.

Is there an option in RHEL5 to skip the SAN disks to speed up the boot so that it would scan only the internal disks? SAN is attached but we are not using them now.

Thanks

Mike.
14 REPLIES 14
Jimmy Vance
HPE Pro

Re: Linux Boot Options.

if your talking about fsck running after "x" amount of boots, change the options in /etc/fstab
No support by private messages. Please ask the forum! 
dirk dierickx
Honored Contributor

Re: Linux Boot Options.

also not sure of which stage in the boot process you're talking about. but you could for example build an initrd without fibre card modules.
MSwift
Regular Advisor

Re: Linux Boot Options.

Here is our problem. We currently have SAN attached (for oracle pupose) but they are not used at the moment, they are just attached. Since RHEL 5 sees them it is scanning all the disks during the boot and this takes time. we just want to make sure the system boots fast. So, is there an option in the startup scripts or any other place to disable all the SAN so that the server could boot up fast!

Thanks

Mike
Jimmy Vance
HPE Pro

Re: Linux Boot Options.

If you don't like any of the suggestions so far, another option is to unplug the fibre cables.

What does it matter how long it takes to boot? Once a server is up, the norm is not to reboot it often.
No support by private messages. Please ask the forum! 
Matti_Kurkela
Honored Contributor
Solution

Re: Linux Boot Options.

I guess the "scan" you mention is the HBA detecting the LUNs available on the SAN, since if the disks are not used, there should be no mention of them in /etc/fstab and therefore the system should not be attempting to run a filesystem check.

Things you might want to do:

- If you have SAN switches, do you have zoning configured? If you haven't, each host might attempt to probe all the LUNs in the entire SAN... no wonder your boot is slow in that case!

- If you want to completely disable the SAN functionality, the easiest way would be to disable the HBA driver modules. Edit /etc/modprobe.conf: comment out the "alias scsi_hostadapter* " lines, and add a line like "blacklist ". Then run "depmod -a" and re-create your initrd (see "man mkinitrd" for examples).

MK
MK
Jayakrishnan G Naik
Trusted Contributor

Re: Linux Boot Options.

Hi MS

I have used another way to tackle similar situation by disabling the fc device in bios.
This can be done only if the lun are just raw, and if any volume manager uses it/filesystem exists, the OS will throw error.

I faced similar issue when I perform automated unattended OS "re-installation" of linux when disks and luns co-exist, the automated installation given me problems when it was not able to identify which device to use (disk or lun). I disabled the PCI device in bios and gone ahead with the installation and after the installation I enabled the PCI device to make use of the luns.

Mine was an HP BL 460 G6 server with qlogic card where it can be disabled in bios.
Try if it is applicable for you too.

Thanks & Regards
Jayakrishnan G Naik
MSwift
Regular Advisor

Re: Linux Boot Options.

Thanks MK!

The modified modprobe.conf, will it look like this?
alias eth0 bnx2
alias eth1 bnx2
alias eth2 e1000e
alias eth3 e1000e
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 ata_piix
#alias scsi_hostadapter2 qla2xxx
blacklist qla2xxx
alias scsi_hostadapter3 usb-storage
alias net-pf-10 off
alias ipv6 off
###BEGINPP
include /etc/modprobe.conf.pp
###ENDPP

Also after running depmod -a, what would be the exact mkinitrd command to load the new module with the edited modprobe.conf file? This would really help..

Thanks

Mike.

Zinky
Honored Contributor

Re: Linux Boot Options.

Why don't you try to "fix" the issue with your SAN LUNs dragging your OS startup instead of completely masking them out?

My systems have over 1000 HP StorageWorks LUNs (yes EVA/XPs), ASMLib used by Oracle and they still boot in under 15 minutes.

We used to have the same issues as you likely are encountering and it was a wild journey for us finally fixing the issue. It used to take over an hour to never for our mega-SAN environments to boot.

The fixes we've employed are as follows -- (Matti I think we should have a Linux Mega-SAN HOWTO and Fixes in the Linux threads to HELP out others):

1.) LVM SCAN Filter needs to be fixed (modify your /etc/lvm/lvm.conf's filter line so LVM only scans the disks that it should scan)

2.) ASM or ASMLib disktring or scan directives. Work with your DBA and come up with standards how Oracle should use your SAN LUNs -- use friendly multipath names to make it easy for ASM/ASMLib/Oracle to have a distinct disk string. ALso decide if you would want to partition your LUNs or use them whole...

Fix the above 2 and your boot times will be acceptably "acceptable"



Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
MSwift
Regular Advisor

Re: Linux Boot Options.

Good suggestion Alzhy! Still needed the exact mkinitrd command that Matti recommended.

Thanks

Mike