Call Now - 1-800-921-IRON
Main Menu
Support Center Home
Open a Ticket
My Ticket History
Browse Knowledgebase
My Account

Login
 E-mail:
 Password:
Register | Forgot Password?

Knowledgebase
Ask a question using natural language. Try to include as much information as possible:


Contact Us
Iron Systmes Inc.
540 Dado St.
San Jose, CA 95131
USA

Phone: (408) 943-8000 x 216

Fax: (408) 943-8101

Knowledgebase
Mouting SCSI Devices without rebooting the host.
Top : Linux

Article ID: 000004
Rating: 5.0 / 5.0 (4 votes)
Views: 2493

Problem
How to mount SCSI devices without rebooting the machine.

Solution
WORKAROUND.

Working with (SCSI) devices;

/proc/scsi
/proc/scsi/scsi
How to add more disk space if you have hot-swap drives available to you, without rebooting the system. Without using /proc, you could insert your drive, but you would then have to reboot in order to get the system to recognize the new disk. Here, you can get the system to recognize the new drive with the following command:

echo "scsi add-single-device w x y z" > /proc/scsi/scsi

For this command to work properly, you must get the parameter values w, x, y, and z correct, as follows:

* w is the host adapter ID, where the first adapter is zero (0)
* x is the SCSI channel on the host adaptor, where the first channel is zero (0)
* y is the SCSI ID of the device
* z is the LUN number, where the first LUN is zero (0)

Once your disk has been added to the system, you can mount any previously formatted filesystems or you can start formatting it, and so on. If you are not sure about what device the disk will be, or you want to check any pre-existing partitions, for example, you can use a command such as fdisk -l, which will report this information back to you.

Conversely, the command to remove a device from your system without a reboot would be:

echo "scsi remove-single-device w x y z" > /proc/scsi/scsi


Rating
Did you find this article helpful?

Related Articles
Mounting more than 2TB under FreeBSD

Copyright © 1996-2009 Iron Systems, Inc. All Rights Reserved.