[PATCH] Add documentation to describe SCSI warm plug operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: dann frazier <dannf@xxxxxxxxxx>

There doesn't appear to be any canonical documentation for adding/removing
SCSI devices for Linux 2.6. We document this procedure for IDE in
Documentation/ide/warm-plug-howto.txt, so I propose we include a SCSI
counterpart doc as well.

The best online resource I found for this was Red Hat's Online Storage
Reconfiguration Guide, so I'm using the procedure described there
(but not their text).

Signed-off-by: dann frazier <dann.frazier@xxxxxxxxxxxxx>
---
 Documentation/scsi/warm-plug-howto.txt |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/scsi/warm-plug-howto.txt

diff --git a/Documentation/scsi/warm-plug-howto.txt b/Documentation/scsi/warm-plug-howto.txt
new file mode 100644
index 0000000..7907cc8
--- /dev/null
+++ b/Documentation/scsi/warm-plug-howto.txt
@@ -0,0 +1,20 @@
+
+SCSI warm-plug HOWTO
+====================
+
+To detect and enumerate any new devices that have been physically added to
+the system on host controller 'hostX':
+
+# echo '- - -' > /sys/class/scsi_host/hostX/scan
+
+To prepare the system to safely remove a device 'sdX':
+
+ 1) Make sure that partitions on sdX are unmounted and that there are
+    no other active references to devices.
+ 2) Flush any outstanding I/O on device sdX:
+     # blockdev --flushbufs /dev/sdX
+ 3) Deactivate the device:
+     # echo 1 > /sys/block/sdX/device/delete
+
+At this point it should be safe to remove the physical sdX device from the
+system.
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux