Scsi bus scan

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Scsi bus scan
# 1  
Old 03-04-2013
Scsi bus scan

Hi,

I have presented a LUN to a VM (RHEL 5.8) and need to scan the scsi bus in order for the OS to pick it up.

On FC attached hosts I can:

Code:
echo "1" > /sys/class/fc_host/host0/issue_lip
echo "- - -" > /sys/class/scsi_host/host0/scan



....but this does not work on my vm.

Anyone know how to get the OS pick up the new disk space without having to reboot the box?

R,
D.
# 2  
Old 03-04-2013
I had similar issues to you. I found the script "rescan-scsi-bus.sh" which you can find on google works wonders for RHEL5.x within VMWare.

I tend to only use the rescan commands you put above on physical servers running RHEL5.x. I have not tried the differences between RHEL5 and RHEL6 though.
# 3  
Old 03-04-2013
If that doesn't help you can reset the FC port (enable/disable) on fibre switch.

Of course, that requires you to check all the hosts on that port if they have multipath configured properly, or you will lose access to those disks until port is up.
# 4  
Old 03-04-2013
This script only detects the extra space on the fdisk. The problem in this case is that I am trying to extend a current FS. So when I add in the extra partition using fdisk I am unable to pvcreate the new partition as the resource is busy.

Anyway, the solution is to use partprobe against the device after the new partition has been created in fdisk. Only is it then possible to pvcreate the dev.

R,
D.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Bus Error: 10...Help please!

Hi all, I am writing a phonebook program to store names and number using a list. Here is the code for the function which allows the user to enter the name and number (where the error occurs). //THIS FUNCTION ADDS A NEW ENTRY TO THE phonebook_list void insert(void){ //variables int... (5 Replies)
Discussion started by: kdejan
5 Replies

2. BSD

How to rescan scsi bus without reboot on OpenBSD

Hello, My question as title, I don't know the exact command, anyone could tell me about it? Kevin (0 Replies)
Discussion started by: guixingyi
0 Replies

3. Programming

Bus error

Hi everyone, I have a GUI project and when I run it and left in idle state for a long time(there is nothing done, just opened GUI, no more actions),I get bus error after trying to do anything with it. I've tried to build it in debug mode and use gdb, but I don't get any error in debug mode.It... (3 Replies)
Discussion started by: sisi
3 Replies

4. HP-UX

Bus Error

I am getting bus error when i include "#!/bin/ksh". If i remove interpreter then script is working. Can anyone explain this and how can i avoid this error? Operating System is HP-UX B.11.23 U 9000/800 1091834454 (2 Replies)
Discussion started by: anbu23
2 Replies

5. Solaris

SCSI Bus Reset

hey guys i got this in my logs what does this mean: (4 Replies)
Discussion started by: sbn
4 Replies

6. HP-UX

Need help on Bus error(coredump)

Hi all, I am quite weak in C but I need to get some work done. Hope someone can help me out. I keep getting this error when i try to run my C application in my HP-UX 10.20 machine. Some code snippet: Month(DBTime) =====This is a function which will return variable "CutOffTime" to be use... (5 Replies)
Discussion started by: Vision©
5 Replies

7. SCO

How to install UNIX 5.0.7 on an ML 330 G3 server with IDE array instead of scsi bus

My boss get a Proliant ML 330 G3 server with IDE ARRAY Bus, I try to isntall UNIX 5.0.7 on it but i't didn't detect as a hdd, I try to configure it as single logical drive and many combinations but UNIX always says taht there is no hdd, does anyone knows how to?? the boss of course won't say it... (0 Replies)
Discussion started by: jactroo
0 Replies

8. Programming

BUS error

Hi! I've got a program which runs fine under Linux, but I have compiled it to run under SunOS 5.8 in a Sparc computer, and now it sometimes fails with "bus error". Ussing gdb I surfed to the error line, which is *pointer = some_vector; where some_vector is a 16 byte struct (4 integers)... (1 Reply)
Discussion started by: shesatmine
1 Replies

9. UNIX for Dummies Questions & Answers

SCSI bus is hung

Anyone have any ideas what could be causing me to get the error "The SCSI bus is hung. Perhaps an external device is turned off"? This is occuring when I try to boot off of my external CDROM. I have tried this CDROM on 3 different systems, tried different SCSI cables, and different terminators... (2 Replies)
Discussion started by: saucierm
2 Replies

10. UNIX for Dummies Questions & Answers

Bus Error

This may belong in the C Programming forum, but here goes anyway... What would cause a bus error? I searched google for a cause, but came up with some conflicting reports... Could it be caused by disk space? A lot of the pages I found mentioned linking with the incorrect versions of the... (4 Replies)
Discussion started by: LivinFree
4 Replies
Login or Register to Ask a Question