Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In /etc/multipath.conf you have to make sure the array type is not blacklisted and better yet you should add a definition based on the disk array manufacturer's recommendations.
Typically I install the sg3_utils and lsscsi RPMs from the RedHat repositories.
I run the rescan-scsi-bus.sh that comes from sg3_utils and only try other scan types if that fails.
lsscsi command will show all your SCSI devices (/dev/sd*) individually.
Multipath only shows devices if it determines it should be under multipath setup (which can be for single path) The "multipath" device can be comprised of a single sd device if there are no other paths found. I recommend doing multipath setup even for single paths presented to host because if you use the "multipath" device (e.g. friendly name /dev/mapper/mpath*) in your LVM VG setups or Oracle ASM setups or whatever else you're doing it allows for future changes. (e.g. If you move from one switch to another but are still using the same array the UUID of the disk is the same and your multipath will include the sd it sees from new switch. If you didn't use multipath initially you'd have to modify your underlying VG or ASM Volume or whatever to use the new sd.)
If the rescan doesn't find it then there are other ways to scan.
If you're using Qlogic fiber HBAs you can determine which host# devices under /sys/class/scsi_host are your Qlogic by running: grep -i ql */* 2>/dev/null"
Once you know which host# those are you can force each to rescan by running:
echo "- - -" host#/scan
Another tool is offered by Qlogic to work with their HBAs and you can download it from their site. It's called the Qlogic-SuperInstaller and they have one for RHEL. With it you can use the qaucli command to view details. The download package also includes a rescan utility you can use.
I don't work with Emulex so can't comment them much.
SO I found myself with a new job in a mixed windows / Linux environment where previously I was working primarily with Windows.
I have a redhat 5.11 failover cluster hosting (clustered) Oracle. The cluster has been up several years, but we recently added more storage to the shared enclosure. I've presented the storage to both hosts and (Like Windows) the next step would be to partition, format / mount, etc.
I ran fdisk -l and the drives are not listed so (like this thread indicates) I can rescan the SCSI bus in order to detect the new drives without having to reboot. Windows disk administrator does that fine, but their stupid "cluster readiness wizard" will offline ALL the drives if you don't de-select storage before running it. (imagine that!)
If I run the "rescan the SCSI Bus" script, that does not take any drives offline does it? And, I've read there is extra foo and love the drives need for Oracle to like them, but I can work with the DBAs on that end. I think I just need to rescan the bus, partition and write a file system to it, and I'm golden.
That's a crazy interview question, unless you do it everyday, it's something anyone would have to look up.
When I was in the position to interview candidates (but I was never in the position to make the final decision), I tried to do all I could to make sure I never asked these gotcha questions.
I tried to do all I could to make sure I never asked these gotcha questions.
Sometimes you ask questions to see how people think and respond. If someone says "I don't know, I've never done that" it is almost as valuable as hearing them spell it out from top to bottom. I'd much rather have someone honestly tell me they don't know than try to pretend they've done it when they haven't.
I used to ask people if they took geometry in high school or college not because they needed it for the job but because I knew one of the first things they teach in geometry is logic and syllogisms. The look on their faces when I asked this seemingly non sequitur was amusing.
Of course I did get a question once that to this day I'm sure I answered "wrong" but don't know what the interviewer thought was "correct": "What is different about RedHat Linux than every other Linux?"
I know of many things that are different and gave them all when it was clear I wasn't giving the answer he wanted. More than 10 years later I still have no clue what he wanted even though I've been working on RedHat all that time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.